Services require restart if a policy file is removed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
New
|
Undecided
|
Unassigned |
Bug Description
When all overridden policy statements are removed for a service, the OSA behaviour is to remove the empty YAML policy file from the host. As policy file changes do not require service restarts, this is not currently performed.
Having tested this on an OSA 24.0.0rc1 deployment using 'neutron-server' as an example, if a policy.yaml is removed after previously containing some policy lines, the API begins to produce 500 errors whenever policy is evaluated during an API request.
A workaround for this is to restart the service after making policy changes, but I haven't yet identified:
1) Is this expected behaviour, or something which ought to be better handled in oslo.policy
2) Has this already been fixed in a more recent release of oslo.policy or similar
I can totally recall bringing that up one day an IIRC the outcome of discussion with gmann was that oslo.policy needs to be fixed to handle that...
But I fail to recall where conversation was and if any bug report was made back then...