Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-3024

Service list shows undefined:80 when type is ExternalName or LoadBalancer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 4.13.0, 4.12.z
    • 4.12.z, 4.12.0, 4.11.z, 4.10.z, 4.9.z, 4.8.z, 4.7.z, 4.6.z
    • Dev Console
    • Informational
    • None
    • ODC Sprint 228, ODC Sprint 229
    • 2
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, the *Services* list for Kubernetes showed undefined column *Location* for all `LoadBalancer` services. With this fix, you can see the correct server name and port for all the `LoadBalancer` services in the list. (link:https://issues.redhat.com/browse/OCPBUGS-3024[*OCPBUGS-3024*])
      Show
      * Previously, the *Services* list for Kubernetes showed undefined column *Location* for all `LoadBalancer` services. With this fix, you can see the correct server name and port for all the `LoadBalancer` services in the list. (link: https://issues.redhat.com/browse/OCPBUGS-3024 [* OCPBUGS-3024 *])
    • Bug Fix
    • Done

      Description of problem:
      Service list has a Location column that shows the used ports of the service. But it shows undefined:80 (port from the resource) when the Service has type: ExternalName or type: LoadBalancer

      Version-Release number of selected component (if applicable):
      4.6-4.12

      How reproducible:
      Always

      Steps to Reproduce:
      Create a Service with type: ExternalName or type: LoadBalancer, for example:

      apiVersion: v1
      kind: Service
      metadata:
        name: external-service
      spec:
        ports:
          - protocol: TCP
            port: 8000
            targetPort: 8000
        selector:
          app: nodeinfo-d
        type: ExternalName
      ---
      kind: Service
      apiVersion: v1
      metadata:
        name: loadbalancer-service
      spec:
        clusterIP: 10.217.4.147
        ports:
          - protocol: TCP
            port: 8000
            targetPort: 8000
            nodePort: 31799
        type: LoadBalancer
        selector:
          app: nodeinfo-d
      

      Open Administrator perspective > Networking > Services

      Actual results:
      Service list shows undefined:80 (port from the resource)

      Expected results:
      Service list should show just the port or more information for other Service types.

      Additional info:
      The Service details page uses a switch for .spec.type to show different information. See https://github.com/openshift/console/blob/7b741dd8898454cded10f6572fbebb1c4df1c8f9/frontend/public/components/service.jsx#L97-L125

              cjerolim Christoph Jerolimov
              cjerolim Christoph Jerolimov
              Xiyun Zhao Xiyun Zhao
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: