mysql -u root -p
CREATE DATABASE keystone;
GRANT ALL PRIVILEGES ON keystone.* TO
'keystone'@'localhost' IDENTIFIED BY '123456';
GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%'
IDENTIFIED BY '123456';
18、安装、配置组件
yum install openstack-keystone httpd mod_wsgi -y
19、编辑 /etc/keystone/keystone.conf
[database]
connection =
mysql+pymysql://keystone:123456@controller/keystone
[token]
provider = fernet
20、同步 keystone 数据库
su -s /bin/sh -c "keystone-manage db_sync" keystone
21、数据库初始化
keystone-manage fernet_setup --keystone-user keystone --
keystone-group keystone
keystone-manage credential_setup --keystone-user keystone
--keystone-group keystone
22、引导身份认证服务
keystone-manage bootstrap --bootstrap-password 123456 --
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
23、配置 apache http 服务
1、编辑/etc/httpd/conf/httpd.conf,配置 ServerName 参数
ServerName controller
2、创建 /usr/share/keystone/wsgi-keystone.conf 链接文件
ln -s /usr/share/keystone/wsgi-keystone.conf
/etc/httpd/conf.d/
3、设置服务开机启动
systemctl enable httpd
systemctl start httpd
24、配置 administrative 账号
export OS_USERNAME=admin
export OS_PASSWORD=123456
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
25、创建 domain, projects, users, roles