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
changes/98/783598/2
Takashi Kajinami 4 months ago
parent
commit
89a90ff977
  1. 2
      devstack/plugin.sh
  2. 2360
      manila_ui/conf/default_policies/manila.yaml
  3. 1906
      manila_ui/conf/manila_policy.yaml
  4. 6
      manila_ui/local/local_settings.d/_90_manila_shares.py
  5. 7
      releasenotes/notes/policy-in-code-support-23744e26a7f6e284.yaml

2
devstack/plugin.sh

@ -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
manila_ui/conf/default_policies/manila.yaml
File diff suppressed because it is too large
View File

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

6
manila_ui/local/local_settings.d/_90_manila_shares.py

@ -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
releasenotes/notes/policy-in-code-support-23744e26a7f6e284.yaml

@ -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