Bug 1986338
| Summary: | error creating list of resources in Import YAML | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Yadan Pei <yapei> | ||||||
| Component: | Management Console | Assignee: | Yadan Pei <yapei> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Yadan Pei <yapei> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 4.9 | CC: | aos-bugs, cajieh, kdoberst | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | 4.10.0 | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | No Doc Update | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2022-03-10 16:04:47 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: | |||||||||
| Attachments: |
|
||||||||
Created attachment 1841309 [details]
list resources are created successfully
follow the steps in bug description, now list resources can be created successfully, verified on 4.10.0-0.nightly-2021-11-11-170956
Created attachment 1841310 [details]
resources are created again
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 (Moderate: OpenShift Container Platform 4.10.3 security update), 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/RHSA-2022:0056 |
Description of problem: see steps to reproduce Version-Release number of selected component (if applicable): 4.9.0-0.nightly-2021-07-26-071921 How reproducible: Always Steps to Reproduce: 1. cluster admin user log into console and click the plus icon(Import YAML) to add resource yaml 2. copy and paste following content and click on 'Create' button apiVersion: v1 kind: Namespace metadata: name: console-demo-plugin --- apiVersion: apps/v1 kind: Deployment metadata: name: console-demo-plugin namespace: console-demo-plugin labels: app: console-demo-plugin app.kubernetes.io/component: console-demo-plugin app.kubernetes.io/instance: console-demo-plugin app.kubernetes.io/part-of: console-demo-plugin app.openshift.io/runtime-namespace: console-demo-plugin spec: replicas: 1 selector: matchLabels: app: console-demo-plugin template: metadata: labels: app: console-demo-plugin spec: containers: - name: console-demo-plugin image: quay.io/yapei/console-demo-plugin-locales:latest ports: - containerPort: 9001 protocol: TCP imagePullPolicy: Always args: - '--ssl' - '--cert=/var/serving-cert/tls.crt' - '--key=/var/serving-cert/tls.key' volumeMounts: - name: console-serving-cert readOnly: true mountPath: /var/serving-cert volumes: - name: console-serving-cert secret: secretName: console-serving-cert defaultMode: 420 restartPolicy: Always dnsPolicy: ClusterFirst strategy: type: RollingUpdate rollingUpdate: maxUnavailable: 25% maxSurge: 25% --- apiVersion: v1 kind: Service metadata: annotations: service.alpha.openshift.io/serving-cert-secret-name: console-serving-cert name: console-demo-plugin namespace: console-demo-plugin labels: app: console-demo-plugin app.kubernetes.io/component: console-demo-plugin app.kubernetes.io/instance: console-demo-plugin app.kubernetes.io/part-of: console-demo-plugin spec: ports: - name: 9001-tcp protocol: TCP port: 9001 targetPort: 9001 selector: app: console-demo-plugin type: ClusterIP sessionAffinity: None --- apiVersion: console.openshift.io/v1alpha1 kind: ConsolePlugin metadata: name: console-demo-plugin spec: displayName: 'OpenShift Console Demo Plugin' service: name: console-demo-plugin namespace: console-demo-plugin port: 9001 basePath: '/' Actual results: 2. console returns an error message An error occurred Deployment console-demo-plugin: namespaces "console-demo-plugin" not found Service console-demo-plugin: namespaces "console-demo-plugin" not found Expected results: 2. the resources should be created successfully without errors, namespace is created first then create other resources Additional info: If I tries to create via CLI `oc apply -f oc-manifest.yaml` all resources can be successfully created Request URL: https://console-openshift-console.apps.qe-ui49-0727.qe.devcluster.openshift.com/api/kubernetes/api/v1/namespaces?dryRun=All returns 201 Created Request URL: https://console-openshift-console.apps.qe-ui49-0727.qe.devcluster.openshift.com/api/kubernetes/apis/apps/v1/namespaces/console-demo-plugin/deployments?dryRun=All returns 404 Not Found Request URL: https://console-openshift-console.apps.qe-ui49-0727.qe.devcluster.openshift.com/api/kubernetes/api/v1/namespaces/console-demo-plugin/services?dryRun=All returns 404 Not Found Request URL: https://console-openshift-console.apps.qe-ui49-0727.qe.devcluster.openshift.com/api/kubernetes/apis/console.openshift.io/v1alpha1/consoleplugins?dryRun=All returns 201 Created