-
Notifications
You must be signed in to change notification settings - Fork 28
Extend E2E test to include coverage for creating Operator from OperatorSource #135
Conversation
Hi @ldimaggi. Thanks for your PR. I'm waiting for a redhat-developer 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. |
namespace: openshift-operators | ||
spec: | ||
type: appregistry | ||
endpoint: https://quay.io/repository/redhat-developer/devconsole-operator |
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.
Does this actually work like an app registry?
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.
It allowed the subscription to be created - but you are correct - it's not an app registry. Will retry after having created an app registry in Quay.
4fab7ab
to
d8ac519
Compare
/ok-to-test |
namespace: openshift-operators | ||
spec: | ||
type: appregistry | ||
endpoint: https://quay.io/application/ldimaggi-test-org/mychart |
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.
Nice! Do paste a screenshot in this PR how it looks in the operatorhub page on the cluster.
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.
I spent a lot of time with Helm this morning and I think I have the correct sequence - but while the subscription is showing up inthe UI, the catalog is not. The problem that I am seeing is: operator-framework/operator-lifecycle-manager#822 - currently blocked on this.
What are the |
kubectl apply -f devconsole.operatorsource.catalog.yaml The odd thing is that the catalog seems to be created - but it is not showing up in the UI:
|
@ldimaggi The resource that is being created is @sbose78 WDYT, do I understand it correctly? |
I modeled this on these files: |
It seems like this is a contributing factor to the subscription failing: Create a CatalogSource:
Apply the CatalogSource:
Verify the CatalogSource in the CLI:
|
d8ac519
to
61ddcb2
Compare
namespace: openshift-operators | ||
spec: | ||
type: appregistry | ||
endpoint: https://quay.io/application/ldimaggi-test-org/mychart |
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.
According to the official example:
metadata.namespace
should beopenshift-marketplace
spec.endpoint
should behttps://quay.io/cnr
spec.registryNamespace
should beldimaggi-test-org
kind: CatalogSourceConfig | ||
metadata: | ||
name: devconsole-operator-catalog | ||
namespace: openshift-operators |
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.
According to the official example:
metadata.namespace
should beopenshift-marketplace
I just realized, that the (operator-test-env)➜ oc get csc --all-namespaces
NAMESPACE NAME STATUS MESSAGE AGE
openshift-marketplace certified-operators Succeeded The object has been successfully reconciled 29h
openshift-marketplace community-operators Succeeded The object has been successfully reconciled 29h
openshift-marketplace redhat-operators Succeeded The object has been successfully reconciled 29h
(operator-test-env)➜ oc get catsrc --all-namespaces
NAMESPACE NAME NAME TYPE PUBLISHER AGE
openshift-marketplace certified-operators Certified Operators grpc Red Hat 29h
openshift-marketplace community-operators Community Operators grpc Red Hat 29h
openshift-marketplace redhat-operators Red Hat Operators grpc Red Hat 29h
openshift-operator-lifecycle-manager olm-operators OLM Operators internal Red Hat 30h
(operator-test-env)➜ oc get opsrc --all-namespaces
NAMESPACE NAME TYPE ENDPOINT REGISTRY DISPLAYNAME PUBLISHER STATUS MESSAGE AGE
openshift-marketplace certified-operators appregistry https://quay.io/cnr certified-operators Certified Operators Red Hat Succeeded The object has been successfully reconciled 30h
openshift-marketplace community-operators appregistry https://quay.io/cnr community-operators Community Operators Red Hat Succeeded The object has been successfully reconciled 30h
openshift-marketplace redhat-operators appregistry https://quay.io/cnr redhat-operators Red Hat Operators Red Hat Succeeded The object has been successfully reconciled 30h
And when an (operator-test-env)➜ cat devconsole.operatorsource.yaml apiVersion: operators.coreos.com/v1
kind: OperatorSource
metadata:
name: devconsole-operators
namespace: openshift-marketplace
spec:
type: appregistry
endpoint: https://quay.io/cnr
registryNamespace: odcqe
displayName: "Red Hat Devconsole Operator"
publisher: "Red Hat" ( (operator-test-env)➜ oc get csc --all-namespaces
NAMESPACE NAME STATUS MESSAGE AGE
openshift-marketplace certified-operators Succeeded The object has been successfully reconciled 30h
openshift-marketplace community-operators Succeeded The object has been successfully reconciled 30h
openshift-marketplace devconsole-operators Succeeded The object has been successfully reconciled 90s
openshift-marketplace redhat-operators Succeeded The object has been successfully reconciled 30h
(operator-test-env)➜ oc get catsrc --all-namespaces
NAMESPACE NAME NAME TYPE PUBLISHER AGE
openshift-marketplace certified-operators Certified Operators grpc Red Hat 30h
openshift-marketplace community-operators Community Operators grpc Red Hat 30h
openshift-marketplace devconsole-operators Red Hat Devconsole Operator grpc Red Hat 98s
openshift-marketplace redhat-operators Red Hat Operators grpc Red Hat 30h
openshift-operator-lifecycle-manager olm-operators OLM Operators internal Red Hat 30h
(operator-test-env)➜ oc get opsrc --all-namespaces
NAMESPACE NAME TYPE ENDPOINT REGISTRY DISPLAYNAME PUBLISHER STATUS MESSAGE AGE
openshift-marketplace certified-operators appregistry https://quay.io/cnr certified-operators Certified Operators Red Hat Succeeded The object has been successfully reconciled 30h
openshift-marketplace community-operators appregistry https://quay.io/cnr community-operators Community Operators Red Hat Succeeded The object has been successfully reconciled 30h
openshift-marketplace devconsole-operators appregistry https://quay.io/cnr odcqe Red Hat Devconsole Operator Red Hat Succeeded The object has been successfully reconciled 102s
openshift-marketplace redhat-operators appregistry https://quay.io/cnr redhat-operators Red Hat Operators Red Hat Succeeded The object has been successfully reconciled 30h |
Then a pod is created: (operator-test-env)➜ oc get pods -n openshift-marketplace
NAME READY STATUS RESTARTS AGE
certified-operators-d58db9c6b-thm2r 1/1 Running 0 30h
community-operators-7cfbbbb6b-v5cvg 1/1 Running 0 30h
devconsole-operators-585dcb889c-4lv2p 0/1 CrashLoopBackOff 9 22m
marketplace-operator-5cc4974ddc-mqzmt 1/1 Running 0 30h
redhat-operators-77848897d7-s28vh 1/1 Running 0 30h but the pod fails (my helm chart for the operator in the app registry in quay is likely packaged incorrectly): (operator-test-env)➜ ~ oc logs devconsole-operators-585dcb889c-4lv2p -n openshift-marketplace
time="2019-04-26T13:12:16Z" level=info msg="Using in-cluster kube client config" port=50051 type=appregistry
time="2019-04-26T13:12:16Z" level=info msg="operator source(s) specified are - [https://quay.io/cnr|odcqe]" port=50051 type=appregistry
time="2019-04-26T13:12:16Z" level=info msg="package(s) specified are - devconsole-operator-test" port=50051 type=appregistry
time="2019-04-26T13:12:16Z" level=info msg="input has been sanitized" port=50051 type=appregistry
time="2019-04-26T13:12:16Z" level=info msg="sources: [https://quay.io/cnr/odcqe]" port=50051 type=appregistry
time="2019-04-26T13:12:16Z" level=info msg="packages: [devconsole-operator-test]" port=50051 type=appregistry
time="2019-04-26T13:12:16Z" level=info msg="resolved the following packages: [odcqe/devconsole-operator-test:0.1.0]" port=50051 type=appregistry
time="2019-04-26T13:12:16Z" level=info msg="downloading repository: odcqe/devconsole-operator-test:0.1.0 from https://quay.io/cnr" port=50051 type=appregistry
time="2019-04-26T13:12:16Z" level=info msg="download complete - 1 repositories have been downloaded" port=50051 type=appregistry
time="2019-04-26T13:12:16Z" level=info msg="decoding the downloaded operator manifest(s)" port=50051 type=appregistry
time="2019-04-26T13:12:16Z" level=info msg="manifest format is - nested" port=50051 repository="odcqe/devconsole-operator-test:0.1.0" type=appregistry
time="2019-04-26T13:12:16Z" level=info msg="downloaded/devconsole-operator-test/devconsole.operatorsource.catalog.yaml - type=file" port=50051 type=appregistry
time="2019-04-26T13:12:16Z" level=error msg="skipping due to error - error happened while processing tar file - open downloaded/devconsole-operator-test/devconsole.operatorsource.catalog.yaml: no such file or directory" port=50051 repository="odcqe/devconsole-operator-test:0.1.0" type=appregistry
time="2019-04-26T13:12:16Z" level=info msg="decoded 0 flattened and 1 nested operator manifest(s)" port=50051 type=appregistry
time="2019-04-26T13:12:16Z" level=info msg="loading nested operator bundle(s) from downloaded into sqlite" port=50051 type=appregistry
time="2019-04-26T13:12:16Z" level=error msg="stat failed on target directory[downloaded] - stat downloaded: no such file or directory" port=50051 type=appregistry
time="2019-04-26T13:12:16Z" level=fatal msg="error loading manifest from remote registry - stat downloaded: no such file or directory" port=50051 type=appregistry |
This line in the pod log got my attention:
|
61ddcb2
to
a513b79
Compare
/test lint |
5cef52d
to
43f84dc
Compare
… verifying creating Operator from OperatorSource. https://jira.coreos.com/browse/ODC-580
43f84dc
to
f1fd4f8
Compare
/assign @sbose78 |
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.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: baijum 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 |
9bf0cf1
to
94ba3e3
Compare
/retest |
This PR is made obsolete by #181 |
Closing this pull request - un-merged - in favor of pull request #181 |
This pull request will include:
Ref: https://jira.coreos.com/browse/ODC-580