OpenStack Dashboard gives us the ability to administer users through the web interface. This allows an administrator to easily create and edit users within an OpenStack environment. To manage users, you must log in using an account that is a member of the admin role.
Getting ready
Load a web browser, point it to our OpenStack Dashboard address at http://192.168.100.200/, and log in as a user, such as the admin user created in the Adding users to Keystone recipe of Chapter 1, Keystone – OpenStack Identity Service, with the password openstack.
How to do it...
User management under OpenStack Dashboard is achieved by carrying out the steps discussed in the following sections.
Adding users
To add users, perform the following steps:
Under the Identity panel, click on the Users option to bring up a list of users set up on the system:
To create a new user, click on the Create User button.
We will be presented with a form that asks for user name details. Enter the user name, e-mail, and the password for that user. In the example shown in the following screenshot, we create a user named test, set openstack as the password, and assign that user to the horizon tenant with the role of admin:
We are returned to the screen listing the users of our OpenStack environment with a message stating that our user creation was successful.
Deleting users
To delete users, perform the following steps:
Under the Identity panel, click on the Users option to bring up a list of users on the system.
We will be presented with a list of users in our OpenStack environment. To delete a user, click on the appropriate Edit button, which will present a drop-down list with the Delete User option:
Clicking on the Delete User option will bring up a confirmation dialog box. Confirm by clicking on the Delete User button to remove the user from the system:
Updating user details and passwords
To update user details and passwords, perform the following steps:
Under the Identity panel, click on the Users option to bring up a list of users on the system.
To change a user's password, e-mail address, or primary project (tenant), click on the Edit button for that user.
This brings up a dialog box asking for the relevant information. When the information has been set as we want it to be, click on the Update User button:
Adding users to tenants
To add users to tenants, perform the following steps:
Under the Identity panel, click on the Projects option to bring up a list of tenants on the system:
Click on the appropriate Modify Users option to bring up a list of users associated with a tenant as well as a list of users, which we can add to that tenant:
To add a new user to the list, simply click on the + (plus sign) button next to that user.
To change the role of the user within that tenant, select the drop-down arrow next to the username and select a new role:
After clicking on the Save button at the bottom of the dialog box, we see a message saying that our tenant has been updated. This user can now launch instances in different tenants when they log on.
Removing users from tenants
To remove users from tenants, perform the following steps:
Under the Identity panel, click on the Projects option to bring up a list of tenants on the system.
To remove a user from a tenant, for example, horizon, click on the appropriate Modify Users button:
After clicking on the Modify Users button, you will get a modal window with a list of all users as well as project members, which we can remove from that tenant:
To remove a user from this tenant, click on the - (minus sign) button next to that particular user under project members.
After clicking on the Save button at the bottom of the dialog box, we see a message saying that our tenant has been updated.
How it works...
OpenStack Dashboard is a feature-rich interface that complements the command-line options available to us when managing our cloud environment. The interface has been designed so that the functions available are as intuitive as possible to the administrator. This means that we can easily create users, modify their membership within tenants, update passwords, and remove them from the system altogether.