Step 8: Making the euca2ools work

OpenStack offers a full-blown native API for administrator interaction. However, it also has an API compatible with Amazons AWS service. This means that on Linux you can not only use the native OpenStack clients for interaction but also the euca2ools toolsuite. Using euca2ools with keystone is possible. Large portions on how to do it are written down in this document. Here's the short summary for those who are in a hurry:

First, make sure that the $SERVICE_TOKEN and $SERVICE_ENDPOINT variables are not set:

unset SERVICE_TOKEN
unset SERVICE_ENDPOINT

Then, make sure the numerous OS_* variables are set correctly - for this example, use these commands:

declare -x OS_AUTH_URL="http://10.42.0.6:5000/v2.0/"
declare -x OS_PASSWORD="hastexo"
declare -x OS_TENANT_NAME="admin"
declare -x OS_USERNAME="admin"

Now you can go ahead:

export EC2_URL=$(keystone catalog --service ec2 | awk '/ publicURL / { print $4 }')
export CREDS=$(keystone ec2-credentials-create)
export EC2_ACCESS_KEY=$(echo "$CREDS" | awk '/ access / { print $4 }')
export EC2_SECRET_KEY=$(echo "$CREDS" | awk '/ secret / { print $4 }') 
After that, the euca2ools should just work (if the euca2ools package is installed, of course). You can try running
euca-describe-images 
or
euca-describe-instances
to find out whether it's working or not.

Comments

trouble shooting

hi~

I am 26 years old and university student in the south of korea

 

I've done step 1~7

But, error occur first command line of 8 step

I want to solve the problem.

Advise to me , please...

--------------------------------------------------------------------------------------------------------------

#export EC2_URL=$(keystone catalog --service ec2 | awk '/ publicURL / { print $4 }')

--------------------------------------------------------------------------------------------------------------

'Client' object has no attribute 'service_catalog'

--------------------------------------------------------------------------------------------------------------

I updated the howto, can you

I updated the howto, can you please check whether it works for you now?