Issue link: https://read.uberflip.com/i/1334488
Keystone OpenStack Identity Service 76 export EC2_USER_ID=42 # nova does not use user id, but bundling requires it export EC2_PRIVATE_KEY=${NOVA_KEY_DIR}/demo.pem export EC2_CERT=${NOVA_KEY_DIR}/cert.pem export NOVA_CERT=${NOVA_KEY_DIR}/cacert.pem export EUCALYPTUS_CERT=${NOVA_CERT} # euca-bundle-image requires this set export S3_URL=http://$NOVA_API_HOST:3333 alias ec2-bundle-image="ec2-bundle-image --cert ${EC2_CERT} --privatekey ${EC2_PRIVATE_KEY} --user 42 --ec2cert ${NOVA_CERT}" alias ec2-upload-bundle="ec2-upload-bundle -a ${EC2_ACCESS_KEY} -s ${EC2_SECRET_KEY} --url ${S3_URL} --ec2cert ${NOVA_CERT}" 8. With this created, we can source this in to our environment to use euca2ools: . ec2rc 9. We then utilize the euca- commands as follows, for example: euca-describe-instances How it works... Configuring our environment to use OpenStack Identity Service for authentication for Nova Client and euca2ools so that we can launch our instances involves manually creating an environment resource file with the appropriate environment variables. To configure our environment to use euca2ools, we run an extra option that creates the appropriate EC2_ACCESS_KEY and EC2_SECRET_KEY environment variables within OpenStack Identity Service as well as extracting the root cert and creating a cert for our user to allow us to use the cloud-util tools to upload images. Our environment passes on our username, password, and tenant to OpenStack Identity Service for authentication and passes back, behind the scenes, an appropriate token, which validates our user. This then allows us to seamlessly spin up instances within our tenancy (project) of cookbook. www.it-ebooks.info

