[ Previous: Glance (3/9) ] [ 4/9 : Placement ] [ Next: Nova (5/9) ]
Create DB for placement service.
create database placement; grant all privileges on placement.* to placement@'localhost' identified by 'password'; grant all privileges on placement.* to placement@'%' identified by 'password'; flush privileges; exit
Create user ‘placement’ in the project ‘service’ with a password of choice.
openstack user create --domain default --project service --password password placement
Add ‘admin’ role to ‘placement’ user in ‘service’ project
openstack role add --project service --user placement admin
Create ‘placement’ service
openstack service create --name placement --description "OpenStack Compute Placement Service" placement
Create public, internal, and admin end points for placement service
openstack endpoint create --region RegionOne placement public http://10.0.3.1:8778 openstack endpoint create --region RegionOne placement internal http://10.0.3.1:8778 openstack endpoint create --region RegionOne placement admin http://10.0.3.1:8778
Install placement-api package
apt install -y placement-api
Update the placement service configurations as shown below. You may consider taking a backup of the installed default configuration file and create a new one with following contents.
[DEFAULT] debug = false [api] auth_strategy = keystone [keystone_authtoken] www_authenticate_uri = http://10.0.3.1:5000 auth_url = http://10.0.3.1:5000 memcached_servers = 10.0.3.1:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = placement password = password [placement_database] connection = mysql+pymysql://placement:password@10.0.3.1/placement
If you had created a new configuration file, update the access rights
chmod 640 /etc/placement/placement.conf chgrp placement /etc/placement/placement.conf
Populate the placement DB
su -s /bin/bash placement -c "placement-manage db sync"
Restart apache2
service apache2 restart
[ Previous: Glance (3/9) ] [ 4/9 : Placement ] [ Next: Nova (5/9) ]