中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

CentOS Stream 8 手工搭建 OpenStack V 版(04 Placement)

小云
100
2023-10-14 13:49:02
欄目: 編程語言

在CentOS Stream 8上手工搭建OpenStack V版(04 Placement)的步驟如下:

  1. 安裝OpenStack軟件包和依賴項:
sudo dnf install centos-release-openstack-victoria
sudo dnf install openstack-placement-api
  1. 配置數據庫:
sudo mysql_secure_installation
sudo 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';
  1. 配置身份驗證:
sudo openstack user create --domain default --password-prompt placement
sudo openstack role add --project service --user placement admin
sudo openstack service create --name placement \
--description "Placement API" placement
sudo openstack endpoint create --region RegionOne \
placement public http://controller:8778
sudo openstack endpoint create --region RegionOne \
placement internal http://controller:8778
sudo openstack endpoint create --region RegionOne \
placement admin http://controller:8778
  1. 編輯/etc/placement/placement.conf文件:
[placement_database]
connection = mysql+pymysql://placement:PLACEMENT_DBPASS@controller/placement
[api]
auth_strategy = keystone
[keystone_authtoken]
www_authenticate_uri = http://controller:5000/
auth_url = http://controller:5000/
memcached_servers = controller:11211
auth_type = password
project_domain_name = Default
user_domain_name = Default
project_name = service
username = placement
password = PLACEMENT_PASS
[placement]
os_region_name = RegionOne
[cors]
[placement_database]
connection = mysql+pymysql://placement:PLACEMENT_DBPASS@controller/placement
[api]
auth_strategy = keystone
[keystone_authtoken]
www_authenticate_uri = http://controller:5000/
auth_url = http://controller:5000/
memcached_servers = controller:11211
auth_type = password
project_domain_name = Default
user_domain_name = Default
project_name = service
username = placement
password = PLACEMENT_PASS
[placement]
os_region_name = RegionOne
[cors]
  1. 同步數據庫:
sudo su -s /bin/sh -c "placement-manage db sync" placement
  1. 啟動服務:
sudo systemctl enable httpd
sudo systemctl start httpd
sudo systemctl enable placement-api
sudo systemctl start placement-api

現在,您已經成功地在CentOS Stream 8上手工搭建了OpenStack V版(04 Placement)。

0
二手房| 响水县| 青川县| 通许县| 恩平市| 新巴尔虎左旗| 大洼县| 镶黄旗| 泾源县| 星子县| 财经| 株洲市| 平谷区| 惠安县| 白水县| 获嘉县| 淳化县| 湘西| 鹤岗市| 汝南县| 都江堰市| 本溪| 红桥区| 河西区| 额济纳旗| 榆树市| 依安县| 东丽区| 贵定县| 湘乡市| 慈溪市| 巩留县| 琼结县| 汉寿县| 长白| 沙雅县| 青海省| 木里| 益阳市| 深水埗区| 武隆县|