Bug 2042858 - LiveMigration with postcopy misbehave when failure occurs
Summary: LiveMigration with postcopy misbehave when failure occurs
Keywords:
Status: CLOSED DUPLICATE of bug 2042402
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Virtualization
Version: 4.10.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.11.0
Assignee: lpivarc
QA Contact: Kedar Bidarkar
URL:
Whiteboard:
: 2042860 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-20 09:26 UTC by lpivarc
Modified: 2022-01-28 22:12 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-01-28 22:12:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description lpivarc 2022-01-20 09:26:48 UTC
This bug was initially created as a copy of Bug #2042402

I am copying this bug because it affects all versions.



Description of problem:
Detected by following test - VM Live Migration Starting a VirtualMachineInstance migration postcopy [test_id:4747] should migrate using cluster level config for postcopy


Log of failure to switch to post-copy:

{"component":"virt-launcher","kind":"","level":"info","msg":"Starting post copy mode for migration","name":"testvmi-2ldvf","namespace":"kubevirt-test-default1","pos":"live-migration-source.go:577","timestamp":"2022-01-07T10:26:36.433194Z","uid":"cb664df9-edee-44b1-a8d4-32aa345cac1d"}
{"component":"virt-launcher","level":"error","msg":"internal error: unable to execute QEMU command 'migrate-start-postcopy': Postcopy must be started after migration has been started","pos":"qemuMonitorJSONCheckErrorFull:418","subcomponent":"libvirt","thread":"44","timestamp":"2022-01-07T10:26:36.433000Z"}
{"component":"virt-launcher","kind":"","level":"error","msg":"failed to start post migration","name":"testvmi-2ldvf","namespace":"kubevirt-test-default1","pos":"live-migration-source.go:582","reason":"virError(Code=1, Domain=10, Message='internal error: unable to execute QEMU command 'migrate-start-postcopy': Postcopy must be started after migration has been started')","timestamp":"2022-01-07T10:26:36.433875Z","uid":"cb664df9-edee-44b1-a8d4-32aa345cac1d"}

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

How reproducible:
Hard to reproduce, Need to re-run the testcase multiple times to hit this error.
Switch to post-copy needs to fail.

Steps to Reproduce:
1. update cluster-level config for postcopy
2. LiveMigrate a VM with "postcopy" migration.
3. VM fails to LiveMigrate.

Actual results:
reason":"virError(Code=1, Domain=10, Message='internal error: unable to execute QEMU command 'migrate-start-postcopy': Postcopy must be started after migration has been started')

"msg":"internal error: unable to execute QEMU command 'migrate-start-postcopy': Postcopy must be started after migration has been started"

1. We fail to sync guest time in this case.
2. Migration will be executed but not in post-copy mode.
3. Hostdevices(SRIOV) will not be attached (This is already known bug)

Expected results:

Migration with postcopy is always successful and it is executed in postcopy if needed.


Additional info:

Comment 1 sgott 2022-01-28 22:08:50 UTC
*** Bug 2042860 has been marked as a duplicate of this bug. ***

Comment 2 sgott 2022-01-28 22:12:02 UTC
Marking this BZ as a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=2042402 because both clones are targetted to the same release.

*** This bug has been marked as a duplicate of bug 2042402 ***


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