Bug 1826808
Summary: | Need an endpoint in console to access Knative Event Source CRDs | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Abhishek K N <akyathan> |
Component: | Management Console | Assignee: | Abhishek K N <akyathan> |
Status: | CLOSED ERRATA | QA Contact: | Yadan Pei <yapei> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.5 | CC: | aos-bugs, bpeterse, jokerman, yanpzhan |
Target Milestone: | --- | ||
Target Release: | 4.5.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | No Doc Update | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-07-13 17:30:21 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Abhishek K N
2020-04-22 15:18:54 UTC
@Abhishek, I'm not sure the steps to verified the bug, we should install Knative Eventing Operator first, right? I tried to install it in project, but failed. Failed CustomResourceDefinition.apiextensions.k8s.io "knativeeventings.eventing.knative.dev" is invalid: spec.validation.openAPIV3Schema.type: Required value: must not be empty at the root @yanpzhan I've updated the description with additional details. Operator installation failure might be due to issue https://bugzilla.redhat.com/show_bug.cgi?id=1825330. Since PR related to this issue is merged we don't observe any issue with operator installation on latest CI builds. Checked on ocp 4.5 cluster with payload: 4.5.0-0.nightly-2020-04-29-223453. 1. When 'OpenShift Serverless Operator' and 'Knative Eventing Operator' are not install, with Admin as well as basic user credentials, access from browser: https://<openshift host name>/api/console/knative-event-sources, it returns items with empty context: {"kind":"CustomResourceDefinitionList","apiVersion":"apiextensions.k8s.io/v1","metadata":{"selfLink":"/apis/apiextensions.k8s.io/v1/customresourcedefinitions","resourceVersion":"73794"},"items":[]} 2. After 'OpenShift Serverless Operator' and 'Knative Eventing Operator' are installed, with Admin as well as basic user credentials, access from browser: https://<openshift host name>/api/console/knative-event-sources, it returns items: {"kind":"CustomResourceDefinitionList","apiVersion":"apiextensions.k8s.io/v1","metadata":{"selfLink":"/apis/apiextensions.k8s.io/v1/customresourcedefinitions","resourceVersion":"223955"},"items":[{"metadata":{"name":"apiserversources.sources.eventing.knative.dev"},"spec":{"group":"sources.eventing.knative.dev","names":{"plural":"apiserversources","singular":"apiserversource","kind":"ApiServerSource","listKind":"ApiServerSourceList","categories":["all","knative","eventing","sources"]},"versions":[{"name":"v1alpha1","served":true,"storage":true}]}},{"metadata":{"name":"apiserversources.sources.knative.dev"},"spec":{"group":"sources.knative.dev","names":{"plural":"apiserversources","singular":"apiserversource","kind":"ApiServerSource","listKind":"ApiServerSourceList","categories":["all","knative","eventing","sources"]},"versions":[{"name":"v1alpha1","served":true,"storage":true},{"name":"v1alpha2","served":false,"storage":false}]}},{"metadata":{"name":"containersources.sources.eventing.knative.dev"},"spec":{"group":"sources.eventing.knative.dev","names":{"plural":"containersources","singular":"containersource","kind":"ContainerSource","listKind":"ContainerSourceList","categories":["all","knative","eventing","sources"]},"versions":[{"name":"v1alpha1","served":true,"storage":true}]}},{"metadata":{"name":"cronjobsources.sources.eventing.knative.dev"},"spec":{"group":"sources.eventing.knative.dev","names":{"plural":"cronjobsources","singular":"cronjobsource","kind":"CronJobSource","listKind":"CronJobSourceList","categories":["all","knative","eventing","sources"]},"versions":[{"name":"v1alpha1","served":true,"storage":true}]}},{"metadata":{"name":"pingsources.sources.knative.dev"},"spec":{"group":"sources.knative.dev","names":{"plural":"pingsources","singular":"pingsource","kind":"PingSource","listKind":"PingSourceList","categories":["all","knative","eventing","sources"]},"versions":[{"name":"v1alpha1","served":true,"storage":true},{"name":"v1alpha2","served":true,"storage":false}]}},{"metadata":{"name":"sinkbindings.sources.eventing.knative.dev"},"spec":{"group":"sources.eventing.knative.dev","names":{"plural":"sinkbindings","singular":"sinkbinding","kind":"SinkBinding","listKind":"SinkBindingList","categories":["all","knative","eventing","sources","bindings"]},"versions":[{"name":"v1alpha1","served":true,"storage":true}]}},{"metadata":{"name":"sinkbindings.sources.knative.dev"},"spec":{"group":"sources.knative.dev","names":{"plural":"sinkbindings","singular":"sinkbinding","kind":"SinkBinding","listKind":"SinkBindingList","categories":["all","knative","eventing","sources","bindings"]},"versions":[{"name":"v1alpha1","served":true,"storage":true},{"name":"v1alpha2","served":true,"storage":false}]}}]} 3. (Operators are installed)Try curl the api, it return nothing. [root@MiWiFi-R1CM ~]# curl -k -H "Authorization: Bearer eAATrr-rM92wHGfobqrBOXucDCXVywhPwxL2KqNH6DE" https://console-openshift-console.apps.qe-groupd1-0430.qe.devcluster.openshift.com/api/console/knative-event-sources [root@MiWiFi-R1CM ~]# curl -k -H "Authorization: Bearer eAATrr-rM92wHGfobqrBOXucDCXVywhPwxL2KqNH6DE" https://console-openshift-console.apps.qe-groupd1-0430.qe.devcluster.openshift.com/api/console/version [root@MiWiFi-R1CM ~]# @Abhishek, thanks for you help info, from the above info, I think the api entry works from console. But curl from client get nothing, not only the /api/console/knative-event-sources, but also /api/console/version didn't return anything. Could you help to check if the client step is not correct? @yanpzhan Try to add -v option to curl & you might see 401 Unauthorized error. If so the Bearer token used is incorrect. Try to use 'openshift-session-token' from browser & set it using -b option. Tested again on 4.5 cluster with payload 4.5.0-0.nightly-2020-05-04-113741 Before 'OpenShift Serverless Operator' and 'Knative Eventing Operator' are installed: [zyp@MiWiFi-R1CM ~]$ curl -k -b "openshift-session-token=DzrhZSufNfA_tiNCM89rOXlL9aQ2TuIJ7eRRdefPB3w" https://console-openshift-console.apps.qe-groupd-0506.qe.devcluster.openshift.com/api/console/knative-event-sources {"kind":"CustomResourceDefinitionList","apiVersion":"apiextensions.k8s.io/v1","metadata":{"selfLink":"/apis/apiextensions.k8s.io/v1/customresourcedefinitions","resourceVersion":"109241"},"items":[]} After 'OpenShift Serverless Operator' and 'Knative Eventing Operator' are installed: [zyp@MiWiFi-R1CM ~]$ curl -k -b "openshift-session-token=DzrhZSufNfA_tiNCM89rOXlL9aQ2TuIJ7eRRdefPB3w" https://console-openshift-console.apps.uster.openshift.com/api/console/knative-event-sources {"kind":"CustomResourceDefinitionList","apiVersion":"apiextensions.k8s.io/v1","metadata":{"selfLink":"/apis/apiextensions.k8s.io/v1/customresourcedefinitions","resourceVersion":"155911"},"items":[{"metadata":{"name":"apiserversources.sources.eventing.knative.dev"},"spec":{"group":"sources.eventing.knative.dev","names":{"plural":"apiserversources","singular":"apiserversource","kind":"ApiServerSource","listKind":"ApiServerSourceList","categories":["all","knative","eventing","sources"]},"versions":[{"name":"v1alpha1","served":true,"storage":true}]}},{"metadata":{"name":"apiserversources.sources.knative.dev"},"spec":{"group":"sources.knative.dev","names":{"plural":"apiserversources","singular":"apiserversource","kind":"ApiServerSource","listKind":"ApiServerSourceList","categories":["all","knative","eventing","sources"]},"versions":[{"name":"v1alpha1","served":true,"storage":true},{"name":"v1alpha2","served":false,"storage":false}]}},{"metadata":{"name":"containersources.sources.eventing.knative.dev"},"spec":{"group":"sources.eventing.knative.dev","names":{"plural":"containersources","singular":"containersource","kind":"ContainerSource","listKind":"ContainerSourceList","categories":["all","knative","eventing","sources"]},"versions":[{"name":"v1alpha1","served":true,"storage":true}]}},{"metadata":{"name":"cronjobsources.sources.eventing.knative.dev"},"spec":{"group":"sources.eventing.knative.dev","names":{"plural":"cronjobsources","singular":"cronjobsource","kind":"CronJobSource","listKind":"CronJobSourceList","categories":["all","knative","eventing","sources"]},"versions":[{"name":"v1alpha1","served":true,"storage":true}]}},{"metadata":{"name":"pingsources.sources.knative.dev"},"spec":{"group":"sources.knative.dev","names":{"plural":"pingsources","singular":"pingsource","kind":"PingSource","listKind":"PingSourceList","categories":["all","knative","eventing","sources"]},"versions":[{"name":"v1alpha1","served":true,"storage":true},{"name":"v1alpha2","served":true,"storage":false}]}},{"metadata":{"name":"sinkbindings.sources.eventing.knative.dev"},"spec":{"group":"sources.eventing.knative.dev","names":{"plural":"sinkbindings","singular":"sinkbinding","kind":"SinkBinding","listKind":"SinkBindingList","categories":["all","knative","eventing","sources","bindings"]},"versions":[{"name":"v1alpha1","served":true,"storage":true}]}},{"metadata":{"name":"sinkbindings.sources.knative.dev"},"spec":{"group":"sources.knative.dev","names":{"plural":"sinkbindings","singular":"sinkbinding","kind":"SinkBinding","listKind":"SinkBindingList","categories":["all","knative","eventing","sources","bindings"]},"versions":[{"name":"v1alpha1","served":true,"storage":true},{"name":"v1alpha2","served":true,"storage":false}]}}]} The bug is fixed, so move it to Verified. Thank @Abhishek for helping! Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:2409 |