Policy Overrides Do Not Update Automatically
This bug report was marked for expiration 350 days ago. (find out why)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard Charm |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
== ENVIRONMENT ==
OS: Ubuntu Focal and Jammy
Openstack: Ussuri and Yoga
Charm revision: 585 and 597
== ISSUE ==
The first time adding a policy override file and enabling policy overrides, they get applied as expected. But if you upload another policy override zip file, you need to make a charm configuration change, like disabling and re-enabling policy overrides, in order for the new policies to be loaded.
== EXPECTED OUTCOME ==
New policy overrides are applied at the time when the override file is attached to the charm.
== STEPS TO REPRODUCE ==
On a fresh deployment:
1. mkdir compute && echo '"os_compute_
2. zip -r nova-override.zip compute
3. juju attach-resource keystone policyd-
4. juju config openstack-dashboard use-policyd-
# Policies applied as expected, then adding another policy:
5. mkdir identity && echo '"admin_required": "role:Admin or role:cloudadmin"' > identity/
6. zip -r keystone-
7. juju attach-resource keystone policyd-
# Charm goes into maintenance mode and regenerates endpoint configs, but the change does not take effect.
8. juju config openstack-dashboard use-policyd-
9. juju config openstack-dashboard use-policyd-
# Now the newly added policy gets applied.
== OTHER NOTES ==
After step 7, there is no directory for /etc/openstack-
I'm a little confused about the report, specifically:
> 2. zip -r nova-override.zip compute override= nova-override. zip override= true
> 3. juju attach-resource keystone policyd-
> 4. juju config openstack-dashboard use-policyd-
This looks like the policy override is being applied to the keystone application, but the config option to activate it is on the openstack- dashboard? Unless this is a typo, then that's not going to do anything to either charm.
Also.
> 7. juju attach-resource keystone policyd- override= keystone- override. zip
Is this a typo? It's just the policy override is being applied to keystone here, so the openstack-dashboard charm wouldn't be involved?
Please could you clarify?
Thanks.