Bug 1662257 - Have not expose dashboard link of service instance in console
Summary: Have not expose dashboard link of service instance in console
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.1.0
Assignee: Samuel Padgett
QA Contact: Zhang Cheng
URL:
Whiteboard:
Depends On: 1668534
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-27 08:27 UTC by Zhang Cheng
Modified: 2019-03-12 14:27 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-02-27 18:08:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Zhang Cheng 2018-12-27 08:27:31 UTC
Description of problem: 
Have not dashboard link of service instance in console after provision a demo apb (image using: docker.io/aosqe/dashboard-url-apb:latest).


Version-Release number of selected component (if applicable):
oc v4.0.0-alpha.0+23c8cff-810
asbd 1.3.20
docker.io/automationbroker/automation-broker-operator:latest
docker.io/ansibleplaybookbundle/origin-ansible-service-broker:canary


How reproducible:
Always


Steps to Reproduce:
1. Config asb to private registry to load demo APB, and redeploy asb pod. Image of demo apb using docker.io/aosqe/dashboard-url-apb:latest
    registry:
      - type: dockerhub
        name: rh
        url:  https://registry.hub.docker.com
        org:  aosqe
        tag:  latest
        white_list: ['.*']

2. Create service instance of demo apb

3. Check dashboard url both in backend and console after provision succeed.


Actual results: 
3. Dashboard url is existing in yaml of service instance, but was not exposed in console (the dashboard url was not displayed in console). But can manually access the link http://broker-redirector-automation-broker.apps.zitang.devcluster.openshift.com/?id=8ca52ef5-09ad-11e9-a97b-0a580a83000c succeed.

kind: ServiceInstance
apiVersion: servicecatalog.k8s.io/v1beta1
metadata:
  name: dh-demo-apb
  namespace: test
  selfLink: >-
    /apis/servicecatalog.k8s.io/v1beta1/namespaces/test/serviceinstances/dh-demo-apb
  uid: 8ca52f8e-09ad-11e9-a97b-0a580a83000c
  resourceVersion: '532'
  generation: 1
  creationTimestamp: '2018-12-27T08:01:00Z'
  finalizers:
    - kubernetes-incubator/service-catalog
spec:
  clusterServiceClassExternalName: dh-demo-apb
  clusterServicePlanExternalName: default
  clusterServiceClassRef:
    name: 0797445261af942a93b7b27a8b04df4f
  clusterServicePlanRef:
    name: bd4785bf28a8d03dacb051f2c7504f99
  externalID: 8ca52ef5-09ad-11e9-a97b-0a580a83000c
  userInfo:
    username: 'kube:admin'
    uid: ''
    groups:
      - 'system:masters'
      - 'system:authenticated'
  updateRequests: 0
status:
  observedGeneration: 1
  deprovisionStatus: Required
  provisionStatus: Provisioned
  reconciledGeneration: 1
  asyncOpInProgress: false
  conditions:
    - type: Ready
      status: 'True'
      lastTransitionTime: '2018-12-27T08:03:08Z'
      reason: ProvisionedSuccessfully
      message: The instance was provisioned successfully
  orphanMitigationInProgress: false
  dashboardURL: >-
    http://broker-redirector-automation-broker.apps.zitang.devcluster.openshift.com/?id=8ca52ef5-09ad-11e9-a97b-0a580a83000c
  externalProperties:
    clusterServicePlanExternalName: default
    clusterServicePlanExternalID: bd4785bf28a8d03dacb051f2c7504f99
    userInfo:
      username: 'kube:admin'
      uid: ''
      groups:
        - 'system:masters'
        - 'system:authenticated'


Expected results: 
3. Dashboard url should be exposed in console and access successfully.


addition info: 
Related feature: https://trello.com/c/nKETILel

Comment 1 Samuel Padgett 2019-01-07 17:32:57 UTC
https://github.com/openshift/console/pull/1019

Comment 2 Zhang Cheng 2019-01-08 01:56:31 UTC
Changing QA Contact to me

Comment 3 Zhang Cheng 2019-02-27 07:48:23 UTC
Changing status to Verified.

Verified and passed with latest build in payload 4.0.0-0.nightly-2019-02-26-125216

Dashboard url can be displayed in console succeed.


Note You need to log in before you can comment on or make changes to this bug.