[Openstack-operators] [openstack][placement] Placement API service catalog

Ajay Kalambur (akalambu) akalambu at cisco.com
Sat Jun 10 21:34:08 UTC 2017


Hi Curtis
Thanks for the help. You were spot on in pointing out the issue
Copy pasted previous nova api haproxy config and forgot to update port


Thanks again 
Ajay




On 6/10/17, 1:52 PM, "Curtis" <serverascode at gmail.com> wrote:

>On Sat, Jun 10, 2017 at 11:56 AM, Ajay Kalambur (akalambu)
><akalambu at cisco.com> wrote:
>> Hi
>> I made all the changes as documented in
>> https://docs.openstack.org/ocata/install-guide-ubuntu/nova-controller-install.html
>> https://docs.openstack.org/ocata/install-guide-ubuntu/nova-compute-install.html
>>
>> The issue im facing is when nova compute comes up and queries the placement
>> API it seems to get a status 300 error code
>> 2017-06-10 10:48:27.236 33 ERROR nova.scheduler.client.report
>> [req-18ea91e0-a210-42af-a560-5c7697a20604 - - - - -] Failed to create
>> resource provider record in placement API for UUID
>> d2067675-062b-4550-8631-d23a3b13343b. Got 300: {"choices": [{"status":
>> "SUPPORTED", "media-types": [{"base": "application/json", "type":
>> "application/vnd.openstack.compute+json;version=2"}], "id": "v2.0", "links":
>> [{"href": "http://15.0.0.42:8778/v2/resource_providers", "rel": "self"}]},
>> {"status": "CURRENT", "media-types": [{"base": "application/json", "type":
>> "application/vnd.openstack.compute+json;version=2.1"}], "id": "v2.1",
>> "links": [{"href": "http://15.0.0.42:8778/v2.1/resource_providers", "rel":
>> "self"}]}]}.
>>
>
>If I do this against an ocata placement api:
>
>$ OS_TOKEN=$(openstack token issue -f value -c id)
>$ curl -s -H "X-Auth-Token: $OS_TOKEN" http://<placement endpoint ip>:8778/
>{"versions": [{"min_version": "1.0", "max_version": "1.4", "id": "v1.0"}]}
>
>Is you loadbalancer for listening on 8778 but pointing to your nova
>api port maybe? (Just a random guess.)
>
>Thanks,
>Curtis.
>
>>
>>
>> The symptoms look like service catalog is messed up as even if I stop
>> placement API I get this error
>>
>> Now when I looked at the keystone service catalog it seems fine
>> | placement      | placement       | RegionOne
>> |
>> |                |                 |   publicURL: https://172.29.86.12:8778
>> |
>> |                |                 |   internalURL: http://15.0.0.42:8778
>> |
>> |                |                 |   adminURL: http://15.0.0.42:8778
>>
>>
>> | nova           | compute         | RegionOne
>> |
>> |                |                 |   publicURL:
>> https://172.29.86.12:8774/v2.1                               |
>> |                |                 |   internalURL:
>> http://15.0.0.42:8774/v2.1                                 |
>> |                |                 |   adminURL: http://15.0.0.42:8774/v2.1
>>
>>
>> Not sure what I am doing wrong here
>>
>> Also nova-status upgrade check returns an error
>> nova-status upgrade check
>> Option "verbose" from group "DEFAULT" is deprecated for removal.  Its value
>> may be silently ignored in the future.
>> {u'versions': [{u'status': u'SUPPORTED', u'updated':
>> u'2011-01-21T11:33:21Z', u'links': [{u'href': u'http://15.0.0.42:8778/v2/',
>> u'rel': u'self'}], u'min_version': u'', u'version': u'', u'id': u'v2.0'},
>> {u'status': u'CURRENT', u'updated': u'2013-07-23T11:33:21Z', u'links':
>> [{u'href': u'http://15.0.0.42:8778/v2.1/', u'rel': u'self'}],
>> u'min_version': u'2.1', u'version': u'2.42', u'id': u'v2.1'}]}
>> Error:
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.7/site-packages/nova/cmd/status.py", line 457, in
>> main
>>     ret = fn(*fn_args, **fn_kwargs)
>>   File "/usr/lib/python2.7/site-packages/nova/cmd/status.py", line 387, in
>> check
>>     result = func(self)
>>   File "/usr/lib/python2.7/site-packages/nova/cmd/status.py", line 202, in
>> _check_placement
>>     max_version = float(versions["versions"][0]["max_version"])
>> KeyError: 'max_version'
>>
>> This is with Ocata
>>
>> Ajay
>>
>>
>> _______________________________________________
>> OpenStack-operators mailing list
>> OpenStack-operators at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>>
>
>
>
>-- 
>Blog: serverascode.com


More information about the OpenStack-operators mailing list