During volume detach, volume's shadow VM might need to
be relocated if storage DRS moved the Nova instance along
with volume's vmdk. The shadow VM relocate will fail with
FileNotFoundException if SDRS moved the volume vmdk instead
of copying it to the new location. This patch fixes the
problem by removing the virtual disk device of shadow VM if
relocate failed due to missing vmdk file. After removing the
device, relocate is attempted again.
Reviewed: https:/ /review. openstack. org/159738 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=24488387a1e 1817e82a1a7a3c1 d9d9c7bdf5d165
Committed: https:/
Submitter: Jenkins
Branch: master
commit 24488387a1e1817 e82a1a7a3c1d9d9 c7bdf5d165
Author: Vipin Balachandran <email address hidden>
Date: Thu Feb 5 16:37:38 2015 +0530
VMware: Handle missing vmdk during volume detach
During volume detach, volume's shadow VM might need to dException if SDRS moved the volume vmdk instead
be relocated if storage DRS moved the Nova instance along
with volume's vmdk. The shadow VM relocate will fail with
FileNotFoun
of copying it to the new location. This patch fixes the
problem by removing the virtual disk device of shadow VM if
relocate failed due to missing vmdk file. After removing the
device, relocate is attempted again.
Closes-Bug: #1425502 1dc7d78ec46c948 c8db451632b
Change-Id: I40a25abe1ce96f