目次
全編目次
- 概要
- 必須編
- part01 - Environment
- part02 - Security
- part03 - Host networking
- part04 - Network Time Protocol (NTP)
- part05 - OpenStack packages
- part06 - SQL database
- part07 - Message queue
- part08 - Memcached
- part09 - Etcd
- part10 - Install OpenStack services
- part11 - Identity service (Keystone)
- part12 - Image service (Glance)
- part13 - Placement service (Placement) ◀here now
- part14 - Compute service (Nova) - controller node
- part15 - Compute service (Nova) - compute node
- part16 - Networking service (Neutron) - controller node
- part17 - Networking service (Neutron) - compute node
- part18 - Launch an instance - Network Option 1
- part19 - Dashboard (Horizon)
- 応用編
- part20 - Networking service (Neutron) - controller node
- part21 - Networking service (Neutron) - compute node
- part22 - Launch an instance - Network Option 2
- part23 - Block Storage service (Cinder) - LVM backend
- part24 - Block Storage service (Cinder) - NFS backend
- part25 - Launch an instance - Block Storage
Placement service (Placement)
Install and configure Placement for Red Hat Enterprise Linux and CentOS
Prerequisites
mysql -u root -p ROOT_DBPASS
CREATE DATABASE placement; GRANT ALL PRIVILEGES ON placement.* TO 'placement'@'localhost' IDENTIFIED BY 'PLACEMENT_DBPASS'; GRANT ALL PRIVILEGES ON placement.* TO 'placement'@'%' IDENTIFIED BY 'PLACEMENT_DBPASS'; exit
. admin-openrc
openstack user create --domain default --password PLACEMENT_PASS placement openstack role add --project service --user placement admin openstack service create --name placement --description "Placement API" placement
openstack endpoint create --region RegionOne placement public http://ctr01:8778 openstack endpoint create --region RegionOne placement internal http://ctr01:8778 openstack endpoint create --region RegionOne placement admin http://ctr01:8778
Install and configure components
dnf -y install openstack-placement-api
cp -p /etc/placement/placement.conf{,_org} ls -l /etc/placement/placement.conf*
cat << EOF > /etc/placement/placement.conf [placement_database] connection = mysql+pymysql://placement:PLACEMENT_DBPASS@ctr01/placement [api] auth_strategy = keystone [keystone_authtoken] auth_url = http://ctr01:5000/v3 memcached_servers = ctr01:11211 auth_type = password project_domain_name = Default user_domain_name = Default project_name = service username = placement password = PLACEMENT_PASS EOF
cat /etc/placement/placement.conf
su -s /bin/sh -c "placement-manage db sync" placement
追加手順
cp -p /etc/httpd/conf.d/00-placement-api.conf{,_org}
ls -l /etc/httpd/conf.d/00-placement-api.conf*
sed -i \
-e '/#SSLCertificateKeyFile/a \ <Directory /usr/bin>\n Require all granted\n </Directory>' \
/etc/httpd/conf.d/00-placement-api.conf
diff /etc/httpd/conf.d/00-placement-api.conf*
cat /etc/httpd/conf.d/00-placement-api.conf
参考サイト
www.server-world.info
Finalize installation
systemctl restart httpd