live migration (block-migrate) may failed if instance image is deleted in glance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Alexandre arents | ||
Queens |
Fix Committed
|
Medium
|
Lee Yarwood | ||
Rocky |
Fix Committed
|
Medium
|
Lee Yarwood | ||
Stein |
Fix Committed
|
Medium
|
Lee Yarwood |
Bug Description
Description
===========
When we run live block migration on instance with a deleted glance image,
it may failed with following logs:
-- nova-compute-log: --
2019-05-10 11:06:27.417 248758 ERROR nova.virt.
2019-05-10 11:06:27.566 248758 ERROR nova.virt.
-- on target host /var/log/
/build/
/build/
/build/
Seems that pre_live_migration task do not setup correctly target instance disk:
-because glance image is not existant, it fallbacks to remote host copy method.
-in this context, image.cache() is called without instance disk size parameter.
-consequence is instance disk is not resized to the correct size and remain with the size of backing file, so the disk is too small, making failed libvirt live migration.
Steps to reproduce
==================
* Spawn qcow2 instance with glance image size << of flavor disk instance size
* generate few user data in instance.
* delete glance image.
* run live block migration.
Environment
===========
Issue observed in Newton, still present in master.
tags: | added: libvirt live-migration |
Changed in nova: | |
importance: | Undecided → Medium |
Fix proposed to branch: master /review. opendev. org/659054
Review: https:/