- Do you have multiple projects(tenants)?
- Do you have another OpenStack to run your instances?
* Before you try Supernova on FutureGird, you have to have your FutureGrid account and should know how to use OpenStack. Here's the link of our OpenStack Tutorial -> http://manual.futuregrid.org/openstackgrizzly.htmlLogin to Sierra and load Supernova.
ssh username@sierra.futuregrid.org
module load supernova
Check your novarc file and create your ~/.supernova file like below. In this example, my account(user1) is a member of fg123 and fg456.
[fg123] OS_AUTH_URL=https://s77r.idp.sdsc.futuregrid.org:5000/v2.0 OS_CACERT=/etc/futuregrid/openstack/sierra/cacert.pem OS_PASSWORD=*************** OS_TENANT_NAME=fg123 OS_USERNAME=user1
[fg456] OS_AUTH_URL=https://s77r.idp.sdsc.futuregrid.org:5000/v2.0 OS_CACERT=/etc/futuregrid/openstack/sierra/cacert.pem OS_PASSWORD=*************** OS_TENANT_NAME=fg456 OS_USERNAME=user1
Don't forget to change the permission to make it unreadable to anyone else.
chmod 600 ~/.supernova
Now, you should be able to check your tenant list.
supernova --list
-- fg123 -------------------------------------------------------------------- OS_AUTH_URL : https://s77r.idp.sdsc.futuregrid.org:5000/v2.0 OS_CACERT : /etc/futuregrid/openstack/sierra/cacert.pem OS_PASSWORD :
***************
OS_TENANT_NAME : fg123 OS_USERNAME : user1
-- fg456 -------------------------------------------------------------------- OS_AUTH_URL : https://s77r.idp.sdsc.futuregrid.org:5000/v2.0 OS_CACERT : /etc/futuregrid/openstack/sierra/cacert.pem OS_PASSWORD :
***************
OS_TENANT_NAME : fg456 OS_USERNAME : user1
The usage is the same as Nova Client. You just need to replace "
nova
" to "supernova <tenantname>
". Here's how to boot an instance on each tenant. supernova fg123 boot --image futuregrid/ubuntu-12.04 --flavor m1.small --key-name mykey fg123vm001
supernova fg456 boot --image futuregrid/ubuntu-12.04 --flavor m1.small --key-name mykey fg456vm002
supernova fg123 list supernova fg456 list
Very easy and very useful, isn't it?
In my work, I have multiple tenants and multiple OpenStack sets to work with, so Supernova is very very very helpful. I hope it makes your work easier, too!
Thanks,
No comments:
Post a Comment
Questions? Thoughts? We'd like to hear from you.