Debian 12 bookworm
Sponsored Link

OpenStack Zed : Add Openstack Users2023/06/27

 
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          | 1c2f5dc8c4f9494fbaaa4217c8e3585a |
| 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  | 1c2f5dc8c4f9494fbaaa4217c8e3585a |
| domain_id           | default                          |
| enabled             | True                             |
| id                  | de51d5f0ee2c485885877d21f5b424e0 |
| name                | serverworld                      |
| options             | {}                               |
| password_expires_at | None                             |
+---------------------+----------------------------------+

root@dlp ~(keystone)#
openstack role list

+----------------------------------+--------+
| ID                               | Name   |
+----------------------------------+--------+
| 109c6488ef4347d681ba691f8ac97a6b | member |
| 82699442db4e4edea2fb7986340b5ab4 | admin  |
| eb3d0d5b10cd456093463a2c12e41b82 | reader |
+----------------------------------+--------+

# add a user to the [member] role

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