-
Bug
-
Resolution: Done-Errata
-
Major
-
CNV v4.12.5
-
5
-
False
-
-
False
-
POST
-
---
-
---
-
-
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
-
No
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
- oc get vmi
NAME AGE PHASE IP NODENAME READY
virtualmachineinstance.kubevirt.io/coreos 35d Running 10.130.1.6 openshift-master-regulus-2 True
- oc get vm coreos -o yaml | grep -i strategy
runStrategy: RerunOnFailure
Scenario 1 : After Reboot
- oc get vmi
NAME AGE PHASE IP NODENAME READY
virtualmachineinstance.kubevirt.io/coreos 3m45s Running 10.130.1.150 openshift-master-regulus-2 True
- 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
- 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
- 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
- external trackers
- links to
-
RHEA-2024:125986 OpenShift Virtualization 4.14.3 Images