buildset registry: run socat in new session
We spawn socat processes in the background in buildset registry related roles. Ansible 5 is much better at killing all processes in its session when the task is complete. Work around that by starting socat within a new session with setsid. Change-Id: Iaab17f5d4068be6b08e3d89d2abe80199f0cd654
This commit is contained in:
parent
f18bea4e09
commit
e69d879cae
@ -11,7 +11,7 @@
|
||||
- name: Start socat to work around https://github.com/moby/moby/issues/39033
|
||||
shell: |
|
||||
set -o pipefail
|
||||
socat -d -d TCP-LISTEN:0,fork TCP:{{ buildset_registry.host | ipwrap }}:{{ buildset_registry.port }} 2>&1 | grep --line-buffered 'listening on' > {{ zuul.executor.work_root }}/socat_port &
|
||||
setsid socat -d -d TCP-LISTEN:0,fork TCP:{{ buildset_registry.host | ipwrap }}:{{ buildset_registry.port }} 2>&1 | grep --line-buffered 'listening on' > {{ zuul.executor.work_root }}/socat_port &
|
||||
args:
|
||||
executable: /bin/bash
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
- name: Start socat to work around https://github.com/moby/moby/issues/39033
|
||||
shell: |
|
||||
set -o pipefail
|
||||
socat -d -d TCP-LISTEN:0,fork TCP:{{ buildset_registry.host | ipwrap }}:{{ buildset_registry.port }} 2>&1 | grep --line-buffered 'listening on' > {{ zuul.executor.work_root }}/socat_port &
|
||||
setsid socat -d -d TCP-LISTEN:0,fork TCP:{{ buildset_registry.host | ipwrap }}:{{ buildset_registry.port }} 2>&1 | grep --line-buffered 'listening on' > {{ zuul.executor.work_root }}/socat_port &
|
||||
args:
|
||||
executable: /bin/bash
|
||||
|
||||
|
@ -55,7 +55,7 @@
|
||||
# https://github.com/containers/libpod/issues/4311
|
||||
# in case we're using podman.
|
||||
- name: Start socat to work around https://github.com/containers/libpod/issues/4311
|
||||
shell: "socat -d -d TCP6-LISTEN:{{ buildset_registry_port }},fork TCP:127.0.0.1:1{{ buildset_registry_port }} 2> {{ buildset_registry_root }}/socat_port &"
|
||||
shell: "setsid socat -d -d TCP6-LISTEN:{{ buildset_registry_port }},fork TCP:127.0.0.1:1{{ buildset_registry_port }} 2> {{ buildset_registry_root }}/socat_port &"
|
||||
|
||||
- name: Set registry information fact
|
||||
set_fact:
|
||||
|
Loading…
Reference in New Issue
Block a user