Nova recreates instance directory after migration/resize
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Maciej Jozefczyk | ||
Ocata |
Fix Committed
|
Low
|
Lee Yarwood |
Bug Description
Description
===========
Nova recreates instance directory on source host after successful migration/resize when using QEMU Qcow2 file drives.
Nova after migration executes method driver.
This method cleans instance directory (instance directory with suffix _resize):
nova/virt/
1115 if os.path.
1116 # Deletion can fail over NFS, so retry the deletion as required.
1117 # Set maximum attempt as 5, most test can remove the directory
1118 # for the second time.
1119 utils.execute('rm', '-rf', target, delay_on_
1120 attempts=5)
After that Nova executes:
1122 root_disk = self.image_
root_disk is used to remove rdb snapshots, but during execution of self.image_
Flow:
driver.
Qcow2.resolve_
344 if self.disk_info_path is not None:
345 fileutils.
346 write_to_
Steps to reproduce
==================
- spawn instance
- migrate/resize instance
- check that instance dir on old host still exists (example: /home/instances
Expected result
===============
After migration directory /home/instances
Actual result
=============
Nova leaves instance directory after migration/resize.
Environment
===========
1. Openstack Newton (it seems master is affected too).
2. Libvirt + KVM
3. Qcow2 file images on local disk.
Changed in nova: | |
assignee: | nobody → Maciej Jozefczyk (maciej.jozefczyk) |
Changed in nova: | |
status: | New → In Progress |
Changed in nova: | |
importance: | Undecided → Low |
tags: | added: libvirt migrate |
Fix proposed to branch: master /review. openstack. org/437356
Review: https:/