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

oc adm upgrade --to-multi-arch on a multi-arch cluster should return an error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 4.13
    • oc / update
    • Moderate
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      applying oc adm upgrade --to-multi-arch on a cluster which is already multi-arch returns:
      Requested update to multi cluster architecture
      and resets .spec.desiredUpdate to
      desiredUpdate:
          architecture:    Multi
          force:    false
          image:    
          version:    4.13.0-ec.2   <--whatever version cluster is currently on
      needlessly, which:
      a. clears whatever was set in .spec.desiredUpdate at the moment
      b. provides no indication whatsoever that the cluster is already multi and not going to progress

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

      4.13.0-ec.2 but seen elsewhere

      How reproducible:

      100%

      Steps to Reproduce:

      1. install multi-arch cluster
      2. apply the aforementioned command
      

      Actual results:

      a success message returned by the command
      .spec.desiredUpgrade got overridden to aforementioned values 

      Expected results:

      at least a warning in stderr, better yet a guard like --allow-upgrade-with-warnings or such

       

            lmohanty@redhat.com Lalatendu Mohanty
            evakhoni@redhat.com Evgeni Vakhonin
            Evgeni Vakhonin Evgeni Vakhonin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: