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

It is not possible to test automatically che-operator updates #16738

Closed
tolusha opened this issue Apr 24, 2020 · 7 comments
Closed

It is not possible to test automatically che-operator updates #16738

tolusha opened this issue Apr 24, 2020 · 7 comments
Labels
area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.
Milestone

Comments

@tolusha
Copy link
Contributor

tolusha commented Apr 24, 2020

Describe the bug

To check updates we use the test script [1]
It fails with such an error

./testUpdate.sh openshift stable
 PACKAGE_VERSION=7.11.0 
 CSV=eclipse-che-preview-openshift.v7.11.0 
 Channel=stable 
 Namespace=eclipse-che-preview-test 
Installing test pre-requisistes
namespace/eclipse-che-preview-test unchanged
Apply che-operator source
--- Use default eclipse che application registry ---
apiVersion: operators.coreos.com/v1
kind: OperatorSource
metadata:
  name: eclipse-che-preview-openshift
  namespace: openshift-marketplace
spec:
  authorizationToken: {}
  endpoint: 'https://quay.io/cnr'
  registryNamespace: eclipse-che-operator-openshift
  type: appregistry
error: unable to recognize "/home/tolusha/gocode/src/github.com/eclipse/che-operator/olm/eclipse-che-preview-openshift/operator-source.yaml": no matches for kind "OperatorSource" in version "operators.coreos.com/v1"
Subscribing to version: eclipse-che-preview-openshift.v7.11.0
unable to recognize "STDIN": no matches for kind "OperatorGroup" in version "operators.coreos.com/v1"
unable to recognize "STDIN": no matches for kind "Subscription" in version "operators.coreos.com/v1alpha1"
error: the server doesn't have a resource type "subscription"
error: the server doesn't have a resource type "subscription"
Subscription failed to install the operator

The reason being is that operator-source is removed from latest version of olm.

[1] https://github.com/eclipse/che-operator/blob/master/olm/testUpdate.sh

Environment

  • OpenShift 4.4
  • Minikube 1.8.2
@tolusha tolusha added kind/bug Outline of a bug - must adhere to the bug report template. area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator labels Apr 24, 2020
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Apr 24, 2020
@tolusha tolusha mentioned this issue Apr 24, 2020
16 tasks
@flacatus
Copy link
Contributor

Launched on OCP4.4 and I've obtain the same errors. Hower launching the same scripts on OCP4.3 seems is working without any problem.

Installing in OCP 4.4 also I received this event:

Events:                    <none>
error: timed out waiting for the condition on subscriptions/eclipse-che-preview-openshift
Subscription failed to install the operator

@nickboldt
Copy link
Contributor

do we know if the problem is 4.4 itself (different behaviour) or network issues?

@flacatus
Copy link
Contributor

I want to mention I test update from 7.11.0 to 7.12.0 on minikube(1.8.2 version) and seems is working. I change OLM version from 0.12.0 to 0.14.0.

@ibuziuk ibuziuk added severity/P1 Has a major impact to usage or development of the system. and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Apr 27, 2020
@ibuziuk
Copy link
Member

ibuziuk commented Apr 27, 2020

@tolusha setting P1, but please update the labels based on the team priorities

@dmytro-ndp
Copy link
Contributor

An error hasn't been reproduced on latest OCP 4.4-rc.11 cluster.

@nickboldt
Copy link
Contributor

If this is resolved, please update #16690 (comment) when you have news about the PRs being done.

@tolusha
Copy link
Contributor Author

tolusha commented May 6, 2020

Fixed olm version to test operator updates on minikube.
Also I was able to test updates on OpenShift 4.5.

@tolusha tolusha closed this as completed May 6, 2020
@tolusha tolusha added this to the 7.13 milestone May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.
Projects
None yet
Development

No branches or pull requests

6 participants