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 <jorge.saffe@windriver.com>
Change-Id: Iefc4b53dcca70debe223493c64abd2f4a8b099bd
This commit is contained in:
Jorge Saffe 2022-05-09 05:30:27 -04:00
parent 453fe66e2b
commit a6a38cf50c
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,41 @@
From 511934904b9322e46c0a76b3a073616b4b28a698 Mon Sep 17 00:00:00 2001
From: lsampaio <luis.sampaio@windriver.com>
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

View File

@ -1 +1,2 @@
0001-install-extra-files.patch
0002-Horizon-service-not-enabled-active-in-SM.patch