The compute node has left the attachment information after the
encryption fails. This patch fixes this by ensuring the volume is
disconnected when an exception occurs.
Change-Id: I9d652f182d83a2557ff6ed0b21c69a735c3f9840
Closes-Bug: #1812945
(cherry picked from commit 79bcb4e21b7909f3e989d4fbcf68ac268680b865)
(cherry picked from commit d773e3b1469a76f129d2f7a4edab68d007f3f928)
(cherry picked from commit 2cde44659c42ebab25259e2b05cd5c2ffe38c131)
Reviewed: https:/ /review. opendev. org/653033 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=ee52fb12bb4 2b80ace19ab898b ac008076cb67e6
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit ee52fb12bb42b80 ace19ab898bac00 8076cb67e6
Author: yenai <email address hidden>
Date: Wed Jan 23 11:02:33 2019 +0800
libvirt: disconnect volume when encryption fails
The compute node has left the attachment information after the
encryption fails. This patch fixes this by ensuring the volume is
disconnected when an exception occurs.
Change-Id: I9d652f182d83a2 557ff6ed0b21c69 a735c3f9840 3e989d4fbcf68ac 268680b865) 129d2f7a4edab68 d007f3f928) b25259e2b05cd5c 2ffe38c131)
Closes-Bug: #1812945
(cherry picked from commit 79bcb4e21b7909f
(cherry picked from commit d773e3b1469a76f
(cherry picked from commit 2cde44659c42eba