Centos0S7手动安装OpenStack Pike版--

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Centos0S7手动安装OpenStack Pike版--相关的知识,希望对你有一定的参考价值。

#Configure Keystone
mysql -uroot -ppasswd123 -e "CREATE DATABASE keystone"
mysql -uroot -ppasswd123 -e "GRANT ALL PRIVILEGES ON keystone. TO ‘keystone‘@‘localhost‘ IDENTIFIED BY ‘passwd123‘"
mysql -uroot -ppasswd123 -e "GRANT ALL PRIVILEGES ON keystone.
TO ‘keystone‘@‘%‘ IDENTIFIED BY ‘passwd123‘"

vim /etc/keystone/keystone.conf
[database]
connection = mysql+pymysql://keystone:[email protected]/keystone
[token]
provider = fernet

su -s /bin/sh -c "keystone-manage db_sync" keystone

keystone-manage fernet_setup --keystone-user keystone --keystone-group keystone
keystone-manage credential_setup --keystone-user keystone --keystone-group keystone

keystone-manage bootstrap --bootstrap-password ADMIN_PASS \
--bootstrap-admin-url http://controller:35357/v3/ \
--bootstrap-internal-url http://controller:5000/v3/ \
--bootstrap-public-url http://controller:5000/v3/ \
--bootstrap-region-id RegionOne

Configure the Apache HTTP server
vim /etc/httpd/conf/httpd.conf
ServerName controller

ln -s /usr/share/keystone/wsgi-keystone.conf /etc/httpd/conf.d/
systemctl start httpd.service
systemctl enable httpd.service
systemctl status httpd.service

export OS_USERNAME=admin
export OS_PASSWORD=passwd123
export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_AUTH_URL=http://controller:35357/v3
export OS_IDENTITY_API_VERSION=3

openstack project create --domain default --description "Service Project" service
openstack project create --domain default --description "Demo Project" demo
openstack user create --domain default --password passwd123 demo
openstack role create user
openstack role add --project demo --user demo user

unset OS_AUTH_URL OS_PASSWORD
openstack --os-auth-url http://controller:35357/v3 \
--os-project-domain-name Default --os-user-domain-name Default \
--os-project-name admin --os-username admin token issue

openstack --os-auth-url http://controller:5000/v3 \
--os-project-domain-name Default --os-user-domain-name Default \
--os-project-name demo --os-username demo token issue

vim admin-openrc
export OS_PROJECT_DOMAIN_NAME=Default
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=passwd123
export OS_AUTH_URL=http://controller:35357/v3
export OS_IDENTITY_API_VERSION=3
export OS_IMAGE_API_VERSION=2

source admin-openrc
openstack token issue

以上是关于Centos0S7手动安装OpenStack Pike版--的主要内容,如果未能解决你的问题,请参考以下文章

Centos0S7手动安装OpenStack Pike版--

Centos0S7手动安装OpenStack Pike版--

Centos0S7手动安装OpenStack Pike版--

ubuntu20.04手动安装openstack(双节点)

OpenStack手动安装手册即错误排查(Icehouse)

手动安装openstack并配置虚拟化集成VM