]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Skip check whether volume is local if it's None
authorpeter_wang <peter.wang13@emc.com>
Mon, 14 Dec 2015 03:37:41 +0000 (22:37 -0500)
committerpeter_wang <peter.wang13@emc.com>
Tue, 15 Dec 2015 08:17:16 +0000 (03:17 -0500)
commitfbcd43a6880295fdc8424b0a63ac8444a530883b
tree3886fa2f4f931788df7fd29bfe88d61b718a6a86
parente7965dc323c3d9a97d6cddfad48dc36b7792f6c8
Skip check whether volume is local if it's None

When force deleting a consistency group containing volumes,
manager.py tries to extract host field to check whether the volume
is local to this cinder node before deleting the volume.

Above logic is invalid if host field of faulted volume is None.

This fix will bypass above check to allow deletion of the volume.

Change-Id: I477c80c21c0b554b69c6222fb4fb0461813ac2bb
Closes-Bug: 1524195
cinder/volume/manager.py