pymysql安装_openstack stein安装placement
openstack stein install placement
安裝組件:
- placement
注:安裝服務(wù)均遵循以下步驟:
- mariadb創(chuàng)庫授權(quán)
- keystone創(chuàng)建角色并關(guān)聯(lián)
- keystone創(chuàng)建服務(wù)注冊API
- 安裝相應(yīng)服務(wù)軟件包
- 修改配置文件
- 同步數(shù)據(jù)庫
- 啟動服務(wù)
- 驗(yàn)證
安裝placement:
- 創(chuàng)庫授權(quán):
mysql <
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';
EOF
- keystone創(chuàng)建角色并關(guān)聯(lián)
- keystone創(chuàng)建服務(wù)注冊API
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://controller:8778
openstack endpoint create --region RegionOne
placement internal http://controller:8778
openstack endpoint create --region RegionOne
placement admin http://controller:8778
- 安裝相應(yīng)服務(wù)軟件包:
yum install openstack-placement-api -y
- 修改配置文件:
cp /etc/placement/placement.conf{,.bak}
grep '^[a-Z[]' /etc/placement/placement.conf.bak >/etc/placement/placement.conf
openstack-config --set /etc/placement/placement.conf placement_database connection mysql+pymysql://placement:PLACEMENT_DBPASS@controller/placement
openstack-config --set /etc/placement/placement.conf keystone_authtoken auth_url http://controller:5000
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_PASS
openstack-config --set /etc/placement/placement.conf api auth_strategy keystone
- 同步數(shù)據(jù)庫:
su -s /bin/sh -c "placement-manage db sync" placement
- 啟動服務(wù)
systemctl restart httpd
- 驗(yàn)證:
systemctl status httpd
netstat -tunlp |grep 8778
查看服務(wù)端口^_^
總結(jié)
以上是生活随笔為你收集整理的pymysql安装_openstack stein安装placement的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python walk_Python o
- 下一篇: mysql 生成数列_PHP生成器的创建