Edoardo Comar
2014-Jun-08 07:00 UTC
[libvirt-users] transient domain in virsh list as shut off
<font size=2 face="sans-serif">We have just seen libvirt ending up in an inconsistent state : a shut off transient domain.</font> <br><font size=2 face="sans-serif"> </font> <br><font size=2 face="sans-serif">Has anyone seen this before ?</font> <br> <br><font size=2 face="sans-serif">We had a defined domain in shut off state</font> <br><font size=2 face="sans-serif">then</font> <br><font size=2 face="sans-serif">virsh shutdown domain & # note this is sent to the background</font> <br><font size=2 face="sans-serif">virsh domstate domain</font> <br><font size=2 face="sans-serif">virsh destroy domain</font> <br> <br><font size=2 face="sans-serif">at this point libvirtd.log reported</font> <br> <br><font size=2 face="sans-serif">2014-06-05 00:47:52.000+0000: 10063: warning : qemuDomainObjBeginJobInternal:839 : Cannot start job (modify, none) for domain aspn-testapp5-Na6r; current job is (modify, none) owned by (10060, 0)</font> <br> <br><font size=2 face="sans-serif">subsequently, </font> <br><font size=2 face="sans-serif">virsh undefine domain</font> <br><font size=2 face="sans-serif">-> then succeeded (exit 0) </font> <br> <br><font size=2 face="sans-serif">but now virsh list still reports it :</font> <br> <br><font size=2 face="sans-serif">virsh # list --all</font> <br><font size=2 face="sans-serif"> Id Name State</font> <br><font size=2 face="sans-serif">----------------------------------------------------</font> <br><font size=2 face="sans-serif"> 104 aspn-testapp5-Na6r shut off</font> <br> <br><font size=2 face="sans-serif">and it cannot be undefined any more as it is considered transient.</font> <br> <br><font size=2 face="sans-serif">virsh # undefine aspn-testapp5-Na6r</font> <br><font size=2 face="sans-serif">error: Failed to undefine domain aspn-testapp5-Na6r</font> <br><font size=2 face="sans-serif">error: Requested operation is not valid: cannot undefine transient domain</font> <br> <br><font size=2 face="sans-serif">Compiled against library: libvirt 0.10.2</font> <br><font size=2 face="sans-serif">Using library: libvirt 0.10.2</font> <br><font size=2 face="sans-serif">Using API: QEMU 0.10.2</font> <br><font size=2 face="sans-serif">Running hypervisor: QEMU 0.12.1</font> <br> <br><font size=2 face="sans-serif">running on RHEL 6.2 updated with RHEL 6.4 packages : libvirt.x86_64 0.10.2-18.el6_4.9</font> <br> <br><font size=2 face="sans-serif">--------------------------------------------------<br> Edoardo Comar<br> WebSphere Application Service Platform for Networks (ASPN)<br> ecomar@uk.ibm.com<br> +44 (0)1962 81 5576 <br> IBM UK Ltd, Hursley Park, SO21 2JN<br> <br> Unless stated otherwise above:<br> IBM United Kingdom Limited - Registered in England and Wales with number 741598. <br> Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU<br> </font>