Remove problematic upstream mariadb commit
When removing the mariadb release from the cluster, this upstream commit produces mariadb-ingress pods that are stuck in the "Terminating" state with the associated containers becoming hung. This ultimately impacts certain docker operations leading to PLEG health issues in the cluster. The root cause of this is that the ingress pod uses dumb-init to start the nginx-ingress-controller process. When the mariadb-ingress pod terminates (via kill -TERM 1) all child processes are terminated but the docker-containerd-shim remains causing the hung container condition. Temporarily reverting this commit. A fix will be introduced upstream dealing with dumb-init and this commit will be pick up again on the next full chart rebase. Change-Id: I25ad9bc3213468a9060e741917d96d9ac5c01b40 Story: 2004520 Task: 29420 Signed-off-by: Robert Church <robert.church@windriver.com>
This commit is contained in:
parent
98fa120243
commit
314e07a8f8
@ -5,4 +5,4 @@ TAR="$TAR_NAME-$SHA.tar.gz"
|
|||||||
|
|
||||||
COPY_LIST="${CGCS_BASE}/downloads/$TAR $PKG_BASE/files/*"
|
COPY_LIST="${CGCS_BASE}/downloads/$TAR $PKG_BASE/files/*"
|
||||||
|
|
||||||
TIS_PATCH_VER=6
|
TIS_PATCH_VER=7
|
||||||
|
@ -17,8 +17,7 @@ BuildArch: noarch
|
|||||||
|
|
||||||
Patch01: 0001-gnocchi-chart-updates.patch
|
Patch01: 0001-gnocchi-chart-updates.patch
|
||||||
Patch02: Mariadb-Support-adoption-of-running-single-node-mari.patch
|
Patch02: Mariadb-Support-adoption-of-running-single-node-mari.patch
|
||||||
Patch03: Mariadb-Share-container-PID-namespaces-under-docker.patch
|
Patch03: 0004-Allow-multiple-containers-per-daemonset-pod.patch
|
||||||
Patch04: 0004-Allow-multiple-containers-per-daemonset-pod.patch
|
|
||||||
|
|
||||||
BuildRequires: helm
|
BuildRequires: helm
|
||||||
|
|
||||||
@ -30,7 +29,6 @@ Openstack Helm Infra charts
|
|||||||
%patch01 -p1
|
%patch01 -p1
|
||||||
%patch02 -p1
|
%patch02 -p1
|
||||||
%patch03 -p1
|
%patch03 -p1
|
||||||
%patch04 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# initialize helm and build the toolkit
|
# initialize helm and build the toolkit
|
||||||
|
@ -1,82 +0,0 @@
|
|||||||
From 977c523cef00f7919a82d268da7e55223f1864ce Mon Sep 17 00:00:00 2001
|
|
||||||
From: Pete Birley <pete@port.direct>
|
|
||||||
Date: Sat, 8 Dec 2018 16:16:11 -0600
|
|
||||||
Subject: [PATCH] Mariadb: Share container PID namespaces under docker
|
|
||||||
|
|
||||||
This PS shares pid namespaces for containers in pods under docker,
|
|
||||||
bringing running in this runtime inline with other runc based container
|
|
||||||
backends, allowing the pause process in the pod to act as a reaper.
|
|
||||||
|
|
||||||
Change-Id: Ib5fc101d930446d848246eb5ca4d554b756cb91f
|
|
||||||
Signed-off-by: Pete Birley <pete@port.direct>
|
|
||||||
---
|
|
||||||
mariadb/templates/deployment-error.yaml | 1 +
|
|
||||||
mariadb/templates/deployment-ingress.yaml | 1 +
|
|
||||||
mariadb/templates/monitoring/prometheus/exporter-deployment.yaml | 1 +
|
|
||||||
mariadb/templates/monitoring/prometheus/exporter-job-create-user.yaml | 1 +
|
|
||||||
mariadb/templates/statefulset.yaml | 1 +
|
|
||||||
5 files changed, 5 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/mariadb/templates/deployment-error.yaml b/mariadb/templates/deployment-error.yaml
|
|
||||||
index c310324..78c4b18 100644
|
|
||||||
--- a/mariadb/templates/deployment-error.yaml
|
|
||||||
+++ b/mariadb/templates/deployment-error.yaml
|
|
||||||
@@ -42,6 +42,7 @@ spec:
|
|
||||||
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
|
|
||||||
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
|
|
||||||
spec:
|
|
||||||
+ shareProcessNamespace: true
|
|
||||||
serviceAccountName: {{ $serviceAccountName }}
|
|
||||||
affinity:
|
|
||||||
{{ tuple $envAll "mariadb" "ingress-error-pages" | include "helm-toolkit.snippets.kubernetes_pod_anti_affinity" | indent 8 }}
|
|
||||||
diff --git a/mariadb/templates/deployment-ingress.yaml b/mariadb/templates/deployment-ingress.yaml
|
|
||||||
index 053a08f..afe9407 100644
|
|
||||||
--- a/mariadb/templates/deployment-ingress.yaml
|
|
||||||
+++ b/mariadb/templates/deployment-ingress.yaml
|
|
||||||
@@ -137,6 +137,7 @@ spec:
|
|
||||||
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
|
|
||||||
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
|
|
||||||
spec:
|
|
||||||
+ shareProcessNamespace: true
|
|
||||||
serviceAccountName: {{ $serviceAccountName }}
|
|
||||||
affinity:
|
|
||||||
{{ tuple $envAll "mariadb" "ingress" | include "helm-toolkit.snippets.kubernetes_pod_anti_affinity" | indent 8 }}
|
|
||||||
diff --git a/mariadb/templates/monitoring/prometheus/exporter-deployment.yaml b/mariadb/templates/monitoring/prometheus/exporter-deployment.yaml
|
|
||||||
index 274a06c..00b3f6e 100644
|
|
||||||
--- a/mariadb/templates/monitoring/prometheus/exporter-deployment.yaml
|
|
||||||
+++ b/mariadb/templates/monitoring/prometheus/exporter-deployment.yaml
|
|
||||||
@@ -38,6 +38,7 @@ spec:
|
|
||||||
{{ tuple $envAll "prometheus_mysql_exporter" "exporter" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
||||||
namespace: {{ .Values.endpoints.prometheus_mysql_exporter.namespace }}
|
|
||||||
spec:
|
|
||||||
+ shareProcessNamespace: true
|
|
||||||
serviceAccountName: {{ $serviceAccountName }}
|
|
||||||
nodeSelector:
|
|
||||||
{{ .Values.labels.prometheus_mysql_exporter.node_selector_key }}: {{ .Values.labels.prometheus_mysql_exporter.node_selector_value }}
|
|
||||||
diff --git a/mariadb/templates/monitoring/prometheus/exporter-job-create-user.yaml b/mariadb/templates/monitoring/prometheus/exporter-job-create-user.yaml
|
|
||||||
index df7a147..b9f7b56 100644
|
|
||||||
--- a/mariadb/templates/monitoring/prometheus/exporter-job-create-user.yaml
|
|
||||||
+++ b/mariadb/templates/monitoring/prometheus/exporter-job-create-user.yaml
|
|
||||||
@@ -30,6 +30,7 @@ spec:
|
|
||||||
labels:
|
|
||||||
{{ tuple $envAll "prometheus_mysql_exporter" "create-sql-user" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
||||||
spec:
|
|
||||||
+ shareProcessNamespace: true
|
|
||||||
serviceAccountName: {{ $serviceAccountName }}
|
|
||||||
restartPolicy: OnFailure
|
|
||||||
nodeSelector:
|
|
||||||
diff --git a/mariadb/templates/statefulset.yaml b/mariadb/templates/statefulset.yaml
|
|
||||||
index de0fac2..c6aa451 100644
|
|
||||||
--- a/mariadb/templates/statefulset.yaml
|
|
||||||
+++ b/mariadb/templates/statefulset.yaml
|
|
||||||
@@ -91,6 +91,7 @@ spec:
|
|
||||||
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
|
|
||||||
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
|
|
||||||
spec:
|
|
||||||
+ shareProcessNamespace: true
|
|
||||||
serviceAccountName: {{ $serviceAccountName }}
|
|
||||||
affinity:
|
|
||||||
{{ tuple $envAll "mariadb" "server" | include "helm-toolkit.snippets.kubernetes_pod_anti_affinity" | indent 8 }}
|
|
||||||
--
|
|
||||||
1.8.3.1
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user