Rate This Document
Findability
Accuracy
Completeness
Readability

Creating Roles and Users

Perform the following operations on the controller node.

  1. Log in to the OpenStack CLI as the user admin.
    1
    source /etc/keystone/admin-openrc
    
  2. Create a nova user and set its password.
    1
    openstack user create --domain default --password-prompt nova
    

    The password for the nova user must be the same as the password for accessing the Nova database described in section Creating the Nova Database.

  3. Add the admin role to the nova user.
    1
    openstack role add --project service --user nova admin
    
  4. Create a nova entity.
    1
    openstack service create --name nova --description "OpenStack Compute" compute
    
  5. Create compute API service endpoints.
    1
    2
    3
    openstack endpoint create --region RegionOne compute public http://controller:8774/v2.1
    openstack endpoint create --region RegionOne compute internal http://controller:8774/v2.1
    openstack endpoint create --region RegionOne compute admin http://controller:8774/v2.1