live-migration-permit-post-copy mode does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Nova Compute Charm |
Fix Released
|
Undecided
|
Erlon R. Cruz |
Bug Description
Description
===========
Some customers have noted that some VMs never complete a
live migration. The VM's memory copy keeps oscillating
around 1-10% but never completes. After changing
live-migration-
converge and migrate successfully as this feature describes it
should.
Workaround 1: It's possible to complete the process if you log into the source
host and run the QMP command[1]:
virsh qemu-monitor-
Workaround 2: The migration finishes if you run 'nova live-migration-
I believe this can also be a libvirt bug given that I don't see any "migrate-
coming from nova/libvirt logs[4], but only after I manually triggered it via the execute
command above, at 2021-11-12 19:14:08.
Steps to reproduce
==================
* Set up an OpenStack deployment with live_migration_
* Create a large VM (8+ CPUs) and install stress-ng
* Run stress-ng:
nohup stress-ng --vm 4 --vm-bytes 10% --vm-method write64 --vm-addr-method pwr2 -t 1h &
* Migrate the VM, and check for the source host logs messages like:
'Migration running for \d+ secs, memory \d+% remaining'
This should be oscillating like describing and migration not completing
* Complete or cancel the above migration, set live_migration_
restart nova services on the computes, and re-do the operation
Expected result
===============
Migration should complete 100% of times
Actual result
=============
The migration does not complete and VM's memory is never copied.
Environment
===========
1. Exact version of OpenStack you are running[8]
21.2.1-0ubuntu1
2. Which hypervisor did you use[8]?
qemu-kvm: 4.2-3ubuntu6.18
libvirt-daemon: 6.0.0-0ubuntu8.14
2. Which storage type did you use?
Shared Ceph
3. Which networking type did you use?
OpenvSwitch L3HA
Logs & Configs
==============
[1] QMP Commands: https:/
[2] Migration (completed manually with workaround 1) logs: https:/
[3] nova-compute.log src: https:/
[4] libvirt.log src: https:/
[5] Migration list: https:/
[6] Nova.conf dst host: https:/
[7] Nova.conf src host: https:/
[8] Package versions: https:/
[9] VM info: https:/
affects: | nova → charm-nova-compute |
summary: |
- live_migration_permit_post_copy mode does not work + live-migration-permit-post-copy mode does not work |
description: | updated |
Changed in charm-nova-compute: | |
assignee: | nobody → Erlon R. Cruz (sombrafam) |
Changed in charm-nova-compute: | |
milestone: | none → 22.04 |
Changed in charm-nova-compute: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. opendev. org/c/openstack /charm- nova-compute/ +/819890
Review: https:/