-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
operator-sdk run bundle
stopped working after changing user in Dockerfile
#984
Comments
This blocks our CI that relies on |
As a workaround, can you try specifying |
Thank you! pinning the index-image does fix it! |
Workaround for operator-framework/operator-registry#984 Fixes #429 Signed-off-by: Christian Zunker <christian@mondoo.com>
Workaround for operator-framework/operator-registry#984 Fixes #429 Signed-off-by: Christian Zunker <christian@mondoo.com>
This prevents `permission denied` errors. Workaround for operator-framework/operator-registry#984 Fixes #429 Signed-off-by: Christian Zunker <christian@mondoo.com>
This prevents `permission denied` errors. Workaround for operator-framework/operator-registry#984 Fixes #429 Signed-off-by: Christian Zunker <christian@mondoo.com>
I also ran into this. So even if operator-sdk is pinned to a fixed, known-good version (which we do in PMEM-CSI), it will then still pull random versions of other components (like this quay.io/operator-framework/opm image) at runtime? That sounds like a major deficiency in the release process for operator-sdk: I expect a released version to be fully deterministic. |
"operator-sdk run" pulls the latest version of certain images, which started to break after an quay.io/operator-framework/opm update. Pinning to a known version in our invocation is a workaround for that bug (operator-framework/operator-registry#984).
I was running into the same issue: $ operator-sdk run bundle quay.io/cniackz4/minio-operator:v4.4.17
INFO[0056] Successfully created registry pod: quay-io-cniackz4-minio-operator-v4-4-17
INFO[0056] Created CatalogSource: minio-operator-catalog
INFO[0056] OperatorGroup "operator-sdk-og" created
INFO[0056] Created Subscription: minio-operator-v4-4-17-sub
FATA[0120] Failed to run bundle: install plan is not available for the subscription minio-operator-v4-4-17-sub: timed out waiting for the condition Where the logs were showing: mkdir: can't create directory '/database': Permission denied I applied the flag $ operator-sdk run bundle quay.io/cniackz4/minio-operator:v4.4.17 --index-image=quay.io/operator-framework/opm:v1.23.0
INFO[0013] Successfully created registry pod: quay-io-cniackz4-minio-operator-v4-4-17
INFO[0013] Created CatalogSource: minio-operator-catalog
INFO[0013] OperatorGroup "operator-sdk-og" created
INFO[0013] Created Subscription: minio-operator-v4-4-17-sub
INFO[0016] Approved InstallPlan install-n8trk for the Subscription: minio-operator-v4-4-17-sub
INFO[0016] Waiting for ClusterServiceVersion "default/minio-operator.v4.4.17" to reach 'Succeeded' phase
INFO[0016] Waiting for ClusterServiceVersion "default/minio-operator.v4.4.17" to appear
INFO[0032] Found ClusterServiceVersion "default/minio-operator.v4.4.17" phase: Pending
INFO[0033] Found ClusterServiceVersion "default/minio-operator.v4.4.17" phase: InstallReady
INFO[0036] Found ClusterServiceVersion "default/minio-operator.v4.4.17" phase: Installing
INFO[0055] Found ClusterServiceVersion "default/minio-operator.v4.4.17" phase: InstallReady
INFO[0056] Found ClusterServiceVersion "default/minio-operator.v4.4.17" phase: Installing
INFO[0057] Found ClusterServiceVersion "default/minio-operator.v4.4.17" phase: Succeeded
INFO[0057] OLM has successfully installed "minio-operator.v4.4.17" Thank you guys, and hopefully this is going to be solved in latest and greatest version 👍 |
Can everyone confirm if latest work for them again? I think it is working now.. at least for operator-sdk downloaded from relases |
looking at the pod in the namespace generated.. it's still using opm:latest image but just wanted to note here. |
It "works" for us but we we now have a new problem that is related to FBC ( configmap) supporting only a max of 1 MB. |
Hello. What is the status of this issue? Is it expected to be fixed in the short term? Should we start pinning our deployments to the correct opm version (v1.23.0)? |
After PR #982 was merged
operator-sdk run bundle
stopped working.Looks like USER 1001 does not have permission to create directories.
Changing opm version in registry pod from
latest
tov1.23.0
allowed for pod successful start.The text was updated successfully, but these errors were encountered: