From f68dfb88fdbad51322727575457b3d78a70466b1 Mon Sep 17 00:00:00 2001 From: Scott Shambarger Date: Mon, 24 May 2021 10:51:23 -0700 Subject: [PATCH] horizon: Correct location of monitoring_policy file Patch to correctly copy monitoring_policy.json into /etc/openstack-dashboard. Policy was misplaced, and not being enforced. Note that by current default policy, admin doesn't not have Monitoring access. Closes-Bug: #1928408 Change-Id: I4faabdfa9c273fc61b536e6ce88b8d71ab2fc581 --- docker/horizon/extend_start.sh | 2 +- releasenotes/notes/bug-1928408-4a22a85570eee8d6.yaml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/bug-1928408-4a22a85570eee8d6.yaml diff --git a/docker/horizon/extend_start.sh b/docker/horizon/extend_start.sh index 123e389f76..bc0ea19e41 100644 --- a/docker/horizon/extend_start.sh +++ b/docker/horizon/extend_start.sh @@ -152,7 +152,7 @@ function config_monasca_ui { "${SITE_PACKAGES}/openstack_dashboard/local/enabled/_50_admin_add_monitoring_panel.py" config_dashboard "${ENABLE_MONASCA:-no}" \ "${SITE_PACKAGES}/monitoring/conf/monitoring_policy.json" \ - "${SITE_PACKAGES}/openstack_dashboard/conf/monitoring_policy.json" + "/etc/openstack-dashboard/monitoring_policy.json" } function config_murano_dashboard { diff --git a/releasenotes/notes/bug-1928408-4a22a85570eee8d6.yaml b/releasenotes/notes/bug-1928408-4a22a85570eee8d6.yaml new file mode 100644 index 0000000000..4b24aa6682 --- /dev/null +++ b/releasenotes/notes/bug-1928408-4a22a85570eee8d6.yaml @@ -0,0 +1,7 @@ +--- +fixes: + - | + Fixes location of monitoring_policy in Horizon, so access + policy is correctly enforced. Note that by current default, + admin doesn't not have Monitoring access. + `LP#1928408 `__