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

[IBU] Need to add to the doc the steps to manually switch the default ostree

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Undefined Undefined
    • None
    • 4.15.z
    • Documentation / CNF
    • No
    • False
    • Hide

      None

      Show
      None

      Situation: attempted rollback - it failed and the API is not UP. After debugging I want to rollback.
      This can be done with:
      ostree admin status (shows the available entries)
      ostree admin set-default <INDEX> - change the default entry

      [root@target-0-0 ~]# ostree admin status
      * rhcos_4.15.5 20b9836602639c4cc6ab18469eb48584c7fa1becc665bab99bface3195c54363.0
          origin: <unknown origin type>
        rhcos e130404f1980d087ffa4417a839d360e943d9e9af10961d087bb94c2ad6d038b.1
          origin: <unknown origin type>
      
      
      [root@target-0-0 ~]# ostree admin set-default 1
      Bootloader updated; bootconfig swap: yes; bootversion: boot.0.1, deployment count change: 0
      
      
      [root@target-0-0 ~]# ostree admin status
        rhcos e130404f1980d087ffa4417a839d360e943d9e9af10961d087bb94c2ad6d038b.1
          origin: <unknown origin type>
      * rhcos_4.15.5 20b9836602639c4cc6ab18469eb48584c7fa1becc665bab99bface3195c54363.0
          origin: <unknown origin type>
      

            rhn-support-amolnar Alexandra Molnar
            achuzhoy@redhat.com Alexander Chuzhoy
            Yang Liu Yang Liu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: