<HTML>
<HEAD>
<TITLE>Re: [Openstack] Keystone client broken??</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I’m still confused.<BR>
<BR>
Is there a bug in the keystone client that is causing these attributes to not exist?<BR>
<BR>
I am assuming yes, since devstack.org is doing the same calls.<BR>
<BR>
<a href="https://github.com/openstack-dev/devstack/blob/master/eucarc#L22">https://github.com/openstack-dev/devstack/blob/master/eucarc#L22</a><BR>
<BR>
Which should blow up in the same place.<BR>
<BR>
Thx for the explanation though.<BR>
<BR>
On 3/22/12 3:16 PM, "Jesse Andrews" <<a href="anotherjesse@gmail.com">anotherjesse@gmail.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>With *all* services, if you know the endpoint you can query them<BR>
directly with the auth mechanism (either token or ec2 access/secret).<BR>
<BR>
OpenStack has an identity service (keystone) that returns a catalog of<BR>
services (for discovery)<BR>
<BR>
You don't need to look at the catalog if you know the endpoints.<BR>
<BR>
Just set the AWS endpoint how you would normally.<BR>
<BR>
That said: horizon can build a eucarc that has an access/secret & ec2<BR>
endpoint for you.  It does so by doing the same thing devstack does:<BR>
<BR>
  * looks in the catalog for the ec2 endpoint, and writes it the file<BR>
  * requests an access/secret for a user from keystone.<BR>
<BR>
If you have all that, you can skip ahead to go :) and use your tools.<BR>
<BR>
The assumption is a user of an openstack cloud would need to determine<BR>
those things, and we expose them in keystone (discovery and<BR>
tokens/access/secrets)<BR>
<BR>
Jesse<BR>
<BR>
On Thu, Mar 22, 2012 at 1:39 PM, Joshua Harlow <<a href="harlowja@yahoo-inc.com">harlowja@yahoo-inc.com</a>> wrote:<BR>
> I’m confused.<BR>
><BR>
> So this means ec2 won’t work because it can’t have a service catalog?<BR>
><BR>
> All of those variables should of been set:<BR>
><BR>
> export OS_AUTH_URL=<a href="http://172.21.102.236:5000/v2.0">http://172.21.102.236:5000/v2.0</a><BR>
> export OS_PASSWORD=ac31bec851146d3c7f00<BR>
> export OS_TENANT_NAME=demo<BR>
> export OS_USERNAME=demo<BR>
><BR>
><BR>
> On 3/22/12 1:39 PM, "Dolph Mathews" <<a href="dolph.mathews@gmail.com">dolph.mathews@gmail.com</a>> wrote:<BR>
><BR>
> Accidentally hit send...<BR>
><BR>
> Anyway... which does not necessarily correspond to a normal user with a<BR>
> service catalog.<BR>
><BR>
> The error message should explain this and direct you to use an OS_USERNAME,<BR>
> OS_PASSWORD, OS_TENANT_* and OS_AUTH_URL instead (which can have a service<BR>
> catalog).<BR>
><BR>
> -Dolph Mathews<BR>
><BR>
> On Mar 22, 2012, at 1:42 PM, Joshua Harlow <<a href="harlowja@yahoo-inc.com">harlowja@yahoo-inc.com</a>> wrote:<BR>
><BR>
> Keystone client broken?? Hi all,<BR>
><BR>
><BR>
> When trying to use eucarc<BR>
> (<a href="https://github.com/openstack-dev/devstack/blob/master/eucarc">https://github.com/openstack-dev/devstack/blob/master/eucarc</a>) or the<BR>
> devstackPY copy called euca.sh (<BR>
> <a href="https://github.com/yahoo/Openstack-DevstackPy/blob/master/euca.sh">https://github.com/yahoo/Openstack-DevstackPy/blob/master/euca.sh</a> )<BR>
><BR>
> I am getting the following:<BR>
><BR>
> ++ keystone catalog --service ec2<BR>
> ++ awk '/ publicURL / { print $4 }'<BR>
> 'Client' object has no attribute 'service_catalog'<BR>
> + export EC2_URL=<BR>
> + EC2_URL=<BR>
> ++ keystone ec2-credentials-create<BR>
> 'Client' object has no attribute 'auth_tenant_id'<BR>
> + CREDS=<BR>
> ++ echo ''<BR>
> ++ awk '/ access / { print $4 }'<BR>
> + export EC2_ACCESS_KEY=<BR>
> + EC2_ACCESS_KEY=<BR>
> ++ echo ''<BR>
> ++ awk '/ secret / { print $4 }'<BR>
> + export EC2_SECRET_KEY=<BR>
> + EC2_SECRET_KEY=<BR>
> + NOVA_KEY_DIR=<BR>
> ++ keystone catalog --service s3<BR>
> ++ awk '/ publicURL / { print $4 }'<BR>
> 'Client' object has no attribute 'service_catalog'<BR>
><BR>
> Has there been some changes that are causing this??<BR>
><BR>
> Seems like maybe the keystone client is not working anymore?<BR>
><BR>
> -Josh<BR>
><BR>
> _______________________________________________<BR>
> Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><BR>
> Post to     : <a href="openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><BR>
> Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><BR>
> More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><BR>
><BR>
><BR>
><BR>
> _______________________________________________<BR>
> Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><BR>
> Post to     : <a href="openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><BR>
> Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><BR>
> More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><BR>
><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>