With policy-in-code, policy files should be minimal (changes only) and in YAML
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Cinder Charm |
Triaged
|
Medium
|
Unassigned | ||
OpenStack Dashboard Charm |
Triaged
|
Medium
|
Unassigned | ||
OpenStack Keystone Charm |
In Progress
|
Medium
|
Unassigned | ||
OpenStack Mistral Charm |
Triaged
|
Medium
|
Unassigned |
Bug Description
Since the queens release, policy-in-code has been spreading through the OpenStack API services.
What this means is that the default policies that the service uses are 'encoded' in a Python file, and don't need to be declared in a YAML policy file.
The preferred format for policy files is now YAML, and not JSON (which is currently used in the charms).
So the steps for each linked service that has a policy.json file as a template is to:
1. Check that the service does 'policy-in-code'
2. Generate a default policy.yaml file (for comparison purposes - oslo.config provides a command to do this).
3. Convert the charm's template policy json into yaml
4. remove all of the options that are default.
Changed in charm-mistral: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in charm-cinder: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in charm-keystone: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in charm-openstack-dashboard: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Fix proposed to branch: master /review. opendev. org/c/openstack /charm- keystone/ +/848145
Review: https:/