Skip to content

Commit 65365da

Browse files
Merge pull request #2680 from wking/re-background-create-cluster
ci-operator/templates/openshift/installer: Restore backgrounded 'create cluster'
2 parents a16e55f + 4472ace commit 65365da

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ objects:
299299
- |
300300
#!/bin/sh
301301
trap 'rc=$?; if test "${rc}" -eq 0; then touch /tmp/setup-success; else touch /tmp/exit; fi; exit "${rc}"' EXIT
302-
trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN}; fi' TERM
302+
trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM
303303
304304
mkdir /tmp/artifacts/installer &&
305305
/bin/openshift-install version >/tmp/artifacts/installer/version
@@ -373,7 +373,8 @@ objects:
373373
exit 1
374374
fi
375375
376-
/bin/openshift-install --dir=/tmp/artifacts/installer create cluster
376+
/bin/openshift-install --dir=/tmp/artifacts/installer create cluster &
377+
wait "$!"
377378
378379
# Performs cleanup of all created resources
379380
- name: teardown

ci-operator/templates/openshift/installer/cluster-launch-installer-libvirt-e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ objects:
173173
#!/bin/sh
174174
set -euo pipefail
175175
trap 'rc=$?; if test "${rc}" -eq 0; then touch "${HOME}"/setup-success; else touch "${HOME}"/exit; fi; exit "${rc}"' EXIT
176-
trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN}; fi' TERM
176+
trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM
177177
cat > "${HOME}"/router-check.sh << 'EOF'
178178
#!/bin/bash
179179
set -euo pipefail

ci-operator/templates/openshift/installer/cluster-launch-installer-src.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ objects:
264264
- |
265265
#!/bin/sh
266266
trap 'rc=$?; if test "${rc}" -eq 0; then touch /tmp/setup-success; else touch /tmp/exit; fi; exit "${rc}"' EXIT
267-
trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN}; fi' TERM
267+
trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM
268268
269269
mkdir /tmp/artifacts/installer &&
270270
/bin/openshift-install version >/tmp/artifacts/installer/version
@@ -338,7 +338,8 @@ objects:
338338
exit 1
339339
fi
340340
341-
/bin/openshift-install --dir=/tmp/artifacts/installer create cluster
341+
/bin/openshift-install --dir=/tmp/artifacts/installer create cluster &
342+
wait "$!"
342343
343344
# Performs cleanup of all created resources
344345
- name: teardown

ci-operator/templates/openshift/openshift-ansible/cluster-launch-e2e-40.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ objects:
262262
- |
263263
#!/bin/sh
264264
trap 'rc=$?; if test "${rc}" -eq 0; then touch /tmp/config-success; else touch /tmp/exit; fi; exit "${rc}"' EXIT
265-
trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN}; fi' TERM
265+
trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM
266266
267267
mkdir /tmp/artifacts/installer &&
268268
/bin/openshift-install version >/tmp/artifacts/installer/version

ci-operator/templates/openshift/openshift-ansible/cluster-scaleup-e2e-40.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ objects:
303303
- |
304304
#!/bin/sh
305305
trap 'rc=$?; if test "${rc}" -eq 0; then touch /tmp/setup-success; else touch /tmp/exit; fi; exit "${rc}"' EXIT
306-
trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN}; fi' TERM
306+
trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM
307307
308308
mkdir /tmp/artifacts/installer &&
309309
/bin/openshift-install version >/tmp/artifacts/installer/version

0 commit comments

Comments
 (0)