Browse Source

Support policy-in-code and deprecated policy

This change adds support for policy-in-code and deprecated policy
following the change in horizon.

Depends-on: https://review.opendev.org/750134
Change-Id: I408af56e6a54b135d38a486101b4bb3108d4f0d5
(cherry picked from commit 89a90ff977)
changes/10/785210/1 5.0.0
Takashi Kajinami 3 weeks ago
parent
commit
1f48e83eae
5 changed files with 4280 additions and 1 deletions
  1. +2
    -0
      devstack/plugin.sh
  2. +2360
    -0
      manila_ui/conf/default_policies/manila.yaml
  3. +1906
    -0
      manila_ui/conf/manila_policy.yaml
  4. +5
    -1
      manila_ui/local/local_settings.d/_90_manila_shares.py
  5. +7
    -0
      releasenotes/notes/policy-in-code-support-23744e26a7f6e284.yaml

+ 2
- 0
devstack/plugin.sh View File

@ -28,6 +28,8 @@ if is_service_enabled horizon && is_service_enabled manila && is_service_enabled
echo_summary "Configuring Manila UI"
cp -a ${MANILA_UI_DIR}/manila_ui/local/enabled/* ${DEST}/horizon/openstack_dashboard/local/enabled/
cp -a ${MANILA_UI_DIR}/manila_ui/local/local_settings.d/* ${DEST}/horizon/openstack_dashboard/local/local_settings.d/
cp -a ${MANILA_UI_DIR}/manila_ui/conf/manila_policy.yaml ${DEST}/horizon/openstack_dashboard/conf/
cp -a ${MANILA_UI_DIR}/manila_ui/conf/default_policies/manila.yaml ${DEST}/horizon/openstack_dashboard/conf/default_policies/
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
# no-op
:


+ 2360
- 0
manila_ui/conf/default_policies/manila.yaml
File diff suppressed because it is too large
View File


+ 1906
- 0
manila_ui/conf/manila_policy.yaml
File diff suppressed because it is too large
View File


+ 5
- 1
manila_ui/local/local_settings.d/_90_manila_shares.py View File

@ -15,7 +15,11 @@ from django.conf import settings
settings.POLICY_FILES.update({
'share': 'manila_policy.json',
'share': 'manila_policy.yaml',
})
settings.DEFAULT_POLICY_FILES.update({
'share': 'default_policies/manila.yaml'
})
# Sample


+ 7
- 0
releasenotes/notes/policy-in-code-support-23744e26a7f6e284.yaml View File

@ -0,0 +1,7 @@
---
upgrade:
- |
The default configuration file has been updated and now includes
the required parameters to use the new policy-in-code feature in Horizon.
Please refer to the release note and documentation of Horizon to find
details about this feature.

Loading…
Cancel
Save