[Openstack-operators] Wrong URL returned on Keystone /v2.0

Jean-Daniel Bonnetot jean-daniel.bonnetot at ovh.net
Wed Dec 3 10:30:19 UTC 2014


Hi Ops,

Thanks! First try, success. 
Nice shot and thanks again.

I had similar problem on nova:
curl -v -H "X-Auth-Token:`cat token`" https://mycontroller.ovh.com:8774/v2/b2abfe4f92de4571ad716b70d00f7e21/servers

{"servers": [{"id": "2354ee79-2123-49e3-948b-336e19c1c070", "links": [{"href": "http://172.17.126.1:8774/v2/b2abfe4f92de4571ad716b70d00f7e21/servers/2354ee79-2123-49e3-948b-336e19c1c070", "rel": "self"}, {"href": "http://172.17.126.1:8774/b2abfe4f92de4571ad716b70d00f7e21/servers/2354ee79-2123-49e3-948b-336e19c1c070", "rel": "bookmark"}], "name": "instance"}….

Corrected by:
/etc/nova/nova.conf
[DEFAULT]
osapi_compute_link_prefix=https://mycontroller.ovh.com:8774/v2

curl -v -H "X-Auth-Token:`cat token`" https://mycontroller.ovh.com:8774/v2/b2abfe4f92de4571ad716b70d00f7e21/servers

{"servers": [{"id": "f934feb6-13e7-4202-8760-489b306bc361", "links": [{"href": "https://mycontroller.ovh.com:8774/v2/3effbdc4ae6346b8ba786bd0feb4bc84/servers/f934feb6-13e7-4202-8760-489b306bc361", "rel": "self"}, {"href": "https://mycontroller.ovh.com:8774/3effbdc4ae6346b8ba786bd0feb4bc84/servers/f934feb6-13e7-4202-8760-489b306bc361", "rel": "bookmark"}], "name": "c7-root"}, {"id": "56c96728-d47a-4550-9298-48e4b7370924", "links": [{"href": "https://mycontroller.ovh.com:8774/v2/3effbdc4ae6346b8ba786bd0feb4bc84/servers/56c96728-d47a-4550-9298-48e4b7370924", "rel": "self »},

Rgds,


--
Jean-Daniel
@pilgrimstack




Le 2 déc. 2014 à 19:02, Fischer, Matt <matthew.fischer at twcable.com> a écrit :

> Making that call just returns some details on the API version you¹ve
> selected. It really doesn¹t have anything to do with the catalog URLs. The
> URL you¹re looking at is a reference to the server who returned you the
> info. Perhaps it¹s your load balancer if you don¹t recognize the IP? It
> should either be that or the keystone box itself.
> 
> On 12/2/14, 10:27 AM, "Jean-Daniel Bonnetot"
> <jean-daniel.bonnetot at ovh.net> wrote:
> 
>> Hi Ops,
>> 
>> I get the wrong URL on this call :
>> 
>> curl -i -X GET https://mycontroller.ovh.com:5000/v2.0/ -H "Accept:
>> application/json" -H "User-Agent: python-keystoneclient"
>> HTTP/1.1 200 OK
>> 
>> {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z",
>> "media-types": [{"base": "application/json", "type":
>> "application/vnd.openstack.identity-v2.0+json"}, {"base":
>> "application/xml", "type":
>> "application/vnd.openstack.identity-v2.0+xml"}], "id": "v2.0", "links":
>> [{"href": "http://172.16.64.1:5000/v2.0/", "rel": "self"}, {"href":
>> "http://docs.openstack.org/api/openstack-identity-service/2.0/content/",
>> "type": "text/html", "rel": "describedby"}, {"href":
>> "http://docs.openstack.org/api/openstack-identity-service/2.0/identity-dev
>> -guide-2.0.pdf", "type": "application/pdf", "rel": "describedby"}]}}
>> 
>> I get "href": "http://172.16.64.1:5000/v2.0/«  witch is not my publicURL,
>> not my internalURL and not my adminURLŠ
>> It¹s a kind of ip based internalURL, very strange.
>> 
>> My catalog is :
>> # keystone catalog --service identity
>> Service: identity
>> +-------------+----------------------------------------------+
>> |   Property  |                    Value                     |
>> +-------------+----------------------------------------------+
>> |   adminURL  | https://mycontroller.ovh.com:35357/v2.0      |
>> |      id     |       3e83b592262149ee9a007df65ac9c431       |
>> | internalURL |        http://controller284:5000/v2.0        |
>> |  publicURL  | https://mycontroller.ovh.com.com:5000/v2.0   |
>> |    region   |                  regionOne                   |
>> +-------------+‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹+
>> 
>> There is something anywhere where I can set the url return by this call ?
>> 
>> Rgds,
>> 
>>>> Jean-Daniel Bonnetot
>> @pilgrimstack
>> _______________________________________________
>> OpenStack-operators mailing list
>> OpenStack-operators at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
> 
> 
> This E-mail and any of its attachments may contain Time Warner Cable proprietary information, which is privileged, confidential, or subject to copyright belonging to Time Warner Cable. This E-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this E-mail, you are hereby notified that any dissemination, distribution, copying, or action taken in relation to the contents of and attachments to this E-mail is strictly prohibited and may be unlawful. If you have received this E-mail in error, please notify the sender immediately and permanently delete the original and any copy of this E-mail and any printout.




More information about the OpenStack-operators mailing list