<div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10.5pt" ><div dir="ltr" ><div>I am hitting a silent error while trying to detach a volume from a running VM on Ubuntu Xenial KVM. While I am using OpenStack for this, the OpenStack code is calling into the libvirt module to do the detach from the transient / live domain and libvirt is failing to remove the disk from the running domain and is not putting any errors in libvirtd logs.</div>
<div>The OpenStack error is "DeviceDetachFailed: Device detach failed for vdb: Unable to detach from guest transient domain."</div>
<div> </div>
<div>I have discovered this is a guest OS issue. I tried the following guest OSes with Ubuntu Xenial as the host OS:</div>
<div> </div>
<div>Silent detach failure / fail to detach:<br>Ubuntu 14.04 ppc64le daily build of Ubuntu cloud image<br>Ubuntu 16.04 ppc64le daily build of Ubuntu cloud image</div>
<div> </div>
<div>Live detach succeeds:<br>Ubuntu 16.10 ppc64le daily build of Ubuntu cloud image<br>Ubuntu 17.04 ppc64le daily build of Ubuntu cloud image<br>CentOS 7.3</div>
<div> </div>
<div>What I am trying to achieve is to get the live detach to work on Xenial (16.04) and am at a loss as to what packages or processes may be involved in the differences between 16.04 and 16.10 where it works. I have checked the kernel and both 16.04 and 16.10 are both using a 4.8.x level.</div>
<div> </div>
<div>In all cases the disk trying to be detached is not in use. They are blank with no file system on them. They are not mounted. The same set of steps is taken to attach, reboot, detach, between the working and non-working OS levels above.</div>
<div> </div>
<div>Does any one have hints on what could be causing the silent detach failure on Xenial? What packages I should look at updating beyond what the Ubuntu daily build has? Note I have already tried doing upgrade of all packages, including updating from a recent UCA repo.</div>
<div> </div>
<div>Additionally, does anyone know what to set (and where) to get the reason libvirt is not detaching the volume from the live domain? I have already tried enabling the logging documented here [1].</div>
<div>[1] <a href="https://wiki.libvirt.org/page/DebugLogs" >https://wiki.libvirt.org/page/DebugLogs</a></div></div></div><BR>