Ubuntu 22.04
Sponsored Link

OpenStack Antelope : ユーザーを新規追加する2023/03/23

 
Openstack が利用可能な任意のユーザーを Keystone に新規追加します。
[1] ユーザー名やプロジェクト名は任意の名称で OK です。
# 任意のプロジェクト追加

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

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

# 任意のユーザー追加

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

+---------------------+----------------------------------+
| Field               | Value                            |
+---------------------+----------------------------------+
| default_project_id  | e294bd7c00314facacdb46c36fb54ee9 |
| domain_id           | default                          |
| enabled             | True                             |
| id                  | 85236576a97e492791abe70c217c8898 |
| name                | serverworld                      |
| options             | {}                               |
| password_expires_at | None                             |
+---------------------+----------------------------------+

root@dlp ~(keystone)#
openstack role list

+----------------------------------+--------+
| ID                               | Name   |
+----------------------------------+--------+
| 9ef8c6b3f07544fa8fbda60043be9ab4 | reader |
| e06201251dca4570839521f089b961d3 | member |
| f8ab227f0a1b4c1ba730ec919741482f | admin  |
+----------------------------------+--------+

# ユーザーを [member] ロールに加える

root@dlp ~(keystone)#
openstack role add --project hiroshima --user serverworld member
関連コンテンツ