Bug 1939987 - Live Migrating a PAUSED VM gets it into UNPAUSED state on the migrated node
Summary: Live Migrating a PAUSED VM gets it into UNPAUSED state on the migrated node
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Virtualization
Version: 2.6.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.8.0
Assignee: Vladik Romanovsky
QA Contact: Kedar Bidarkar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-17 12:01 UTC by Kedar Bidarkar
Modified: 2021-07-27 14:29 UTC (History)
4 users (show)

Fixed In Version: virt-operator-container-v4.8.0-60 hco-bundle-registry-container-v4.8.0-375
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-27 14:28:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:2920 0 None None None 2021-07-27 14:29:15 UTC

Description Kedar Bidarkar 2021-03-17 12:01:11 UTC
Description of problem:

[kbidarka@localhost nfs]$ oc get vmi -o wide 
NAME            AGE    PHASE     IP             NODENAME                                         LIVE-MIGRATABLE   PAUSED
vm-nfs-rhel83   3m7s   Running   xxx.yyy.zzz.129   infra-07.redhat.com   True         
     
[kbidarka@localhost nfs]$ virtctl pause vmi vm-nfs-rhel83
VMI vm-nfs-rhel83 was scheduled to pause

[kbidarka@localhost nfs]$ oc get vmi -o wide 
NAME            AGE     PHASE     IP             NODENAME                                         LIVE-MIGRATABLE   PAUSED
vm-nfs-rhel83   3m26s   Running   xxx.yyy.zzz.129   infra-07.redhat.com   True              True

[kbidarka@localhost migration]$ oc apply -f migration-pause-unpause-live-migrate.yaml
virtualmachineinstancemigration.kubevirt.io/job11-pause-unpause-live-migrate2 created

[kbidarka@localhost migration]$ oc get vmi 
NAME            AGE     PHASE     IP             NODENAME
vm-nfs-rhel83   4m21s   Running   xxx.yyy.zzz.129   infra-07.redhat.com

[kbidarka@localhost migration]$ oc get vmi -o wide 
NAME            AGE     PHASE     IP            NODENAME                                         LIVE-MIGRATABLE   PAUSED
vm-nfs-rhel83   4m27s   Running   xxx.yyy.zzz.16   infra-06.redhat.com   True      
        
[kbidarka@localhost migration]$ oc get pods
NAME                                READY   STATUS      RESTARTS   AGE
virt-launcher-vm-nfs-rhel83-sc5hz   0/1     Completed   0          4m40s
virt-launcher-vm-nfs-rhel83-t2kxx   1/1     Running     0          24s

[kbidarka@localhost migration]$ oc rsh virt-launcher-vm-nfs-rhel83-t2kxx
sh-4.4# virsh list --transient
 Id   Name   State
--------------------
sh-4.4# virsh list --persistent
 Id   Name                    State
---------------------------------------
 1    default_vm-nfs-rhel83   running
sh-4.4# exit
exit



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

Tested with CNV-2.6.0

How reproducible:
Always

Steps to Reproduce:
1.Create and Start a Live-Migratable VM
2. Pause the VMI and Live Migrate it
3.

Actual results:
VMI is in UNPAUSED state, on the Migrated node 

Expected results:
VMI should remain in PAUSED state, after the Migration.

Additional info:

Live Migration could happen unintentionally too, that is via a Node Drain, Descheduler or other things, so expect a Paused VM/VMI to remain in Paused state even after Live Migration.

Comment 1 Vladik Romanovsky 2021-04-14 15:23:25 UTC
https://github.com/kubevirt/kubevirt/pull/5384

Comment 2 sgott 2021-06-01 20:19:13 UTC
Re-targetting this to the current release as it made it in.

Comment 3 sgott 2021-06-07 12:00:15 UTC
To verify, follow steps to reproduce in description.

Comment 5 Kedar Bidarkar 2021-06-08 18:47:09 UTC
Summary: Paused VMI now remains in Paused state even after the Live-Migration.

Comment 8 errata-xmlrpc 2021-07-27 14:28:41 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Virtualization 4.8.0 Images), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:2920


Note You need to log in before you can comment on or make changes to this bug.