Retry after hitting libvirt error code VIR_ERR_OPERATION_INVALID in live migration.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
High
|
Fan Zhang |
Bug Description
Description
===========
When migration of a persistent guest completes, the guest merely shuts
off, but libvirt unhelpfully raises an VIR_ERR_
code, in nova, we pretend this case means success. But if we are in the
middle of a live migration, and sadly qemu-kvm process is killed
accidentally, such as by host OOM, which happens rarely in our environment but it does happen few times, domain state is SHUTOFF and then we will get
VIR_ERR_
Under the circumstance, migration should be considered failed, otherwise
post_live_
IMHO, we may need to `pretend` the migration job is still running after
hitting VIR_ERR_
succeeds finally, we won't get VIR_ERR_
retries, but the error code still happens if qemu-kvm process is killed
accidentally.
Steps to reproduce
==================
* Do nova live-migration <uuid> on controller node.
* Once live migration monitor on source compute node starts to get JobInfo, kill the qemu-kvm process on source host.
* Check if post_live_migration on source host starts to execute.
* Check if post_live_migration on destination host starts to execute.
* Check image files on both source host and destination host.
Expected result
===============
Migration should be consider failed.
Actual result
=============
Post live migration on source host starts to execute and clean instance files. Instance disappears on both source and destination host.
Environment
===========
1. My environment is packstack with one controller nodes, two compute nodes, and openstack nova release is Queens.
2. Libvirt + KVM
Logs & Configs
==============
Some logs after qemu-kvm process is killed.
...
2018-09-21 14:08:34.180 11099 DEBUG nova.virt.
2018-09-21 14:08:34.305 11099 DEBUG nova.virt.
2018-09-21 14:08:34.886 11099 DEBUG nova.virt.
2018-09-21 14:08:34.887 11099 INFO nova.virt.
2018-09-21 14:08:34.887 11099 INFO nova.compute.
...
Changed in nova: | |
assignee: | nobody → Fan Zhang (fanzhang) |
description: | updated |
description: | updated |
tags: | added: live-migration |
tags: | added: libvirt |
Fix proposed to branch: master /review. openstack. org/612272
Review: https:/