Re: [openstack-dev] [nova][placement] self links include /placement?

2017-08-14 Thread Eric Fried
Thanks for the answer, cdent, and the discussion on IRC [1]. In summary: - Those links are the full `path` component of the resource, to which one would prepend the protocol://server:port to get its fully-qualified location. The '/placement' prefix is determined and included by the web server,

Re: [openstack-dev] [nova][placement] self links include /placement?

2017-08-12 Thread Chris Dent
On Fri, 11 Aug 2017, Eric Fried wrote: I finally got around to fiddling with the placement API today, and noticed something... disturbing. To me, anyway. When I GET a URI, such as '/resource_classes', the response includes e.g. I assume you're using ksa/requests somewhere in your stack and

[openstack-dev] [nova][placement] self links include /placement?

2017-08-11 Thread Eric Fried
I finally got around to fiddling with the placement API today, and noticed something... disturbing. To me, anyway. When I GET a URI, such as '/resource_classes', the response includes e.g. {u'links': [{u'href': u'/placement/resource_classes/MEMORY_MB', u'rel': u'self'}], u'name':