From bafcded29e5bbca79a460bf29527dc0eb28ebacb Mon Sep 17 00:00:00 2001 From: Neil Hanlon Date: Fri, 19 Apr 2024 12:35:21 -0400 Subject: [PATCH] fix(os:cloud-image-uploader): set workingDir on container The latest import failed due to "ERROR: Unable to create local directories(/.ansible/tmp): [Errno 13] Permission denied: b'/.ansible'". Which implies the code is being executed from `/`, despite the WORKDIR variable being set in the container image--I suspect this is a quirk of kube/openshift that was not expected. This change sets the workingDir to /srv/cloud-uploader, as specified in the Containerfile, which should resolve the execution error. Signed-off-by: Neil Hanlon --- .../openshift-apps/cloud-image-uploader/templates/deployment.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/openshift-apps/cloud-image-uploader/templates/deployment.yml b/roles/openshift-apps/cloud-image-uploader/templates/deployment.yml index 043c26bf11..589ee43445 100644 --- a/roles/openshift-apps/cloud-image-uploader/templates/deployment.yml +++ b/roles/openshift-apps/cloud-image-uploader/templates/deployment.yml @@ -33,6 +33,7 @@ spec: - name: cloud-image-uploader image: image-registry.openshift-image-registry.svc:5000/cloud-image-uploader/cloud-image-uploader:latest imagePullPolicy: Always + workingDir: /srv/cloud-uploader/ env: - name: AZURE_SECRET valueFrom: