OpenStack Antelope : Add Users2023/04/14 |
Add User accounts in keystone who can use Openstack System.
|
|
[1] | Any names are OK you like for user-name or project-name. |
# add 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 | 17b52bb0db9440549d400290cec02c1d | | is_domain | False | | name | hiroshima | | options | {} | | parent_id | default | | tags | [] | +-------------+----------------------------------+ # add a user [root@dlp ~(keystone)]# openstack user create --domain default --project hiroshima --password userpassword serverworld +---------------------+----------------------------------+ | Field | Value | +---------------------+----------------------------------+ | default_project_id | 17b52bb0db9440549d400290cec02c1d | | domain_id | default | | enabled | True | | id | 1ed6032943cb4e5d907371a20adae1c0 | | name | serverworld | | options | {} | | password_expires_at | None | +---------------------+----------------------------------+[root@dlp ~(keystone)]# openstack role list +----------------------------------+--------+ | ID | Name | +----------------------------------+--------+ | 0eea22f06a1c4241b145dc56e333b3f7 | admin | | 3bc83f2ae2e340d0ad8b1273b4edb567 | member | | e462409d93a24b20b2834391959ce10f | reader | +----------------------------------+--------+ # add a user to the [member] role [root@dlp ~(keystone)]# openstack role add --project hiroshima --user serverworld member
|
Sponsored Link |
|