<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>One more thing:</p>
<p>That rpadlpar module comes along with the <b>linux-image-extra-generic-<version>
</b>package, so make sure to have that. (credit to Folco again on
that one - he helped me with a similar issue not long back). A lot
of "minimal" cloud images don't come with the extra package.<br>
</p>
<p><br>
</p>
<p>So for hotplug you want:</p>
<p><span class="ph filepath">- powerpc-utils <br>
</span></p>
<p><span class="ph filepath">- ppc64_diag</span></p>
<p><span class="ph filepath">- librtas</span></p>
<p><span class="ph filepath">-
linux-image-extra-generic-<version><br>
</span></p>
<br>
<div class="moz-cite-prefix">On 06/28/2017 07:15 PM, Rafael Folco
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:D11EE3BE-C3CC-47B7-92AC-292792E56E1C@linux.vnet.ibm.com">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div class="">Hi Sam,</div>
<div class=""><br class="">
</div>
<div class="">Xenial should hotplug pci afaik.</div>
<div class="">If I remember right, the missing package in a base
ubuntu cloud image (xenial) was ppc64-diag. Just confirm
powerpc-utils and librtas are also installed. So after
installing it, make sure rtas_errd service is up and running
inside your guest.</div>
<div class=""><br class="">
</div>
<div class="">When you attach / detach using virsh or via
openstack, it will call drmgr tool under the covers, which in
turn will load rpadlpar module and perform the hotplug
operation.</div>
<div class="">I am not sure about min versions but latest
available in xenial 16.04.X are enough.</div>
<div class=""><br class="">
</div>
<div class="">Hope this helps.</div>
<div class=""><br class="">
</div>
<div class="">That’s All Folco’s =)</div>
<br class="">
<div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica;
font-size: 12px; font-style: normal; font-variant-caps:
normal; font-weight: normal; letter-spacing: normal; orphans:
auto; text-align: start; text-indent: 0px; text-transform:
none; white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width:
0px;">Rafael Folco<br class="">
OpenStack<br class="">
IBM Linux Technology Center</div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica;
font-size: 12px; font-style: normal; font-variant-caps:
normal; font-weight: normal; letter-spacing: normal; orphans:
auto; text-align: start; text-indent: 0px; text-transform:
none; white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width:
0px;" class=""><br class="">
</div>
<br class="Apple-interchange-newline">
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Jun 28, 2017, at 8:06 PM, Leonardo Augusto
Guimarães Garcia <<a
href="mailto:lagarcia@linux.vnet.ibm.com" class=""
moz-do-not-send="true">lagarcia@linux.vnet.ibm.com</a>>
wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" class="">
<div text="#000000" bgcolor="#FFFFFF" class=""> Samuel,<br
class="">
<br class="">
From what you described, it doesn't seem to me, at least
initially, that you have an issue in libvirt. On Power
systems, you need some user space tools installed in the
guest in order to correctly perform hot plug and hot
unplug operations. It may be the case that the tools that
come installed by default in Ubuntu 14.04 and Ubuntu 16.04
are just too old. Please, check the versions of the
following packages:<span class="ph filepath">
powerpc-utils, ppc64_diag, and librtas.<br class="">
<br class="">
Cheers,<br class="">
<br class="">
Leo<br class="">
</span><span class="ph filepath"></span><br class="">
<div class="moz-cite-prefix">On 06/28/2017 05:24 PM,
Samuel D Matzek wrote:<br class="">
</div>
<blockquote type="cite"
cite="mid:OF7D91F3EF.5143BAFC-ON0025814D.006FEB67-0025814D.00701007@notes.na.collabserv.com"
class="">
<div class="socmaildefaultfont" dir="ltr"
style="font-family:Arial, Helvetica,
sans-serif;font-size:10.5pt">
<div dir="ltr" class="">
<div class="">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 class="">The OpenStack error is
"DeviceDetachFailed: Device detach failed for vdb:
Unable to detach from guest transient domain."</div>
<div class=""> </div>
<div class="">I have discovered this is a guest OS
issue. I tried the following guest OSes with
Ubuntu Xenial as the host OS:</div>
<div class=""> </div>
<div class="">Silent detach failure / fail to
detach:<br class="">
Ubuntu 14.04 ppc64le daily build of Ubuntu cloud
image<br class="">
Ubuntu 16.04 ppc64le daily build of Ubuntu cloud
image</div>
<div class=""> </div>
<div class="">Live detach succeeds:<br class="">
Ubuntu 16.10 ppc64le daily build of Ubuntu cloud
image<br class="">
Ubuntu 17.04 ppc64le daily build of Ubuntu cloud
image<br class="">
CentOS 7.3</div>
<div class=""> </div>
<div class="">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 class=""> </div>
<div class="">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 class=""> </div>
<div class="">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 class=""> </div>
<div class="">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 class="">[1] <a
href="https://wiki.libvirt.org/page/DebugLogs"
moz-do-not-send="true" class="">https://wiki.libvirt.org/page/DebugLogs</a></div>
</div>
</div>
<br class="">
<br class="">
<fieldset class="mimeAttachmentHeader"></fieldset>
<br class="">
<pre class="" wrap="">_______________________________________________
Linuxppc-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Linuxppc-users@lists.ozlabs.org" moz-do-not-send="true">Linuxppc-users@lists.ozlabs.org</a>
<a class="moz-txt-link-freetext" href="https://lists.ozlabs.org/listinfo/linuxppc-users" moz-do-not-send="true">https://lists.ozlabs.org/listinfo/linuxppc-users</a>
</pre>
</blockquote>
<br class="">
</div>
_______________________________________________<br class="">
Linuxppc-users mailing list<br class="">
<a href="mailto:Linuxppc-users@lists.ozlabs.org" class=""
moz-do-not-send="true">Linuxppc-users@lists.ozlabs.org</a><br
class="">
<a class="moz-txt-link-freetext" href="https://lists.ozlabs.org/listinfo/linuxppc-users">https://lists.ozlabs.org/listinfo/linuxppc-users</a><br class="">
</div>
</blockquote>
</div>
<br class="">
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Linuxppc-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Linuxppc-users@lists.ozlabs.org">Linuxppc-users@lists.ozlabs.org</a>
<a class="moz-txt-link-freetext" href="https://lists.ozlabs.org/listinfo/linuxppc-users">https://lists.ozlabs.org/listinfo/linuxppc-users</a>
</pre>
</blockquote>
<br>
</body>
</html>