Install and Configure Openstack Senlin on Pike Centos7

Step 1: Create the Senlin user

# openstack user create --domain default --password service_pass senlin

Step 2: Add the admin role to the senlin user and service project

# openstack role add --project service --user senlin admin

Step 3: Create the Senlin service entities:

# openstack service create --name senlin --description "Senlin Clustering Service V1" clustering

Step 4: Create API endpoints

# openstack endpoint create --region RegionOne senlin public http://192.168.1.121:8777

# openstack endpoint create --region RegionOne senlin admin http://10.10.100.121:8777

# openstack endpoint create --region RegionOne senlin internal http://10.10.100.121:8777

Step 5: Install Heat packages

# yum install openstack-senlin- engine.noarch openstack-senlin- api.noarch openstack-senlin- common.noarch python2-senlinclient.noarch -y

Step 6: Login to database

# mysql -u root -p

> CREATE DATABASE senlin;

> GRANT ALL ON senlin.* TO 'senlinUser'@'%' IDENTIFIED BY 'senlinPass';

> quit;

Step 7: Edit Senlin Configuration Files

# vim /etc/senlin/senlin.conf

[DEFAULT]
transport_url = rabbit://openstack:rabbit@10.10.100.121
default_region_name = RegionOne
debug = True
[senlin_api]
bind_host = 0.0.0.0
bind_port = 8777

[database]
connection = mysql+pymysql://senlinUser:senlinPass@10.10.100.121/senlin

[authentication]
auth_url = http://10.10.100.121:5000
service_username = senlin
service_password = service_pass
service_project_name = service

[keystone_authtoken]
auth_uri = http://10.10.100.121:5000
auth_version = 3
identity_uri = http://10.10.100.121:35357
admin_user = senlin
admin_password = service_pass
admin_tenant_name = service

Step 8: Synchronize the senlin database

# su -s /bin/sh -c "senlin-manage db_sync" senlin

Step 9: Enable the Senlin service and configure it to start when the system boots

# systemctl enable openstack-senlin- api.service openstack-senlin-engine.service

Step 10: Start the Senlin services and configure it to start when the system
boots

# systemctl start openstack-senlin- api.service openstack-senlin-engine.service

Step 11: List service components to verify successful launch and registration of
each process:

# openstack cluster service list

# openstack cluster build info

Step 12: Install Senlin Dashboard

# git clone https://git.openstack.org/openstack/senlin-dashboard

# cd senlin-dashboard/

# git checkout stable/pike

# python setup.py install

# cp senlin_dashboard/enabled/_50_senlin.py /usr/share/openstack-dashboard/openstack_dashboard/enabled/

# cd /usr/share/openstack-dashboard/

# ./manage.py collectstatic

# ./manage.py compress

Step 13: Restart Apache server

# systemctl restart httpd