CentOS 7
Sponsored Link

OpenStack Rocky : Add Users2018/08/31

 
Add Users in keystone who can use Openstack System.
[1] Any names are OK you like for user-name or project-name.
Also Add flavors which define vCPU or Memory of an instance, too.
# add project

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

+-------------+----------------------------------+
| Field       | Value                            |
+-------------+----------------------------------+
| description | Hiroshima Project                |
| domain_id   | default                          |
| enabled     | True                             |
| id          | 9c0848a6869b433f8c18c75a868ee8e0 |
| is_domain   | False                            |
| name        | hiroshima                        |
| parent_id   | default                          |
| tags        | []                               |
+-------------+----------------------------------+

# add user

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

+---------------------+----------------------------------+
| Field               | Value                            |
+---------------------+----------------------------------+
| default_project_id  | 9c0848a6869b433f8c18c75a868ee8e0 |
| domain_id           | default                          |
| enabled             | True                             |
| id                  | 30089f6b629745c697ec11038c34d5df |
| name                | serverworld                      |
| options             | {}                               |
| password_expires_at | None                             |
+---------------------+----------------------------------+

# add role

[root@dlp ~(keystone)]#
openstack role create CloudUser

+-----------+----------------------------------+
| Field     | Value                            |
+-----------+----------------------------------+
| domain_id | None                             |
| id        | 4340435156d04b9f826177916cd51d3c |
| name      | CloudUser                        |
+-----------+----------------------------------+

# add user to the role

[root@dlp ~(keystone)]#
openstack role add --project hiroshima --user serverworld CloudUser
# add flavor

[root@dlp ~(keystone)]#
openstack flavor create --id 0 --vcpus 1 --ram 2048 --disk 10 m1.small

+----------------------------+----------+
| Field                      | Value    |
+----------------------------+----------+
| OS-FLV-DISABLED:disabled   | False    |
| OS-FLV-EXT-DATA:ephemeral  | 0        |
| disk                       | 10       |
| id                         | 0        |
| name                       | m1.small |
| os-flavor-access:is_public | True     |
| properties                 |          |
| ram                        | 2048     |
| rxtx_factor                | 1.0      |
| swap                       |          |
| vcpus                      | 1        |
+----------------------------+----------+
Matched Content