From af91d7aebf411fde0db1cc4df5e78cb7a09e45aa Mon Sep 17 00:00:00 2001 From: Chris Friesen Date: Thu, 8 Nov 2018 16:57:36 -0600 Subject: [PATCH] Add mariadb override to work around unclean shutdown Currently on a lock/unlock the mariadb pod does not do a clean shutdown. Because of this, on startup it doesn't want to do an automatic recovery. To work around this, add an override that tells the chart to always recover on the one mariadb pod that we have. Once we move to a galera cluster, we'll need to change this. Story: 2003909 Task: 27086 Signed-off-by: Chris Friesen Change-Id: I78f5dff402ad90751901f510a2ace973b7783d7f --- sysinv/sysinv/sysinv/sysinv/helm/mariadb.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sysinv/sysinv/sysinv/sysinv/helm/mariadb.py b/sysinv/sysinv/sysinv/sysinv/helm/mariadb.py index 08584fe245..e5b3353da1 100644 --- a/sysinv/sysinv/sysinv/sysinv/helm/mariadb.py +++ b/sysinv/sysinv/sysinv/sysinv/helm/mariadb.py @@ -25,6 +25,9 @@ class MariadbHelm(openstack.OpenstackBaseHelm): return self.SUPPORTED_NAMESPACES def get_overrides(self, namespace=None): + # NOTE: there is an intentional typo in "force_recovey" to match + # a typo in the upstream helm chart. This will eventually go away + # when we upgrade to the latest chart. overrides = { common.HELM_NS_OPENSTACK: { 'pod': { @@ -33,6 +36,7 @@ class MariadbHelm(openstack.OpenstackBaseHelm): } }, 'endpoints': self._get_endpoints_overrides(), + 'force_recovey': 'mariadb-server-0', } }