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 glance user and set a user password.
    1
    openstack user create --domain default --password-prompt glance
    

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

  3. Add the role to the project and user.
    1
    openstack role add --project service --user glance admin
    

  4. Create a service entity.
    1
    openstack service create --name glance --description "OpenStack Image" image
    
  5. Create API endpoints of the Image service.
    1
    openstack endpoint create --region RegionOne image public http://controller:9292
    

    1
    2
    openstack endpoint create --region RegionOne image internal http://controller:9292
    openstack endpoint create --region RegionOne image admin http://controller:9292