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

[MicroShift] the host and routerCanonicalHostname should use same sub domain name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • 4.13.0
    • 4.12.0
    • MicroShift
    • None
    • Moderate
    • None
    • uShift Sprint 228, uShift Sprint 229, uShift Sprint 230
    • 3
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      In router-default deployment the ROUTER_CANONICAL_HOSTNAME is defined as "router-default.apps.cluster.local"
      
      but the generated route looks like: <route-name>-<namespace>.cluster.local and it doesn't contain the "apps" in the sub domain.

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

      Client Version: 4.12.0-202211081039.p0.g854f807.assembly.stream-854f807
      Kustomize Version: v4.5.7
      Kubernetes Version: v1.25.0
      
      microshift-4.12.0~rc.3-202212061817.p0.gcb7f9bb
      
      

      How reproducible:

      100%

      Steps to Reproduce:

      1. create service
      2. create a route without specifying the spec.host
      3. oc get route myroute -oyaml
      
      

      Actual results:

        status:
          ingress:
          - conditions:
            - lastTransitionTime: "2022-12-07T09:03:52Z"
              status: "True"
              type: Admitted
            host: myroute-default.cluster.local                    <<<---no apps
            routerCanonicalHostname: router-default.apps.cluster.local <<<---
            routerName: default
            wildcardPolicy: None
      

      Expected results:

      both host and routerCanonicalHostname should use same base domain

      Additional info:

      One example of OCP cluster:
      
      status:
        ingress:
        - conditions:
          - lastTransitionTime: "2022-12-07T08:25:05Z"
            status: "True"
            type: Admitted
          host: service-unsecure-hongli.apps.hongli-azure.qe.azure.devcluster.openshift.com
          routerCanonicalHostname: router-default.apps.hongli-azure.qe.azure.devcluster.openshift.com
          routerName: default
          wildcardPolicy: None
      
      
      

       

              zshi@redhat.com Zenghui Shi
              rhn-support-hongli Hongan Li
              Hongan Li Hongan Li
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: