Problem with API Plugins

asked 2017-07-09 21:30:08 -0500

victork gravatar image

Hi there, I am trying add new API (v2.1 API plugin/extension) to nova. I'm following this example https://docs.openstack.org/nova/latest/api_plugins.html (https://docs.openstack.org/nova/lates...). However I've trouble discovering new API and calling it.

When I call http://host:8774/v2.1/extensions I can not see my new API in a response. When I call http://host:8774/v2.1/test-basic I get response "404 Not Found The resource could not be found."

What I've tried: Creating policy.json (I didn't have it initially) in this format https://docs.openstack.org/mitaka/config-reference/compute/policy.json.html (https://docs.openstack.org/mitaka/con...). Generating policy.yaml by "tox -egenpolicy". Copying/renaming existing extension e.g. os-fping. Even tried get some ideas from old and keystone related articles: https://stephanfr.com/2013/04/07/creating-an-openstack-keystone-helloworld-extension/ (https://stephanfr.com/2013/04/07/crea...) https://wiki.openstack.org/wiki/WritingRequestExtensions#Writing_Request_Extensions (https://wiki.openstack.org/wiki/Writi...)

What am I missing? Any directions how I can make my API plugin working?

edit retag flag offensive close merge delete