Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-32673

[2234355] VM spec.runStrategy change setting not persisted after VM Reboot

XMLWordPrintable

    • CNV Virtualization Sprint 243, CNV Virtualization Sprint 244, CNV Virtualization Sprint 245, CNV Virtualization Sprint 246, CNV Virtualization Sprint 247, CNV Virtualization Sprint 248
    • High

      Description of problem:

      Runstrategy of the VM is not changing ,when rebooting a VM (which is already running with the runstrategy as RerunOnFailure). But the runstrategy getting modified whenwe perform stop and start of the VM.

      Environment : OCP- 4.12.18 CNV-4.12.5

      How reproducible:

      1.Created a VM with runstrategy as RerunOnFailure

      1. oc get vmi

      NAME AGE PHASE IP NODENAME READY
      virtualmachineinstance.kubevirt.io/coreos 35d Running 10.130.1.6 openshift-master-regulus-2 True

      1. oc get vm coreos -o yaml | grep -i strategy
        runStrategy: RerunOnFailure

      Scenario 1 : After Reboot

      1. oc get vmi

      NAME AGE PHASE IP NODENAME READY
      virtualmachineinstance.kubevirt.io/coreos 3m45s Running 10.130.1.150 openshift-master-regulus-2 True

      1. oc get vm coreos -o yaml | grep -i strategy
        runStrategy: RerunOnFailure <<<
        No change in runStrategy

      Scenario 2 : After Stop and start

      Stopped the VM from GUI console

      1. oc get vmi coreos; oc get vm coreos -o yaml | grep -i strategy
        Error from server (NotFound): virtualmachineinstances.kubevirt.io "coreos" not found
        runStrategy: Halted <<<<

      Starting the VM from GUI console

      1. oc get vmi coreos; oc get vm coreos -o yaml | grep -i strategy

      NAME AGE PHASE IP NODENAME READY
      coreos 24s Running 10.130.1.151 openshift-master-regulus-2 True

      runStrategy: Always <<<<

      Actual results:

      VM spec.runStrategy setting got modified after VM Stop and start

      Expected results: Persistent edit of VM spec.runStrategy setting after VM reboot

            jelejosne Jed Lejosne
            rhn-support-mam Manju M
            Vasiliy Sibirskiy Vasiliy Sibirskiy
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: