Skip to content

Commit 102c04d

Browse files
committed
Do not stop container on healthcheck failure
1 parent 613398c commit 102c04d

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

mgradm/shared/templates/serviceTemplate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ ExecStart=/bin/sh -c '/usr/bin/podman run \
6767
--secret {{ .AdminUserSecret }},type=env,target=ADMIN_USER \
6868
--secret {{ .AdminPassSecret }},type=env,target=ADMIN_PASS \
6969
{{- end }}
70-
--health-on-failure=stop \
70+
--health-on-failure=none \
7171
${PODMAN_EXTRA_ARGS} ${UYUNI_IMAGE}'
7272
7373
ExecStop=-/usr/bin/podman exec \

mgradm/shared/templates/templates_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ ExecStart=/bin/sh -c '/usr/bin/podman run \
139139
--secret uyuni-scc-pass,type=env,target=SCC_PASS \
140140
--secret uyuni-admin-user,type=env,target=ADMIN_USER \
141141
--secret uyuni-admin-pass,type=env,target=ADMIN_PASS \
142-
--health-on-failure=stop \
142+
--health-on-failure=none \
143143
${PODMAN_EXTRA_ARGS} ${UYUNI_IMAGE}'
144144
145145
ExecStop=-/usr/bin/podman exec \
@@ -216,7 +216,7 @@ ExecStart=/bin/sh -c '/usr/bin/podman run \
216216
--secret cert-secret,type=mount,target=/etc/pki/tls.crt \
217217
--secret key-secret,type=mount,target=/etc/pki/tls.key \
218218
--secret db-ca-secret,type=mount,target=/etc/pki/db-ca.crt \
219-
--health-on-failure=stop \
219+
--health-on-failure=none \
220220
${PODMAN_EXTRA_ARGS} ${UYUNI_IMAGE}'
221221
222222
ExecStop=-/usr/bin/podman exec \
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Do not stop container on health check failure
2+
Temporary workaround for bsc#1263157

0 commit comments

Comments
 (0)