diff options
author | Rafi Khardalian <rafi@metacloud.com> | 2013-06-13 05:09:45 +0000 |
---|---|---|
committer | Rafi Khardalian <rafi@metacloud.com> | 2013-06-27 18:15:55 +0000 |
commit | e71081b856b06513cc1e56a9adb2a619967f0eae (patch) | |
tree | 7e3e2ff17e2a54f8b9bcc743b30e91e9118bf1bc /nova/notifications.py | |
parent | 327cb0cc545b215c84beab1ff7e449094c79d184 (diff) | |
download | nova-e71081b856b06513cc1e56a9adb2a619967f0eae.tar.gz nova-e71081b856b06513cc1e56a9adb2a619967f0eae.tar.xz nova-e71081b856b06513cc1e56a9adb2a619967f0eae.zip |
Fix resizes with attached file-based volumes
Bug 1190364
get_instance_disk_info() now takes an additional, optional argument
of block_device_info. When passed in, we use it to filter out
volumes, such that they are not returned. Previously, any devices
classified as "file" as parsed from the instance XML were considered
local disks. This assumption is incorrect, since some volumes are
simply files, rather than block devices.
Added a new test, based almost entirely off the existing test case
for this function, which represents an XML file with two fake
file-based (NFS-like) volumes and associated block_device_info to
claim those volumes.
Change-Id: I4809a8fd68eb0f709347aa7cad0fa85389ade41c
Diffstat (limited to 'nova/notifications.py')
0 files changed, 0 insertions, 0 deletions