[Openstack] [Trove] Unable to list databases and other api calls in Ubuntu 14.04 packaged install
Mark Kirkwood
mark.kirkwood at catalyst.net.nz
Thu May 29 05:16:33 UTC 2014
On 23/05/14 14:54, Mark Kirkwood wrote:
>
> $ trove database-list 5d5f1a47-973d-4e11-8937-73b971a94688
> ERROR: The resource could not be found.
>
> This seems to be due to missing routes:
>
> 2014-05-23 14:34:08.386 1376 DEBUG routes.middleware [-] No route
> matched for GET
> /51f1e3dd3c1d4124ae26cdcd85030eb5/instances/5d5f1a47-973d-4e11-8937-73b971a94688/databases
> __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:97
> 2014-05-23 14:34:08.386 1376 DEBUG routes.middleware [-] No route
> matched for GET
> /51f1e3dd3c1d4124ae26cdcd85030eb5/instances/5d5f1a47-973d-4e11-8937-73b971a94688/databases
> __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:97
> 2014-05-23 14:34:08.389 1376 INFO eventlet.wsgi
> [req-6ff08fd3-90e6-4893-aaab-e645f6b82407
> 3a0eb39ed587491aba95b5ca15e167be 51f1e3dd3c1d4124ae26cdcd85030eb5 - - -]
> 192.168.122.33 - - [23/May/2014 14:34:08] "GET
> /v1.0/51f1e3dd3c1d4124ae26cdcd85030eb5/instances/5d5f1a47-973d-4e11-8937-73b971a94688/databases
> HTTP/1.1" 404 208 0.052359
>
> I have an equivalent-ish devstack system configured the same (but
> slightly later openstack version), and that works fine viz:
>
> $ trove database-list f164a72e-e627-427e-b962-f12b795499c0
>
> 2014-05-23 14:28:59.331 DEBUG routes.middleware [-] Matched GET
> /c081f35aa9d94dda8dc4f2686f855b37/instances/f164a72e-e627-427e-b962-f12b795499c0/databases
> from (pid=21402) __call__
> /usr/lib/python2.7/dist-packages/routes/middleware.py:100
> 2014-05-23 14:28:59.332 DEBUG routes.middleware [-] Route path:
> '/{tenant_id}/instances/:instance_id/databases', defaults: {'action':
> u'index', 'controller': <trove.common.wsgi.Resource object at
> 0x4515190>} from (pid=21402) __call__
> /usr/lib/python2.7/dist-packages/routes/middleware.py:102
> 2014-05-23 14:28:59.332 DEBUG routes.middleware [-] Match dict:
> {'instance_id': u'f164a72e-e627-427e-b962-f12b795499c0', 'tenant_id':
> u'c081f35aa9d94dda8dc4f2686f855b37', 'controller':
> <trove.common.wsgi.Resource object at 0x4515190>, 'action': u'index'}
> from (pid=21402) __call__
> /usr/lib/python2.7/dist-packages/routes/middleware.py:103
>
> I've attached the config files from the 14.04 trove install - any
> thoughts welcome!
>
Doing a bit of digging, amending routes/middleware.py (line 92 onwards)
with:
if self.log_debug:
urlinfo = "%s %s" % (environ['REQUEST_METHOD'],
environ['PATH_INFO'])
if 'databases' in urlinfo:
log.debug("Route table\n %s", self.mapper.__str__())
and comparing between the resulting devstack and packaged tables (see
attached) makes it plain that I'm missing the database routes. I'm going
to hunt around and try to see where these are being set (and why they
are not more to the point). If anyone happens to know this stuff well,
please chime in and save me :-)
regards
Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: devstack-routes.log
Type: text/x-log
Size: 28534 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140529/63a90a78/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: package-routes.log
Type: text/x-log
Size: 5096 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140529/63a90a78/attachment-0001.bin>
More information about the Openstack
mailing list