nova/nova/tests/unit/virt/xenapi
Brooks Kaminski dba00dbe11 XenAPI/Stops the migration of volume backed VHDS
This commit aims to correct problems with the resize_up codebase that allows
the snapshot and migration of volume backed VDI/VHDs.  Since these are empty
stub disks, and the XenAPI does not allow these VDIs to be snapped, this results
in an SR_OPERATION_NOT_ALLOWED or similar error on attempt.

This change adds a check into the _process_ephemeral_chain_recursive method to
run the current userdevice through volume_utils.is_booted_from_volume.  To
achieve this, the method has been opened in scope to accept custom user_device
objects.  In a future commit we will need to rename this method for clarity
and correct its dependancies that call it.  I have added a TODO for this to be
done by myself. The check will ensure that the userdevice is not volume backed
and then continue to snapshot and migrate the disk as needed, else increment
and move on.

Closes-Bug: #1745072
Change-Id: I7cd2977c8268c1f73062b5d0b2b68ea686db99fe
(cherry picked from commit eefb20e465)
2018-09-20 19:57:37 +00:00
..
image Remove mox in nova/tests/unit/virt/xenapi/stubs.py 2018-06-21 23:59:39 +00:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
stubs.py Merge "Remove mox in nova/tests/unit/virt/xenapi/stubs.py" 2018-06-29 23:13:42 +00:00
test_agent.py XenAPI: use os-xenapi 0.2.0 in nova 2017-06-06 22:01:24 -07:00
test_driver.py Remove mox in nova/tests/unit/virt/xenapi/stubs.py 2018-06-21 23:59:39 +00:00
test_network_utils.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_vgpu.py XenAPI: create vGPU for instance 2017-12-18 08:09:20 -08:00
test_vif.py xenapi: drop deprecated vif_driver config option 2018-06-11 14:29:47 -04:00
test_vm_utils.py Remove mox in nova/tests/unit/virt/xenapi/stubs.py 2018-06-21 23:59:39 +00:00
test_vmops.py XenAPI/Stops the migration of volume backed VHDS 2018-09-20 19:57:37 +00:00
test_volume_utils.py Remove mox in nova/tests/unit/virt/xenapi/stubs.py 2018-06-21 23:59:39 +00:00
test_volumeops.py refactor: move down ``dev_number`` in xenapi 2016-12-05 13:19:23 -06:00
test_xenapi.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
vm_rrd.xml move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00