Using Openstack Dashboard For User Management
As a cloud administrative user, Openstack Dashboard gives us the ability to administer users, projects, images, and flavors 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. Users are allowed to create and manage images within specified projects and to share images, depending on the Image service configuration. Typically, the policy configuration allows admin users only to set quotas and create and manage services. Users can be members of one or more projects. You can manage projects and users independently from each other.
Load a Web browser, point it to our OpenStack Dashboard address at https://172.16.0.200/horizon, and log in as a user, such as the demo user created in Adding users of Keystone Openstack Identity Service, with the password openstack.
How to achieve it…
User management under OpenStack Dashboard is achieved by carrying out the steps discussed in the following sections.
To add users, perform the following steps:
- Under Admin System Panel, click on the Users option to bring back a list of users on the system:
- To create a new user, click on the Create User
- We will then be presented with a form that asks for username details. Enter the username, e-mail, and the password for that user. In the example shown in the following screenshot, we created 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.
To delete users, perform the following steps:
- Under Admin System Panel, click on the Users option to bring back a list of users on the system.
- We will then be presented with a list of users in our OpenStack environment. To delete a user, click on the More button, which will present a drop down list with the option Delete User:
- Clicking on the Delete User option will bring up a confirmation dialog box. Clicking on the Delete User button will remove the user from the system:
Updating user details and passwords
To update user details and passwords, perform the following steps:
Under Admin System 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:
Frequently Asked OpenStack Interview Question & Answers
Adding users to tenants
To add users to tenants, perform the following steps:
- Under Admin System Panel, click on the Projects option to bring up a list of tenants on the system:
- Click on the 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 dropdown, next to the username and select a new role:
- After clicking 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 Admin System 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 dropdown list next to the Edit Project button, to reveal further options.
- Click on the 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 remove a user from this tenant, click on the – (minus sign) button next to that particular user under project members.
- After clicking the Save button at the bottom of the dialog box, we see a message saying that our tenant has been updated.
Explore OpenStack Sample Resumes! Download & Edit, Get Noticed by Top Employers! Download Now!
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.
Subscribe For Free Demo
Free Demo for Corporate & Online Trainings.