diff options
| author | Michal Arbet <michal.arbet@ultimum.io> | 2021-06-27 14:56:46 +0200 |
|---|---|---|
| committer | Michal Arbet <michal.arbet@ultimum.io> | 2021-07-01 12:18:27 +0200 |
| commit | 01d02be25ed043b4541db3ebfc102d013cdc578a (patch) | |
| tree | e0fd18f08d414264a3aef96cf43e1efca3537223 | |
| parent | 8e020c5f86e033d9baba2c80c39f800bbd3cf2de (diff) | |
| download | kolla-01d02be25ed043b4541db3ebfc102d013cdc578a.tar.gz kolla-01d02be25ed043b4541db3ebfc102d013cdc578a.zip | |
Add missing default policy files for debian-binary-horizon
The debian-binary-horizon image is missing the default policies files
which should be in /etc/openstack-dashboard/default_policies. By copying
everything from /etc/openstack-dashboard/policy
into /etc/openstack-dashboard, we get the default policy files, as well
as commented out policy files (e.g. cinder_policy.yaml) and the
nova_policy.d directory containing api-extensions.yaml.
Change was merged for ubuntu in [1] but unfortunatelly
not for debian, this trivial patch fixes it also
for debian.
[1] https://review.opendev.org/c/openstack/kolla/+/794589
Closes-Bug: #1933759
Change-Id: I822d640a251e6ed9f71c76a922513e23e4218418
| -rw-r--r-- | docker/horizon/Dockerfile.j2 | 2 | ||||
| -rw-r--r-- | releasenotes/notes/bug-1933759-c03e50c243850a49.yaml | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/docker/horizon/Dockerfile.j2 b/docker/horizon/Dockerfile.j2 index ca3d726d1..f4c01ac03 100644 --- a/docker/horizon/Dockerfile.j2 +++ b/docker/horizon/Dockerfile.j2 @@ -83,7 +83,7 @@ RUN sed -i 's|\(ServerTokens \)OS|\1Prod|' /etc/apache2/conf-available/security. && cp -r /usr/share/openstack-dashboard/openstack_dashboard/conf/* /etc/openstack-dashboard \ && rm /etc/apache2/conf-enabled/openstack-dashboard.conf \ {% else %} - && cp /etc/openstack-dashboard/policy/*.json /etc/openstack-dashboard \ + && cp -r /etc/openstack-dashboard/policy/* /etc/openstack-dashboard \ {% endif %} && cp /usr/share/openstack-dashboard/manage.py /usr/bin/manage.py \ && rm /etc/openstack-dashboard/local_settings.py \ diff --git a/releasenotes/notes/bug-1933759-c03e50c243850a49.yaml b/releasenotes/notes/bug-1933759-c03e50c243850a49.yaml new file mode 100644 index 000000000..c4ed605d4 --- /dev/null +++ b/releasenotes/notes/bug-1933759-c03e50c243850a49.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fix missing default policy files for debian-binary-horizon. + `LP#1933759 <https://launchpad.net/bugs/1933759>`__ |
