config keystone
config keystone
MySQL -u root -p
gedit /etc/keystone/keystone.conf
[database]
connection = mysql+pymysql://keystone:cloudify@controller1/keystone
[token]
provider = fernet
su -s /bin/sh -c "keystone-manage db_sync" keystone
#Initialize Fernet key repositories
keystone-manage fernet_setup --keystone-user keystone --keystone-group keystone
keystone-manage credential_setup --keystone-user keystone --keystone-group keystone
gedit /etc/apache2/apache2.conf
ServerName controller1
systemctl restart apache2
gedit admin-openrc
export OS_USERNAME=admin
export OS_PASSWORD=0000
export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_AUTH_URL=http://controller1:5000/v3
export OS_IDENTITY_API_VERSION=3
export OS_IMAGE_API_VERSION=2
. admin-openrc
#Add the 'userRole' role to the myproject project and 'user' user
openstack role add --project myproject --user user userRole
#Unset the temporary OS_AUTH_URL and OS_PASSWORD environment variable:
unset OS_AUTH_URL OS_PASSWORD
openstack --os-auth-url http://controller1:5000/v3 --os-project-domain-name Default
--os-user-domain-name Default --os-project-name admin --os-username admin token
issue
Verification Compute :
gedit admin-openrc b nafs les configurations
. admin-openrc
openstack token issue