Ubuntu 22.04
Sponsored Link

OpenStack Bobcat : Add Openstack Users2023/10/05

 
Add User accounts in keystone who can use Openstack System.
[1] Any names are OK you like for user-name or project-name.
# create a project

root@dlp ~(keystone)#
openstack project create --domain default --description "Hiroshima Project" hiroshima

+-------------+----------------------------------+
| Field       | Value                            |
+-------------+----------------------------------+
| description | Hiroshima Project                |
| domain_id   | default                          |
| enabled     | True                             |
| id          | f30cd546632e484cb24414d83207694b |
| is_domain   | False                            |
| name        | hiroshima                        |
| options     | {}                               |
| parent_id   | default                          |
| tags        | []                               |
+-------------+----------------------------------+

# create a user

root@dlp ~(keystone)#
openstack user create --domain default --project hiroshima --password userpassword serverworld

+---------------------+----------------------------------+
| Field               | Value                            |
+---------------------+----------------------------------+
| default_project_id  | f30cd546632e484cb24414d83207694b |
| domain_id           | default                          |
| enabled             | True                             |
| id                  | 470c9323dad64bbea8fb5ecca6381f72 |
| name                | serverworld                      |
| options             | {}                               |
| password_expires_at | None                             |
+---------------------+----------------------------------+

root@dlp ~(keystone)#
openstack role list

+----------------------------------+---------+
| ID                               | Name    |
+----------------------------------+---------+
| 0d41776fe92a4875a4aeda03f4804def | service |
| 1d6a75014fac4882853dcdf9005d2ac0 | member  |
| 7e9cba7b97f24cdfadba96d81da21b61 | admin   |
| a7176a75921345a4b3f0ccfa798650e5 | reader  |
+----------------------------------+---------+

# add a user to the [member] role

root@dlp ~(keystone)#
openstack role add --project hiroshima --user serverworld member
Matched Content