Skip to content

Home Lab

Notes from my learning sessions

Menu
Menu

Openstack – Train : Placement services

Posted on October 9, 2020January 29, 2023 by sandeep

<<<   Glance                                                                                                                                              Nova >>>

On the controller node :

Create the database for placement services

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 account for placement service and assign admin role

. admin-openrc

openstack user create --domain default --password-prompt placement
openstack role add --project homelab --user placement admin

Create the Placement API entry in the service catalog

openstack service create --name placement --description "Placement API" placement

Create the Placement API service endpoints

openstack endpoint create --region RegionOne placement public http://controller:8778

openstack endpoint create --region RegionOne placement internal http://controller:8778

openstack endpoint create --region RegionOne placement admin http://controller:8778

Install the package

apt install -y placement-api

Edit the /etc/placement/placement.conf

In the [placement_database] section, configure database access

[placement_database]
connection = mysql+pymysql://placement:password@controller/placement

In the [api] and [keystone_authtoken] sections, configure Identity service access

[api]
auth_strategy = keystone

[keystone_authtoken]
auth_url = http://controller:5000/v3
memcached_servers = controller:11211
auth_type = password
project_domain_name = Default
user_domain_name = Default
project_name = homelab
username = placement
password = password

Populate the placement database and restart services

su -s /bin/sh -c "placement-manage db sync" placement 
service apache2 restart


<<<   Glance                                                                                                                                              Nova >>>

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