From 4e2f772f0d53b1daebbfb7a38572cfbce5a8d4ac Mon Sep 17 00:00:00 2001 From: Matt McEuen Date: Fri, 11 Jun 2021 17:26:36 -0500 Subject: [PATCH] airship-in-a-pod: set libvirt tty=false This sets the airship-in-a-pod libvirt container to have `tty: false`. With `tty: true`, the libvirt container would fail with the following error in some environments (mostly baremetal, but VMs as well): Error: failed to create containerd task: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: setctty: operation not permitted: unknown The RC for the error is unknown, but `tty: true` appears to be a leftover debugging tool, so this change disables it by default. Change-Id: I427bd1bdbe86c8a742b871c4f8fc18e4be58660b Closes: #578 --- tools/airship-in-a-pod/airship-in-a-pod.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/airship-in-a-pod/airship-in-a-pod.yaml b/tools/airship-in-a-pod/airship-in-a-pod.yaml index 817cbb3eb..54a40b041 100644 --- a/tools/airship-in-a-pod/airship-in-a-pod.yaml +++ b/tools/airship-in-a-pod/airship-in-a-pod.yaml @@ -21,7 +21,8 @@ spec: - name: libvirt image: ianhowell/libvirt:latest - tty: true + # Set to true for debugging + tty: false securityContext: privileged: true #SYS_ADMIN required for systemd, need to work out reqs for libvirt