This series of articles will teach you how to build an OpenStack development environment from scratch across multiple OpenStack systems. The installation version of OpenStack used in the current tutorial is version 20 Train (version T for short). Release Note Train, Originally Released: 16 October, 2019 13 May, 2020 Victoria, Originally Released: 14 October, 2020

The nuggets community


OpenStack Ussuri offline Deployment: OpenStack Train Offline Deployment: OpenStack Ussuri Offline deployment

OpenStack Train Offline deployment | 0 Local offline deployment yum OpenStack Train offline deployment | 1 Controller node – Environment Preparation OpenStack Train Offline deployment | 2 Compute node – Environment Preparation OpenStack Train offline deployment | 3 controller nodes -Keystone authentication service component OpenStack Train offline deployment | 4 controller nodes -Glance image service component OpenStack Train offline deployment | 5 Controller nodes -Placement service component OpenStack Train Offline deployment | 6.1 Controller Node -Nova Computing service component OpenStack Train Offline deployment | 6.2 Compute Node -Nova Computing service Component OpenStack Train Offline deployment | 6.3 Controller Node -Nova Computing service component OpenStack Train Offline Deployment | 7.1 Controller Node -Neutron Network service Component OpenStack Train Offline Deployment | 7.2 Compute Node -Neutron Network service Component OpenStack Train deployment | 7.3 Controller Node -Neutron Service component OpenStack Train Deployment | 8 Controller Node -Horizon Service component OpenStack Train Deployment | 9 Start an OpenStack instance Train Offline deployment | 10 Controller node -Heat service component OpenStack Train Offline deployment | 11.1 Controller Node -Cinder Storage Service Component OpenStack Train Offline deployment | 11.2 Storage node -Cinder storage service component OpenStack Train Offline Deployment | 11.3 Controller Node -Cinder Storage Service Component OpenStack Train Offline Deployment | 11.4 Compute Node -Cinder Storage Service Component OpenStack Offline Deployment of Train | 11.5 Instance Using -Cinder storage service components


Gold Mining community: Customizing OpenStack Images | Customizing OpenStack images | Environment Preparation Customizing OpenStack images | Windows7 Customizing OpenStack images | Windows10 Customizing OpenStack images | Linux Customize an OpenStack image | Windows Server2019


CSDN

CSDN: OpenStack Ussuri Offline Installation and Deployment Series (full) OpenStack Train Offline Installation and Deployment Series (full) Looking forward to making progress together with you.


OpenStack Train Offline deployment | 5 Controller node -Placement service component

Official reference link: OpenStack Official Installation Guide: Service Component OpenStack Official Installation Guide: Placement -install

Create placement related databases, credentials, and API endpoints

1. Create a Placement database and authorize it

Log in to the mysql database as user root. The password is root that was set during the initialization of mysql data during the preparation of the controller node environment.

mysql -u root -proot
Copy the code

Create the Placement database and authorize it

CREATE DATABASE placement;
GRANT ALL PRIVILEGES ON placement.* TO 'placement'@'localhost' IDENTIFIED BY 'placement';
GRANT ALL PRIVILEGES ON placement.* TO 'placement'@The '%' IDENTIFIED BY 'placement';

flush privileges;
show databases;
select user,host from mysql.user;

exit

Copy the code

2. Create service credentials

Again, create and register a service certificate for the project

cd 
source admin-openrc.sh
#Domain user
openstack user create --domain default --password=placement placement
#project
openstack role add --project service --user placement admin
#entity
openstack service create --name placement --description "Placement API" placement

# 
Copy the code

3. Create placement project endpoint (API port)

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
openstack endpoint list
Copy the code

Ii. Placement related software installation and configuration

1. Install placement software

yum install openstack-placement-api -y
Copy the code

2. Modify the configuration file

(1) the/etc/placement/placement. Conf, in turn, execute the following command, writes it to the script, execute the script

touch placement.conf.sh
vim placement.conf.sh
bash placement.conf.sh
Copy the code

Placement. Conf. sh File contents

#! /bin/bash #placement.conf.sh openstack-config --set /etc/placement/placement.conf api auth_strategy keystone openstack-config --set /etc/placement/placement.conf keystone_authtoken auth_url http://controller:5000/v3 openstack-config --set /etc/placement/placement.conf keystone_authtoken memcached_servers controller:11211 openstack-config --set /etc/placement/placement.conf keystone_authtoken auth_type password openstack-config --set /etc/placement/placement.conf keystone_authtoken project_domain_name default openstack-config --set /etc/placement/placement.conf keystone_authtoken user_domain_name default openstack-config --set /etc/placement/placement.conf keystone_authtoken project_name service openstack-config --set /etc/placement/placement.conf keystone_authtoken username placement openstack-config --set /etc/placement/placement.conf  keystone_authtoken password placement openstack-config --set /etc/placement/placement.conf placement_database connection mysql+pymysql://placement:placement@controller/placement echo "Result of Configuration" grep '^[a-z]' /etc/placement/placement.confCopy the code
bash placement.conf.sh  
Copy the code

/etc/httpd/conf.d/00-placement-api.conf Train /etc/httpd/conf.d/00-placement-api.conf /etc/httpd/conf.d/00-placement-api.conf /etc/httpd/conf.d/00-placement- API.

vim /etc/httpd/conf.d/00-placement-api.conf
Copy the code

Add the following at the end

<Directory /usr/bin>
   <IfVersion >= 2.4>
      Require all granted
   </IfVersion>
   <IfVersion < 2.4>
      Order allow,deny
      Allow from all
   </IfVersion>
   
</Directory>
Copy the code

3. Synchronize placement database

(1) Synchronization and initialization

Su -s /bin/sh -c "placement-manage db sync" placement # If any warning is displayed, run the command againCopy the code

(2) After synchronization is completed, connection tests are performed to ensure that all required tables have been established, otherwise it may not be possible to proceed later

mysql -uplacement -pplacement -e "use placement; show tables;"Copy the code

4. Configure more information

[optional]

cd 
source admin-openrc.sh
placement-status upgrade check
pip install osc-placement
openstack --os-placement-api-version 1.2 resource class list --sort-column name
Copy the code

5. Restart the Apache service (HTTPD). If the restart fails, pay attention to firewall configurations

systemctl restart httpd
systemctl status httpd 
Copy the code

Iii. Placement service has been installed.