You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use oc-mirror to pull in operators in an air-gapped environment. For this process, we use our default image puling pipeline (Tekton) to pull the oc-mirror image to in internal repo. This pipeline also tests the pulled image, for oc-mirror we use the oc-mirror version command. While running the test command, our pipeline runs into an error stating that the command can not be used on a Read-Only filesystem.
Image: openshift4/oc-mirror-plugin-rhel8 Attach the relevant portions of your .oc-mirror.log: N/A as read-only OS error occurred
What did you expect to happen?
I would not expect oc-mirror version to open files in the directory where the command is run. We currently got around this issue by changing the test command to "cd /tmp && oc-mirror version", but it would be cleaner if oc-mirror would be able to run form any folder without requiring permissions on the folder / files it is running from. We worked on a fix, which would report the file it is logging to, or report that logging is disabled.We will create a PR and link to this issue.
How to reproduce it (as minimally and precisely as possible)?
apiVersion: tekton.dev/v1beta1kind: Taskmetadata: name: test-image namespace: examplespec: description: >- Obviously there would be parameters here but I hard coded the example steps: - image: registry.redhat.io/openshift4/oc-mirror-plugin-rhel8:latest name: test-image resources: {} script: | oc-mirror version
You can of course also simply create a pod with the image "registry.redhat.io/openshift4/oc-mirror-plugin-rhel8:latest" and launch it within OpenShift, use RSH or go to the browser and use the Terminal in order to try oc-mirror (outside of /tmp).
Version
What happened?
We use oc-mirror to pull in operators in an air-gapped environment. For this process, we use our default image puling pipeline (Tekton) to pull the oc-mirror image to in internal repo. This pipeline also tests the pulled image, for oc-mirror we use the
oc-mirror version
command. While running the test command, our pipeline runs into an error stating that the command can not be used on a Read-Only filesystem.Image: openshift4/oc-mirror-plugin-rhel8
Attach the relevant portions of your
.oc-mirror.log
: N/A as read-only OS error occurredWhat did you expect to happen?
I would not expect
oc-mirror version
to open files in the directory where the command is run. We currently got around this issue by changing the test command to "cd /tmp && oc-mirror version", but it would be cleaner if oc-mirror would be able to run form any folder without requiring permissions on the folder / files it is running from. We worked on a fix, which would report the file it is logging to, or report that logging is disabled.We will create a PR and link to this issue.How to reproduce it (as minimally and precisely as possible)?
You can of course also simply create a pod with the image "registry.redhat.io/openshift4/oc-mirror-plugin-rhel8:latest" and launch it within OpenShift, use RSH or go to the browser and use the Terminal in order to try oc-mirror (outside of /tmp).
Anything else we need to know?
N/A
References
https://docs.openshift.com/container-platform/4.11/installing/disconnected_install/installing-mirroring-disconnected.html
PR created:
#660
The text was updated successfully, but these errors were encountered: