Keystone (identity)
Keystone is OpenStack’s identity service. A user holds a role on a project; that decides what the user may do.
HAGISTACK uses the Default domain only.
Load the admin credentials as in CLI basics first.
openstack user listopenstack project listopenstack role list| Command | Shows | Permission | Horizon |
|---|---|---|---|
openstack user list |
users (admin, and the service users glance, nova, neutron, placement, …) |
admin | Identity → Users |
openstack project list |
projects (admin, service) |
admin | Identity → Projects |
openstack role list |
roles (admin, member, reader, …) |
admin | Identity → Roles |
Create a project and a user
Section titled “Create a project and a user”As an example, create the project demo and the user alice as a member of it:
openstack project create --domain Default --description "Demo project" demoopenstack user create --domain Default --project demo --password-prompt aliceopenstack role add --project demo --user alice member--password-promptasks for the password. A password on the command line stays in the shell history and the process list.role addgivesalicethememberrole on thedemoproject.
Check:
openstack role assignment list --user alice --namesExpected result: member assigned to alice@Default on demo@Default.
Horizon: Identity → Projects / Users.
Work as the new user
Section titled “Work as the new user”For a credentials file for alice, copy admin-openrc and change OS_USERNAME, OS_PROJECT_NAME and OS_PASSWORD; chmod 600 any file that holds a password.
To create VMs as alice, the demo project needs its own tenant network, key pair and security group rules (HAGISTACK’s initial resources are in the admin project).
Change and delete
Section titled “Change and delete”openstack user set --password-prompt alice # change the passwordopenstack role remove --project demo --user alice memberopenstack user delete aliceopenstack project delete demo