404 not found error for new nova extenstion

asked 2014-04-28 15:48:14 -0500

waqasriaz gravatar image

updated 2014-04-28 15:49:02 -0500

I am learning to write nova extensions, and I added a sample extension in devstack from this post. I got "Not Found" error when I call this extension from cli. kindly help me to correct this.

waqas@hp:~/devstack$ nova cat-list
ERROR (NotFound): Not found (HTTP 404)

logs on nova-api screen

2014-04-29 01:17:46.489 DEBUG keystoneclient.middleware.auth_token [-] Authenticating user token from (pid=29743) __call__ /opt/stack/python-keystoneclient/keystoneclient/middleware/auth_token.py:587
2014-04-29 01:17:46.490 DEBUG keystoneclient.middleware.auth_token [-] Removing headers from request environment: X-Identity-Status,X-Domain-Id,X-Domain-Name,X-Project-Id,X-Project-Name,X-Project-Domain-Id,X-Project-Domain-Name,X-User-Id,X-User-Name,X-User-Domain-Id,X-User-Domain-Name,X-Roles,X-Service-Catalog,X-User,X-Tenant-Id,X-Tenant-Name,X-Tenant,X-Role from (pid=29743) _remove_auth_headers /opt/stack/python-keystoneclient/keystoneclient/middleware/auth_token.py:646
2014-04-29 01:17:46.504 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 192.168.1.100
2014-04-29 01:17:46.653 DEBUG requests.packages.urllib3.connectionpool [-] "POST /v2.0/tokens HTTP/1.1" 200 8401 from (pid=29743) _make_request /usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/connectionpool.py:344
2014-04-29 01:17:46.677 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 192.168.1.100
2014-04-29 01:17:46.721 DEBUG requests.packages.urllib3.connectionpool [-] "GET /v2.0/tokens/revoked HTTP/1.1" 200 1016 from (pid=29743) _make_request /usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/connectionpool.py:344
2014-04-29 01:17:46.745 DEBUG keystoneclient.middleware.auth_token [-] Storing 7f10481dfa9a61ded526dbfc64aa9179 token in memcache from (pid=29743) _cache_put /opt/stack/python-keystoneclient/keystoneclient/middleware/auth_token.py:1160
2014-04-29 01:17:46.746 DEBUG keystoneclient.middleware.auth_token [-] Received request from user: 0137ed2ac05649819d53d6b754ab9d23 with project_id : c83a036503ab4b46948bce1d4a1c1adb and roles: admin  from (pid=29743) _build_user_headers /opt/stack/python-keystoneclient/keystoneclient/middleware/auth_token.py:952
2014-04-29 01:17:46.748 DEBUG nova.utils [-] Reloading cached file /etc/nova/policy.json from (pid=29743) read_cached_file /opt/stack/nova/nova/utils.py:660
2014-04-29 01:17:47.033 DEBUG routes.middleware [-] No route matched for GET /c83a036503ab4b46948bce1d4a1c1adb/os-cats from (pid=29743) __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:97
2014-04-29 01:17:47.034 INFO nova.osapi_compute.wsgi.server [req-373d62d6-8be5-490e-b035-e74d60514163 admin admin] 192.168.1.100 "GET /v2/c83a036503ab4b46948bce1d4a1c1adb/os-cats HTTP/1.1" status: 404 len: 176 time: 0.5464232
edit retag flag offensive close merge delete