[Openstack-operators] Problems using python-novaclient remotely: all publicUrl endpoints are relative to localhost

Adrian Petrescu apetresc at gmail.com
Wed Jun 6 16:58:03 UTC 2012


Thanks, guys;

The problem was indeed that I was using the file catalog for keystone, so
my changes to endpoints through the API weren't persisting past a reboot. I
ended up just switching to the SQL driver, and now my endpoints persist,
and the client goes through :)

Cheers!
-Adrian

On Tue, Jun 5, 2012 at 10:09 AM, <mwjpiero at gmail.com> wrote:

> See /etc/keystone/default_catalog.template if you use the file catalog.
>
>
>
> -- Sent from my HP TouchPad
> ------------------------------
> On 5 Jun 2012 21:04, Lorin Hochstein <lorin at nimbisservices.com> wrote:
> Adrian:
>
> It sounds like your keystone endpoints are incorrect. You should be able
> to use "keystone endpoint-delete" to delete your old endpoints and
> "keystone endpoint-create" to create them again with the correct IP
> addresses.
>
> To confirm this is the issue, can you send the output of the following two
> commands:
>
> keystone service-list
> keystone endpoint-list
>
> The Install and Deploy guide has examples of how to create these
> endpoints:
> http://docs.openstack.org/trunk/openstack-compute/install/content/keystone-service-endpoint-create.html
>
> Take care,
>
> Lorin
> --
> Lorin Hochstein
> Lead Architect - Cloud Services
> Nimbis Services, Inc.
> www.nimbisservices.com
>
>
>
>
>
> On Jun 5, 2012, at 1:37 AM, Adrian Petrescu wrote:
>
> I'm running a simple single-node OpenStack installation on Ubuntu 12.04.
> Everything runs fine through the web GUI and local command line client, but
> I seem to have problems when using the python novaclient remotely.
>
> I configure the client with the proper auth URL (in this case, suppose
> that is at http://192.168.1.135:5000/v2.0/) and from stepping through the
> debugger it looks like a token is successfully obtained. However, the
> publicUrl endpoints that the auth API returns are all wrong: it reverts
> back to localhost! The python client therefore makes all future requests
> against localhost instead of 192.168.1.135 which therefore (of course)
> fails.
>
> I have looked through the Settings page on the web UI and both
> /etc/nova/nova.conf and /etc/keystone/keystone.conf and cannot find
> anywhere that I have improperly configured the public URL to be hardcoded
> to localhost. I could work around this by forcing the client to use the
> right path, but I feel there must be a simple way to fix the endpoints that
> auth is returning.
>
> Any suggestions? :)
>
> Thanks!
> Adrian
> _______________________________________________
> Openstack-operators mailing list
> Openstack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20120606/ade3e2c4/attachment-0002.html>


More information about the Openstack-operators mailing list