After Deprec

openstack_cloud_computing_cookbook

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

Contents of this Issue

Navigation

Page 29 of 317

Chapter 1 19 Creating a cloudadmin account and project As part of our installation we specified --use_deprecated_auth, which means that we are using a simple way of storing users, roles, and projects within our OpenStack Compute environment. This is an ideal way to start working with OpenStack within a small development environment such as our sandbox. For larger, production ready environments, Keystone is used, which is covered in Chapter 6, Administering OpenStack Storage. The cloudadmin account group is the equivalent of the root user on a Unix/Linux host. It has access to all aspects of your Nova cloud environment and so the first account we need to create must have this credential. Each user has a project—a tenancy in the cloud that has access to certain resources and network ranges. In order to spin up instances in your private cloud environment, a user is assigned to a project. This project can then be kept separate from other users' projects, and equally other users can belong to the same project. Getting ready The nova-manage command must be run with root privileges so we execute the nova- manage command prefixed with the sudo command. How to do it... 1. We first need to create an admin user which we will call openstack as follows: sudo nova-manage user admin openstack 2. We then assign the openstack user to the cloudadmin role as follows: sudo nova-manage role add openstack cloudadmin 3. Once we have that role assigned, which is appropriate for this section to run as the cloudadmin role, we can create a project for this user that we will call cookbook. We do this as follows: sudo nova-manage project create cookbook openstack 4. At this point, we have all the required files set up for us to begin to use OpenStack Compute, but we need to ship these over to our underlying host computer (the computer running the VirtualBox software) so that we can access OpenStack Compute from there. OpenStack provides an option to package these credential files up as a ZIP file for this purpose. sudo nova-manage project zipfile cookbook openstack 5. The result of this is a file called nova.zip in your current directory. 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