summaryrefslogtreecommitdiffstats
path: root/nova/openstack
diff options
context:
space:
mode:
authorMandell Degerness <mdegerne@gmail.com>2012-03-02 21:25:25 +0000
committerMandell Degerness <mdegerne@gmail.com>2012-03-26 20:36:04 +0000
commit30aec4a3f67144d55caded298c691503a6a57ed1 (patch)
tree2318fdc158cc19513db2118ff6d0d31c8ca587f2 /nova/openstack
parent3433fd65d5f70d83ffa4db013f96c55970ea293e (diff)
downloadnova-30aec4a3f67144d55caded298c691503a6a57ed1.tar.gz
nova-30aec4a3f67144d55caded298c691503a6a57ed1.tar.xz
nova-30aec4a3f67144d55caded298c691503a6a57ed1.zip
Clean up the shared storage check (#891756)
The shared storage check for live and block migration is currently very confusing e.g. * The mounted_on_same_shared_storage() method raises FileNotFound for the caller to catch rather than just returning a boolean to indicate whether the hosts share storage * mounted_on_same_shared_storage() has a "filename is not None" check in its finally clause which doesn't make sense * InvalidSharedStorage is not raised in the live migration case, * instead FileNotFound is raised Clean all this up by having mounted_on_same_shared_storage() simply return a boolean and have simple logic to raise InvalidSharedStorage for live migration where no shared storage is available or for block migration where shared storage is available. Change-Id: I96f354fe41d9ce77c4cc98903f0d5a9de99ac4f6
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions