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
This commit is contained in:
Takashi Kajinami 2021-03-29 13:30:07 +09:00
parent 7cb7f1c234
commit 89a90ff977
5 changed files with 4280 additions and 1 deletions

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
:

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

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

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.