[Fiware-cloud] Example for using OpenStack scripts in Keystone Proxy scenarios

javier cerviño jcervino at dit.upm.es
Wed Nov 13 16:49:49 CET 2013


Hi all,

As I was asked during the conf call I send you the example I use to access
the OpenStack components in the Testbed environment.

export OS_USERNAME=jcervino at dit.upm.es
                <-- you have to change this with the email you have
registered in the FI-Ware Account (the one in the Testbed)
export OS_PASSWORD=my_password
                <--- you have to change it with your password
export OS_AUTH_URL=http://cloud.testbed.fi-ware.eu:4730/v2.0
           <--- please, don't change it

Once you have run the above commands (in Linux) you can make a request to
keystone to know your tenants:

keystone tenant-list

It will show you the tenants. Copy the id of one of them and copy in the
next command:

export OS_TENANT_NAME="e3fdc08f56594a4799d09c070f1c3d0a"
 <-- Change with your tenant

In Openstack this should be the name, but in the IDM the name of the
organization is not unique so we can't use in this query, so in the
Keystone API both tenantName or tenantId will be used to represent the ID
of the organization.

Now you can run other commands in Openstack:

nova list
glance index
...

You can also run curl commands:

curl -d '{"auth": {"passwordCredentials": {"username":"jcervino at dit.upm.es",
"password":"my_password"}}}' -H"Content-type: application/json"
http://cloud.testbed.fi-ware.eu:4730/v2.0/tokens -vvv

Or:

curl -d '{"auth": {"passwordCredentials": {"username":"jcervino at dit.upm.es",
"password":"my_password"},"tenantId":"e3fdc08f56594a4799d09c070f1c3d0a"}}'
-H"Content-type: application/json"
http://cloud.testbed.fi-ware.eu:4730/v2.0/tokens -vvv

Please, remember that it is not implemented in the FI-LAB environment yet.
Once we all check it is working right we will also update our Keystone
Proxy there.

Cheers,
Javier.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/old-fiware-cloud/attachments/20131113/c8ae1e78/attachment.html>


More information about the Old-Fiware-cloud mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy