Creating Roles and Users
Perform the following operations on the controller node.
- Log in to the OpenStack CLI as the user admin.
1source /etc/keystone/admin-openrc
- Create a nova user and set its password.
1openstack 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.
- Add the admin role to the nova user.
1openstack role add --project service --user nova admin
- Create a nova entity.
1openstack service create --name nova --description "OpenStack Compute" compute
- 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
Parent topic: Installing, Configuring, and Verifying Nova