-
Bug
-
Resolution: Not a Bug
-
Major
-
None
-
4.12
-
None
-
Critical
-
No
-
Rejected
-
False
-
Description of problem:
When deploying an application from RHACM GUI and adding a route to access the service which runs on the eks cluster, we get an error: route.openshift.io/v1: the server could not find the requested resource Checking the apiresource [docker@localhost eks]$ oc get route error: the server doesn't have a resource type "route" [docker@localhost eks]$ oc api-resources | grep route [docker@localhost eks]$ On the ROSA cluster: docker@localhost rosa]$ oc api-resources | grep route routemonitors monitoring.openshift.io/v1alpha1 true RouteMonitor egressrouters network.operator.openshift.io/v1 true EgressRouter routes route.openshift.io/v1 true Route [docker@localhost rosa]$ date And I able to add the route to the application.
Version-Release number of selected component (if applicable):
apiVersion: apps.open-cluster-management.io/v1alpha1 kind: SubscriptionStatus metadata: creationTimestamp: '2023-11-06T22:38:50Z' generation: 6 labels: apps.open-cluster-management.io/cluster: zts-demo-eks apps.open-cluster-management.io/hosting-subscription: default.zts-cmc-app-subscription managedFields: - apiVersion: apps.open-cluster-management.io/v1alpha1 fieldsType: FieldsV1 fieldsV1: f:metadata: f:labels: .: {} f:apps.open-cluster-management.io/cluster: {} f:apps.open-cluster-management.io/hosting-subscription: {} f:statuses: .: {} f:packages: {} manager: multicluster-operators-subscription operation: Update time: '2023-11-07T00:05:56Z' name: zts-cmc-app-subscription namespace: default resourceVersion: '1034889' uid: a3690b43-c98b-4232-865b-82827c09ec7b statuses: packages: - apiVersion: v1 kind: ConfigMap lastUpdateTime: '2023-11-07T00:05:56Z' name: zts-cmc-configmap namespace: default phase: Deployed - apiVersion: route.openshift.io/v1 kind: Route lastUpdateTime: '2023-11-07T00:05:56Z' message: >- failed to get GVR from restmapping: failed to get API group resources: unable to retrieve the complete list of server APIs: route.openshift.io/v1: the server could not find the requested resource name: zts-cmc-app-route phase: Failed - apiVersion: v1 kind: Service lastUpdateTime: '2023-11-07T00:05:56Z' name: zts-cmc-app-svc namespace: default phase: Deployed
How reproducible:
Steps to Reproduce:
1. Create an EKS cluster 2. Run the oc commands on the cluster 3. oc get route fails.
Actual results:
Expected results:
[docker@localhost rosa]$ oc api-resources | grep route routemonitors monitoring.openshift.io/v1alpha1 true RouteMonitor egressrouters network.operator.openshift.io/v1 true EgressRouter routes route.openshift.io/v1 true Route [docker@localhost rosa]$ [docker@localhost rosa]$ oc get route No resources found in default namespace.
Additional info: