Nova API not restarted when nova policy is updated
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Triaged
|
Undecided
|
Dmitriy Rabotyagov |
Bug Description
I was modifying the nova policy option in order to allow custom role to execute certain actions but it didn't work as planned. After having added my new configuration in the variable "nova_policy_
To reproduce (on an existing OpenStack installation) :
1) Modify the content of the variable nova_policy_
2) Execute playbook os-nova-install.yml
3) Test the API for which you have updated the rule in step 1) --> Should not work and report that the policy doesn't now allow
4) Restart the service nova-api manually
5) Execute the same test as in step 3) --> Should work this time
Possible fix:
- Restart the nova-api service if a change in the nova policy.json is detected
description: | updated |
Changed in openstack-ansible: | |
assignee: | nobody → Dmitriy Rabotyagov (noonedeadpunk) |
Eventually API service restart is not required to apply policy. OSLO loads policies resilently, without need to restart service itself. Might be smth weird with nova specificly though...