OpenStack Stein : Configure Keystone#22019/05/16 |
Add Projects in Keystone.
This example is based on the emvironment like follows.
eth0|10.0.0.30 +-----------+-----------+ | [ Control Node ] | | | | MariaDB RabbitMQ | | Memcached httpd | | Keystone | +-----------------------+ |
[1] | Create and Load environment variables file. The password for [OS_PASSWORD] is the one you set it on bootstrapping keystone. The URL for [OS_AUTH_URL] is the Keystone server's hostname or IP address. |
[root@dlp ~]#
vi ~/keystonerc
export OS_PROJECT_DOMAIN_NAME=default
export OS_USER_DOMAIN_NAME=default export OS_PROJECT_NAME=admin export OS_USERNAME=admin export OS_PASSWORD=adminpassword export OS_AUTH_URL=http://10.0.0.30:5000/v3 export OS_IDENTITY_API_VERSION=3 export OS_IMAGE_API_VERSION=2 export PS1='[\u@\h \W(keystone)]\$ ' chmod 600 ~/keystonerc [root@dlp ~]# source ~/keystonerc [root@dlp ~(keystone)]# echo "source ~/keystonerc " >> ~/.bash_profile
|
[2] | Create Projects. |
# create service project [root@dlp ~(keystone)]# openstack project create --domain default --description "Service Project" service +-------------+----------------------------------+ | Field | Value | +-------------+----------------------------------+ | description | Service Project | | domain_id | default | | enabled | True | | id | c5e87c9b460e4f16801b4102019c97e6 | | is_domain | False | | name | service | | parent_id | default | | tags | [] | +-------------+----------------------------------+ # confirm settings [root@dlp ~(keystone)]# openstack project list +----------------------------------+---------+ | ID | Name | +----------------------------------+---------+ | 183a5ed32a77427986038c176b605d73 | admin | | c5e87c9b460e4f16801b4102019c97e6 | service | +----------------------------------+---------+ |
Sponsored Link |