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

Console Route is re-generated using appsDomain and not cluster domain

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Normal
    • None
    • 4.10.0
    • Management Console
    • None
    • No
    • False
    • Hide

      None

      Show
      None

    Description

      Description of problem:

      After setting the appsDomain flag in the OpenShift Ingress configuration, all Routes that are generated are based off this domain.
      
      This includes OpenShift-core Routes, which can result in failing health-checks, such as seen with the OpenShift Web Console.
      
      According to the documentation[0], the appsDomain value should only be used by user-created Routes and is not intended to be seen when Openshift components are reconciled.
      
      

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

      
      OpenShift 4.12
      
      

      How reproducible:

      Everytime
      

      Steps to Reproduce:

      1. Provision a new cluster
      2. Configure appsDomain value
      3. Delete the OpenShift Console Route:
           oc delete routes -n openshift-console console
      4. The Route is automatically reconciled
      

      Actual results:

      The re-created Route uses the appsDomain value, resulting in failed health-checks throughout the cluster.
      

      Expected results:

      The Console and all other OpenShift-core components should use the default domain.
      

      Additional info:

      Reviewing the appsDomain code, if the appsDomain value is configured this takes precedent for all Routes. [3][1][2]
      
      
      Resources:
      [0] https://docs.openshift.com/container-platform/4.9/networking/ingress-operator.html#nw-ingress-configuring-application-domain_configuring-ingress
      [1] Sets Route Subdomain to appsdomain if it's present, otherwise uses the default domain
          https://github.com/openshift/cluster-openshift-apiserver-operator/blob/d2182396d647839f61b027602578ac31c9437e7d/pkg/operator/configobservation/ingresses/observe_ingresses.go#L16-L60
      [2] Sets up the Route generator
          https://github.com/openshift/openshift-apiserver/blob/9c381fc873b35c074f7c0c485893e038828c1405/pkg/cmd/openshift-apiserver/openshiftapiserver/config.go#L217-L218
      [3] Where Route.spec.host is generated:
          https://github.com/openshift/openshift-apiserver/blob/9c381fc873b35c074f7c0c485893e038828c1405/vendor/github.com/openshift/library-go/pkg/route/hostassignment/plugin.go#L22-L47
      
      
      

      Attachments

        Issue Links

          Activity

            People

              jhadvig@redhat.com Jakub Hadvig
              rhn-support-mwasher Michael Washer
              YaDan Pei YaDan Pei
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: