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

Eric Fried openstack at fried.cc
Fri Aug 11 23:30:36 UTC 2017


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': u'MEMORY_MB'},

If I try to GET that 'self' link, it fails (404).  I have to strip the
'/placement' prefix to make it work.

That doesn't seem right.  Can anyone comment?

(This is devstack, nova master with
https://review.openstack.org/#/c/492247/5 loaded up.)

Thanks,
efried
.



More information about the OpenStack-dev mailing list