Issue link: https://read.uberflip.com/i/1334488
Chapter 2 33 4. This creates the demoUser.zip file. We can download this to our client and unpack and source in the novarc file within this, ready for use with our OpenStack Compute environment. Deleting Users The method for removing users in our environment, when basic authentication is used, is similar to that of creating a user. To remove a user from our environment when basic authentication is used, we simply issue the following command: sudo nova-manage user delete demoUser Removing a user from a project A user can belong to any number of projects, so adding and removing users from projects is an essential feature of a cloud environment. To remove a user from a project we issue the following command: sudo nova-manage project remove --project=cookbook --user=demoUser How it works... To manage users in OpenStack Compute when using basic authentication, as denoted by the --use_deprecated_auth flag in /etc/nova/nova.conf, we use the nova-manage command on our OpenStack Compute server directly, and we must run this with root privileges using sudo. We can add a user to a particular role in a particular project. This can be done in three steps: 1. Create the user, as follows: sudo nova-manage user create username 2. Add the user to the project, as follows: sudo nova-manage project add –-project=projectname -–user=username 3. Finally, export the credentials to a ZIP file, which can then be transferred to the user's client, as follows: sudo nova-manage project zipfile projectname username username.zip What this means is that we can now give our users their own appropriate OpenStack credentials, unpack them, and then source in their own details, which allows them to run the commands as their role dictates. www.it-ebooks.info

