After Deprec

openstack_cloud_computing_cookbook

Issue link: https://read.uberflip.com/i/1334488

Contents of this Issue

Navigation

Page 42 of 317

Administering OpenStack Compute 32 Creating and modifying user accounts In our sandbox environment, we're running a very basic method of authentication, configured with the --use_deprecated_auth flag in our /etc/nova/nova.conf file. This method of authentication is appropriate for testing functionality. To add, remove, and modify accounts using this method of authentication, we use the nova-manage command directly on our OpenStack Compute host. Getting ready To begin with, ensure you're logged in to your OpenStack Compute host. How to do it... To add, remove, or modify user accounts, see the following sections. Adding Users In our environment, we currently have one user configured, openstack. This user had local administration rights to the project that allowed us to configure security groups and upload images as well as site-wide administration rights, courtesy of the cloudadmin role assigned. Normal users are given roles that exist only within their project (tenant). To do this, we perform the following steps: 1. To create a normal account under our cookbook project, we issue the following command: sudo nova-manage user create demoUser 2. This user isn't assigned to any project yet, though; to do this we issue the following command: sudo nova-manage project add --project=cookbook --user=demoUser 3. Finally, we can create the project zipfile bundle that we can then use on our client to utilize the environment, as that user. To do this, we issue the following command: sudo nova-manage project zipfile cookbook demoUser demoUser.zip A user can belong to any number of projects. Ensure the credential ZIP files are named separately for each project to allow you to swap between each. www.it-ebooks.info

Articles in this issue

Links on this page

Archives of this issue

view archives of After Deprec - openstack_cloud_computing_cookbook