Skip to content
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

Use podman cp over podman run cat/ls when fetching CSVs for Rook #2495

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

GingerGeek
Copy link

When building a pipeline (okd-project/okd-operator-pipeline) to build and assemble the storage operators, we had issues with building OCS due to running of containers-in-a-pod as part of the pipeline.

Running a container requires additional privileges that we are trying to avoid giving to our Tekton pipeline and in this case it seemed using podman cp would provide a slightly simpler solution.

Copy link
Contributor

openshift-ci bot commented Mar 5, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: GingerGeek
Once this PR has been reviewed and has the lgtm label, please assign iamniting for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Mar 5, 2024
Copy link
Contributor

openshift-ci bot commented Mar 5, 2024

Hi @GingerGeek. Thanks for your PR.

I'm waiting for a red-hat-storage member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@malayparida2000
Copy link
Contributor

/ok-to-test

@openshift-ci openshift-ci bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 5, 2024
@malayparida2000
Copy link
Contributor

/cc @subhamkrai I think you were working on something else related to this, PTAL

@GingerGeek
Copy link
Author

Thanks, I also noted that the Rook CRDs currently in the repo all have CRLF line endings. The cp command will replace them with LF but not sure if that should be included in this PR or not?

Copy link
Contributor

openshift-ci bot commented Mar 5, 2024

@GingerGeek: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/ocs-operator-bundle-e2e-aws aeef254 link true /test ocs-operator-bundle-e2e-aws

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@Nikhil-Ladha
Copy link
Member

Nikhil-Ladha commented Mar 6, 2024

We won't be needing these changes, once we are set to take this PR in #2492
@GingerGeek is this issue with rook CRDs,CSV a blocker for now? Can we hold it off for some more days or so?

@GingerGeek
Copy link
Author

It's not a blocker no, especially if you're planning to switch away. We currently hold this PR as a patch on our build pipeline for this repository. cc/ @SupremeMortal

@jarrpa
Copy link
Member

jarrpa commented Mar 7, 2024

@GingerGeek Will PR #2492 still work for you if it's using operator-sdk run bundle? https://sdk.operatorframework.io/docs/cli/operator-sdk_run_bundle/ You may want to verify this.

@jarrpa
Copy link
Member

jarrpa commented Mar 7, 2024

For what it's worth, I have some dev patches where I"m using kustomize to deploy rook-ceph-operator from within this repo, and moving away from using podman directly would be a step backwards for me. I like not using OLM where I don't have to. 😝

@GingerGeek
Copy link
Author

I'm not sure, if there's an underlying use of a running container then it would likely fail in our current pipelines as podman-in-okd-pods is non-trivial if you want to maintain non-privileged running.

We may have to bite the bullets and just start running builds in privileged contexts.

It's worth mentioning that this method of us taking a project like this and running the build ourself is a somewhat stop-gap measure to help bootstrap operators-on-okd.

Our overall goal would be for the OKD catalog to be a first-class destination for any upstream operators that package into Openshift. So ie you folks on this project would have CI/CD to build operator bundles and then submit that into our catalog. Happy to partake in any community process that would help make that happen

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 22, 2024
@openshift-merge-robot
Copy link
Contributor

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. ok-to-test Indicates a non-member PR verified by an org member that is safe to test.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants