From 2d96a1e0a0da31e2c529ac40ab6e6b63b8d5b816 Mon Sep 17 00:00:00 2001 From: Praveen Kumar Date: Wed, 3 Jul 2024 14:45:04 +0530 Subject: [PATCH] Microshift: Use listenAddress value as null for microshift config Because of https://issues.redhat.com//browse/OCPBUGS-35468 bug microshift is failed to start and as workaround the value of `listenAddress` should be `null`. It will fix following error ``` Jul 03 04:30:53 api.crc.testing microshift[1933]: ??? I0703 04:30:53.417607 1933 run.go:64] "Version" microshift="4.16.0" base="4.16.0" Jul 03 04:30:53 api.crc.testing microshift[1933]: ??? E0703 04:30:53.421007 1933 run.go:74] "command failed" err="invalid configuration: error validating ingress.listenAddress: interface not present in the host ``` --- createdisk.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/createdisk.sh b/createdisk.sh index 7606baa9..85987635 100755 --- a/createdisk.sh +++ b/createdisk.sh @@ -74,6 +74,7 @@ EOF ${SSH} core@${VM_IP} -- sudo systemctl disable firewalld ${SSH} core@${VM_IP} -- cat /etc/microshift/config.yaml.default > config.yaml ${YQ} eval --inplace ".dns.baseDomain = \"${SNC_PRODUCT_NAME}.${BASE_DOMAIN}\"" config.yaml + ${YQ} eval --inplace ".ingress.listenAddress = null" config.yaml ${SCP} config.yaml core@${VM_IP}:/home/core ${SSH} core@${VM_IP} -- 'sudo mv /home/core/config.yaml /etc/microshift/config.yaml' # Make sure `baseDomain` is set to crc.testing