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

Custom `Downloads` route is not being updated within the `https://custom-console-route/command-line-tools`

    • +
    • Moderate
    • No
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, after customizing the routes for console and downloads, the downloads route did not update in the `ConsoleCLIDownloads` link and pointed to the default downloads route. With this update, the `ConsoleCLIDownloads` link updates when the custom downloads route is set. (link:https://issues.redhat.com/browse/OCPBUGS-12990[*OCPBUGS-12990*])
      Show
      * Previously, after customizing the routes for console and downloads, the downloads route did not update in the `ConsoleCLIDownloads` link and pointed to the default downloads route. With this update, the `ConsoleCLIDownloads` link updates when the custom downloads route is set. (link: https://issues.redhat.com/browse/OCPBUGS-12990 [* OCPBUGS-12990 *])
    • Bug Fix
    • Done

      Description of problem:

      After customizing the routes for Console and Downloads, the `Downloads` route is not being updated within the `https://custom-console-route/command-line-tools` and still pointing the old/default downloads route.

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

       

      How reproducible:

      Always

      Steps to Reproduce:

      1. Customize Console and Downloads routes.
      2. Access the web-console using custom console route.
      3. Go to Command-line-tools.
      4. Try to access the downloads urls.

      Actual results:

      While accessing the downloads urls, it is pointing towards default/old downloads route

      Expected results:

      While accessing the downloads urls, it should be pointing towards custom downloads route

      Additional info:

       

            [OCPBUGS-12990] Custom `Downloads` route is not being updated within the `https://custom-console-route/command-line-tools`

            Errata Tool added a comment -

            Since the problem described in this issue should be resolved in a recent advisory, it has been closed.

            For information on the advisory (Important: OpenShift Container Platform 4.14.0 bug fix and security update), and where to find the updated files, follow the link below.

            If the solution does not work for you, open a new bug report.
            https://access.redhat.com/errata/RHSA-2023:5006

            Errata Tool added a comment - Since the problem described in this issue should be resolved in a recent advisory, it has been closed. For information on the advisory (Important: OpenShift Container Platform 4.14.0 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2023:5006

            Jon Jackson added a comment -

            jcaiani@redhat.com rhn-support-hfukumot et al, I've opened a PR to backport this fix to 4.13. We'll have to wait for that to merge before a 4.12 backport can happen.

            Jon Jackson added a comment - jcaiani@redhat.com rhn-support-hfukumot et al, I've opened a PR to backport this fix to 4.13. We'll have to wait for that to merge before a 4.12 backport can happen.

            rh-ee-jonjacks would you mind taking a look at this backport request? cc: jhadvig@redhat.com rhn-support-hfukumot 

            Joseph Caiani added a comment - rh-ee-jonjacks would you mind taking a look at this backport request? cc: jhadvig@redhat.com rhn-support-hfukumot  

            Xiyun Zhao added a comment -

            This bug has been verified on payload 4.14.0-0.nightly-2023-05-18-231932

            Verification Step:
            1. Customize Console and Downloads routes in /k8s/cluster/config.openshift.io~v1~Ingress/cluster
               Add below information in the YAML file
               spec:
                componentRoutes:
                  - hostname: >-
                      <custom-console-route URL>
                    name: console
                    namespace: openshift-console
                  - hostname: >- 
                      <custom-console-route URL>
                    name: downloads 
                    namespace: openshift-console
            2. Access the web-console using custom console route.
            3. Go to Command-line-tools page: /command-line-tools
            4. Try to access the downloads urls. eg:'Download oc for Mac for ARM 64'
            5. Check the urls
            
            Result:
            5. Now the downloads urls is point towards to custom downloads route URL
            
            Reference: Make sure the downloads-custom is take effect
               For example:
               $ oc get routes -n openshift-console
                 NAME               HOST/PORT                                                                     PATH   SERVICES    PORT    TERMINATION          WILDCARD
                 console            console-openshift-console.apps.ci-ln-v29j3p2-76ef8.aws-2.ci.openshift.org            console     https   reencrypt/Redirect   None
                 console-custom     HostAlreadyClaimed                                                                   console     https   reencrypt/Redirect   None
                 downloads          downloads-openshift-console.apps.ci-ln-v29j3p2-76ef8.aws-2.ci.openshift.org          downloads   http    edge/Redirect        None
                downloads-custom   console-openshift-console.apps.qe-uidaily-0519.qe.devcluster.openshift.com           downloads   http    edge/Redirect        None

            Xiyun Zhao added a comment - This bug has been verified on payload 4.14.0-0.nightly-2023-05-18-231932 Verification Step: 1. Customize Console and Downloads routes in /k8s/cluster/config.openshift.io~v1~Ingress/cluster Add below information in the YAML file   spec: componentRoutes: - hostname: >- <custom-console-route URL> name: console namespace: openshift-console      - hostname: >- <custom-console-route URL> name: downloads namespace: openshift-console 2. Access the web-console using custom console route. 3. Go to Command-line-tools page: /command-line-tools 4. Try to access the downloads urls. eg: 'Download oc for Mac for ARM 64' 5. Check the urls Result: 5. Now the downloads urls is point towards to custom downloads route URL Reference: Make sure the downloads-custom is take effect For example:   $ oc get routes -n openshift-console NAME               HOST/PORT                                                                     PATH   SERVICES    PORT    TERMINATION          WILDCARD console            console-openshift-console.apps.ci-ln-v29j3p2-76ef8.aws-2.ci.openshift.org            console     https   reencrypt/Redirect   None console-custom     HostAlreadyClaimed                                                                   console     https   reencrypt/Redirect   None downloads          downloads-openshift-console.apps.ci-ln-v29j3p2-76ef8.aws-2.ci.openshift.org          downloads   http    edge/Redirect        None downloads-custom   console-openshift-console.apps.qe-uidaily-0519.qe.devcluster.openshift.com           downloads   http    edge/Redirect        None

              rh-ee-jonjacks Jon Jackson
              rhn-support-gio Ginilekshmi A O
              Xiyun Zhao Xiyun Zhao
              Olivia Payne Olivia Payne
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: