libvirt: Always disconnect volumes after libvirtError exceptions
Building on Ib440f4f2e484312af5f393722363846f6c95b760 we should always
attempt to disconnect volumes from the host when exceptions are thrown
while attempting to attach a volume to a domain. This was previously
done for generic exceptions but not for libvirtError exceptions.
Reviewed: https:/ /review. opendev. org/655712 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=091a910576d 9b580678f1881ff fa425ab4632f48
Committed: https:/
Submitter: Zuul
Branch: master
commit 091a910576d9b58 0678f1881fffa42 5ab4632f48
Author: Lee Yarwood <email address hidden>
Date: Thu Apr 25 15:34:41 2019 +0100
libvirt: Always disconnect volumes after libvirtError exceptions
Building on Ib440f4f2e48431 2af5f3937223638 46f6c95b760 we should always
attempt to disconnect volumes from the host when exceptions are thrown
while attempting to attach a volume to a domain. This was previously
done for generic exceptions but not for libvirtError exceptions.
Closes-Bug: #1826523 92e7d0398434b9a 4b255940213
Change-Id: If21230869826c9