CentOS Stream 9
Sponsored Link

OpenStack Dalmatian : Configure Keystone #22024/10/09

 

Add Projects on 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] 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=https://dlp.srv.world:5000
export OS_IDENTITY_API_VERSION=3
export OS_IMAGE_API_VERSION=2
export PS1='[\u@\h \W(keystone)]\$ '
[root@dlp ~]#
chmod 600 ~/keystonerc

[root@dlp ~]#
source ~/keystonerc

[root@dlp ~(keystone)]#
echo "source ~/keystonerc " >> ~/.bash_profile
[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          | aff8e7e402dc4d9e849bbe0e34fa4538 |
| is_domain   | False                            |
| name        | service                          |
| options     | {}                               |
| parent_id   | default                          |
| tags        | []                               |
+-------------+----------------------------------+

# confirm settings

[root@dlp ~(keystone)]#
openstack project list

+----------------------------------+---------+
| ID                               | Name    |
+----------------------------------+---------+
| aff8e7e402dc4d9e849bbe0e34fa4538 | service |
| b19d04cd37254937a4eaebcd0f0f0a43 | admin   |
+----------------------------------+---------+
Matched Content