Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1685802

Summary: The Web console crashed after clicking the "Create Instance" button
Product: OpenShift Container Platform Reporter: Jian Zhang <jiazha>
Component: Management ConsoleAssignee: David Taylor <dtaylor>
Status: CLOSED CURRENTRELEASE QA Contact: Jian Zhang <jiazha>
Severity: medium Docs Contact:
Priority: high    
Version: 4.1.0CC: aos-bugs, chezhang, dyan, jfan, jokerman, mmccomas, spadgett, zitang
Target Milestone: ---   
Target Release: 4.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-03-19 17:25:42 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 Jian Zhang 2019-03-06 06:40:17 UTC
Description of problem:
The Web console gets crash after clicking the "Create Instance" button. Got below errors:
TypeError: undefined is not an object (evaluating 't.spec.externalMetadata.displayName')

Version-Release number of selected component (if applicable):
Cluster version is 4.0.0-0.nightly-2019-03-04-234414
Console image:
quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:af4309742b18e8e0e4dc2c7f96c044ede1f2d40c325a9462a25398c39c67bd9f
             io.openshift.build.commit.id=24942e86dd5bef0b17c1e33bfcd386b450c49b19
             io.openshift.build.commit.url=https://github.com/openshift/console/commit/24942e86dd5bef0b17c1e33bfcd386b450c49b19
             io.openshift.build.source-location=https://github.com/openshift/console


How reproducible:
always

Steps to Reproduce:
1. Install the OCP 4.0.
2. Create the Service Catalog:
oc create -f https://raw.githubusercontent.com/jianzhangbjz/v3-testfiles/v4.0/svc-catalog/cluster-svcat-apiserver-cr.yaml
oc create -f https://raw.githubusercontent.com/jianzhangbjz/v3-testfiles/v4.0/svc-catalog/cluster-svcat-controller-manager-cr.yaml

3. Create a broker, such as ups-broker:
oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/svc-catalog/ups-broker-deploy.yaml
oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/svc-catalog/ups-broker-svc.yaml
oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/svc-catalog/ups-broker-3.7.yaml

4, Login the Web console as the kubeadmin user.

Catalog ->Broker Management ->ups-broker -> Service Classes-> user-provided-service -> Create Instance

Actual results:
The Web console crashed.

Expected results:
Navigation to the next page successfully.

Additional info:
The ServiceInstance can be installed in the backend successfully. As below:
oc new-project test-ns
oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/svc-catalog/ups-instance.yaml
[jzhang@dhcp-140-18 bug-05]$ oc get serviceinstance -n test-ns
NAME           CLASS                                       PLAN      STATUS   AGE
ups-instance   ClusterServiceClass/user-provided-service   default   Ready    27s

Comment 1 Jian Zhang 2019-03-07 02:01:59 UTC
Samuel

ON_QA? Could you help paste the fixed PR in here so that we can know the exact version? Thanks!

Comment 2 Samuel Padgett 2019-03-08 13:43:32 UTC
https://github.com/openshift/console/pull/1256

Comment 3 Jian Zhang 2019-03-11 08:02:06 UTC
The current payload does not include the fixed PR, change Status to MODIFIED.
Cluster version is 4.0.0-0.nightly-2019-03-06-074438

Comment 5 Jian Zhang 2019-03-14 09:08:17 UTC
LGTM, verify it.

current version: 4.0.0-0.nightly-2019-03-13-233958

[jzhang@dhcp-140-18 ocp14]$ oc get pods -n  openshift-console -o yaml |grep image
      console.openshift.io/image: quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:1c8b428f9934d9cde7b8998dc4586ad045085aa452e2cb749b9b80e71d7de183
      image: quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:1c8b428f9934d9cde7b8998dc4586ad045085aa452e2cb749b9b80e71d7de183
version:
             io.openshift.build.commit.id=ddab4c4d3863f4472819b208493fae871968e641
             io.openshift.build.commit.url=https://github.com/openshift/console/commit/ddab4c4d3863f4472819b208493fae871968e641
             io.openshift.build.source-location=https://github.com/openshift/console