Skip to content

Home Lab

Notes from my learning sessions

Menu
Menu

Openstack Xena on Ubuntu 20.04 – Placement

Posted on December 18, 2021April 17, 2022 by sandeep

[  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)  ]

Recent Posts

  • Ceph + KVM: 4. Orchestrating Ceph RBD backed VMs on KVM Hosts
  • Rabbit MQ Cluster + HAProxy + Keepalived
  • Install and configure MariaDB / Galera cluster
  • Ceph + KVM : 3. Installing KVM, cutsomized monitoring scripts
  • Ceph + KVM : 5. Service checks and CLI commands
  • Ceph + KVM : 2. Installation – Ceph Storage
  • Ceph + KVM : 1. Planning and preparing for Ceph Storage
  • Openstack Xena on Ubuntu 20.04 – Cinder
  • Preparing custom Debian 11 MATE image
  • Setup Ubuntu 20.04 repository mirror server

Archives

  • April 2025
  • March 2025
  • October 2024
  • September 2024
  • April 2022
  • March 2022
  • February 2022
  • December 2021
  • October 2021
  • September 2021
  • October 2020
  • February 2020
  • January 2020
  • December 2019
© 2025 Home Lab | Powered by Minimalist Blog WordPress Theme