From a6a38cf50c25cbe822a1362182b19dd715caef6a Mon Sep 17 00:00:00 2001 From: Jorge Saffe Date: Mon, 9 May 2022 05:30:27 -0400 Subject: [PATCH] Horizon service not enabled-active in SM. This commit resolve an error starting the horizon SM service on Debian based StarlingX AIO-SX distro: after applying the current known workarounds before bootstrap and after bootstrap, the unlock is now passing but after the unlock the horizon SM service is failing to go enabled-active. The changes cover: * Openstack-Dashboard / Horizon: - Files have been copied and/or relocated. - Symbolic links have been created. Test Plan: * Debian distro: - Fresh Install with AIO-SX. - Install including ansible bootstrap and controller-0 unlock - Horizon launches and the main GUI pages are working Story: 2009965 Task: 45312 Signed-off-by: Jorge Saffe Change-Id: Iefc4b53dcca70debe223493c64abd2f4a8b099bd --- ...zon-service-not-enabled-active-in-SM.patch | 41 +++++++++++++++++++ .../python-horizon/debian/deb_patches/series | 1 + 2 files changed, 42 insertions(+) create mode 100644 openstack/python-horizon/debian/deb_patches/0002-Horizon-service-not-enabled-active-in-SM.patch diff --git a/openstack/python-horizon/debian/deb_patches/0002-Horizon-service-not-enabled-active-in-SM.patch b/openstack/python-horizon/debian/deb_patches/0002-Horizon-service-not-enabled-active-in-SM.patch new file mode 100644 index 00000000..833a5766 --- /dev/null +++ b/openstack/python-horizon/debian/deb_patches/0002-Horizon-service-not-enabled-active-in-SM.patch @@ -0,0 +1,41 @@ +From 511934904b9322e46c0a76b3a073616b4b28a698 Mon Sep 17 00:00:00 2001 +From: lsampaio +Date: Thu, 12 May 2022 12:04:47 -0300 +Subject: [PATCH 2/2] Horizon service not enabled-active in SM + +--- + debian/openstack-dashboard.install | 2 +- + debian/openstack-dashboard.postinst | 4 ++++ + 2 files changed, 5 insertions(+), 1 deletion(-) + +diff --git a/debian/openstack-dashboard.install b/debian/openstack-dashboard.install +index 12f33b9eb..fe18ed9c8 100644 +--- a/debian/openstack-dashboard.install ++++ b/debian/openstack-dashboard.install +@@ -2,7 +2,7 @@ debian/local_settings.d/* usr/share/openstack-dashboard-debian-settings.d + etc/openstack-dashboard + etc/httpd/conf.d/openstack-dashboard.conf + etc/logrotate.d/openstack-dashboard +-etc/rc.d/init.d/horizon ++etc/rc.d/init.d/horizon etc/init.d/ + usr/share/openstack-dashboard + usr/share/openstack-dashboard/guni_config.py + usr/bin/horizon-clearsessions +diff --git a/debian/openstack-dashboard.postinst b/debian/openstack-dashboard.postinst +index d24971322..6b76f2f5d 100644 +--- a/debian/openstack-dashboard.postinst ++++ b/debian/openstack-dashboard.postinst +@@ -111,6 +111,10 @@ if [ "$1" = "configure" ] ; then + ln -sf /etc/openstack-dashboard/policy /usr/lib/python3/dist-packages/openstack_dashboard/conf + fi + ++ if [ ! -L /usr/lib/python3/dist-packages/openstack_dashboard/wsgi.py ]; then ++ ln -sf /usr/share/openstack-dashboard/wsgi.py /usr/lib/python3/dist-packages/openstack_dashboard/wsgi.py ++ fi ++ + # Some dashboard plugins are not deleting their files under + # /usr/share/openstack-dashboard/openstack_dashboard/{local,enabled} + # +-- +2.35.1 + diff --git a/openstack/python-horizon/debian/deb_patches/series b/openstack/python-horizon/debian/deb_patches/series index 271abd00..2fa70d13 100644 --- a/openstack/python-horizon/debian/deb_patches/series +++ b/openstack/python-horizon/debian/deb_patches/series @@ -1 +1,2 @@ 0001-install-extra-files.patch +0002-Horizon-service-not-enabled-active-in-SM.patch