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

oc rollout undo deployment using imagestreams, buildconfig and build is not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • None
    • 4.13, 4.14, 4.15
    • ImageStreams
    • None
    • False
    • Hide

      None

      Show
      None

      Description of problem:

         When you execute the undo deployment(oc rollout undo deploy/<name>) won't works. The version doesn't rollback 

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

          4.13, 4.14, 4.15

      How reproducible:

          Create an application builded using imagestreams. 

      Steps to Reproduce:

      Follow the steps below to reproduce the error: 
      
      mkdir lab 
      cd lab 
      ls -la
      oc new-project lab
      oc new-app httpd --name helloworld --binary
      echo "hello world" > index.html
      oc start-build helloworld --from-dir . --follow
      oc expose svc/helloworld
      oc get routes
      URL=$(oc get route helloworld -o jsonpath='{.spec.host}' )
      curl $URL #show hello world 
      echo "hello world (undo lab)" > index.html
      oc start-build helloworld --from-dir . --follow
      curl $URL #show hello world (undo lab) 
      oc rollout undo deploy/helloworld
      curl $URL # must show hello world      

      Actual results:

          The rollout undo is not working 

      Expected results:

          The rollout to back the latest version 

      Additional info:

          

              fmissi Flavian Missi
              rhn-support-rneumann Raphael Neumann
              Wen Wang Wen Wang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: