After Deprec

openstack_cloud_computing_cookbook

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

Contents of this Issue

Navigation

Page 84 of 317

Keystone OpenStack Identity Service 74 How to do it... To use OpenStack Identity Service as the authentication mechanism in our OpenStack environment, we need to set our environment variables accordingly. This is achieved as follows, for our demo user: 1. We first have to configure our environment to use OpenStack Identity Service as our authentication. For Nova Client, we do this by creating an environment resource configuration file with the required variables configured (for example, / home/user/keystonerc): NOVA_API_HOST=172.16.0.1 KEYSTONE_API_HOST=172.16.0.1 KEYSTONE_TENANT="cookbook" KEYSTONE_USERNAME="demo" KEYSTONE_PASSWORD="openstack" NOVA_REGION="RegionOne" export NOVA_USERNAME=$KEYSTONE_USERNAME export NOVA_PROJECT_ID=$KEYSTONE_TENANT export NOVA_PASSWORD=$KEYSTONE_PASSWORD export NOVA_API_KEY=$KEYSTONE_PASSWORD export NOVA_REGION_NAME=$NOVA_REGION export NOVA_URL="http://${NOVA_API_HOST}:5000/v2.0/" export NOVA_VERSION="1.1" export OS_AUTH_USER=$KEYSTONE_USERNAME export OS_AUTH_KEY=$KEYSTONE_PASSWORD export OS_AUTH_TENANT=$KEYSTONE_TENANT export OS_AUTH_URL="http://${KEYSTONE_API_HOST}:5000/v2.0/" export OS_AUTH_STRATEGY="keystone" 2. We can now simply source this into our environment and use the environment, as before: . keystonerc 3. We can test that this is successful by issuing some nova commands, for example: nova list nova credentials 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