Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Unable to set permission about nova hypervisor-stats


I'm getting useless informations from my openstack for monitoring it. I think the running instances number is relevant so I want my user be able to get this number with CLI. But the commands returns me this:

$ nova hypervisor-stats
ERROR (Forbidden): Policy doesn't allow compute_extension:hypervisors to be performed. (HTTP 403)

So i tried to modify policy.json like this:

"compute_extension:hypervisors": "rule:admin_api or role:supervision",

But it's not working, my user still get the error despite his supervision role.

My question is, is it possible to change this permission? I already did many modifications in policy.json and everything works fine?

Anyway, I think it's better to write a script which directly requests in the database instead of getting informations than I don't need.

Best regards,