-
Notifications
You must be signed in to change notification settings - Fork 545
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
Fix 2327: Detecting OLM existence before start to install #2334
Fix 2327: Detecting OLM existence before start to install #2334
Conversation
Hi @morningspace. Thanks for your PR. I'm waiting for a operator-framework member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the 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. |
/lgtm |
Signed-off-by: Ying Mo <morningspace@yahoo.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
$ kind create cluster
$ kubectx kind-kind
$ ./scripts/install.sh v0.18.3
customresourcedefinition.apiextensions.k8s.io/catalogsources.operators.coreos.com created
customresourcedefinition.apiextensions.k8s.io/clusterserviceversions.operators.coreos.com created
customresourcedefinition.apiextensions.k8s.io/installplans.operators.coreos.com created
...
$ ./scripts/install.sh v0.18.3
OLM is already installed in olm namespace. Exiting...
$ k create ns openshift-operator-lifecycle-manager
$ k apply -f https://raw.githubusercontent.com/openshift/operator-framework-olm/master/manifests/0000_50_olm_07-olm-operator.deployment.yaml
deployment.apps/olm-operator created
$ ./scripts/install.sh v0.18.3
OLM is already installed in a different configuration. This is common if you are not running a vanilla Kubernetes cluster. Exiting...
/lgtm |
/ok-to-test |
@timflannagan I am seeing the e2e test is failed due to error occurred at https://github.com/operator-framework/operator-lifecycle-manager/blob/master/test/e2e/util_test.go#L497. But I could not image that's caused by this PR. Is it because of test-run slowness or something happens randomly? Failure details could be found at: https://github.com/operator-framework/operator-lifecycle-manager/runs/3434684793?check_suite_focus=true#step:4:2106 There are two CSVs created by the test case were not able to be deleted after waiting about 60.003s. |
@morningspace I wouldn't worry too much about those e2e failures as the testing suite can be flaky at times. IIRC, we don't actually use the install.sh bash script anywhere in the default testing environment. It looks like running |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kevinrizza, morningspace, timflannagan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
Signed-off-by: Ying Mo morningspace@yahoo.com
Description of the change:
Adding logic in
install.sh
to check if OLM has already been installed in olm namespace before going forward.Motivation for the change:
This PR is aimed to fix the issue documented here
Reviewer Checklist
/doc