OpenStack Caracal : Configure Keystone #22024/04/05 |
Add Projects in Keystone.
This example is based on the environment like follows.
eth0|10.0.0.30 +-----------+-----------+ | [ dlp.srv.world ] | | (Control Node) | | | | MariaDB RabbitMQ | | Memcached Nginx | | Keystone httpd | +-----------------------+ |
[1] | Load environment variables first. The value for [OS_PASSWORD] is from the password when configuring keystone bootstrap. For [OS_AUTH_URL], specify 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=https://dlp.srv.world: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 " >> ~/.bashrc
|
[2] | Create Projects. If you set self-signed certificate on Apache httpd, add [--insecure] option on [openstack] commands. |
# 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 | 6e67adf880a244b8818ec2aa1a36e747 | | is_domain | False | | name | service | | options | {} | | parent_id | default | | tags | [] | +-------------+----------------------------------+ # confirm settings root@dlp ~(keystone)# openstack project list +----------------------------------+---------+ | ID | Name | +----------------------------------+---------+ | 5a623d1300e24f8e97c3e5e7f81d53ed | admin | | 6e67adf880a244b8818ec2aa1a36e747 | service | +----------------------------------+---------+ |
Sponsored Link |