libvirt3.1.0 bug suspected: libvirtd restart, VM start/stop

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

It seems there is a bug for libvirtd which I couldn't find here.

Here is description:
Version-Release number of selected component (if applicable):
Libvirt - 3.1.0 (built from tarball)

How reproducible:
100%

Precondition: libvirtd running. One VM is running, other(s) are 'shut off'.
Steps to Reproduce:
1. Stop libvirtd while VM#1 is running.
2. Start libvirtd (VM#1 is running).
3. Stop VM#1. Verify if VM#1 is present in the list of all VM's ('virsh list --all').
4. Start VM#1. Verify if VM#1 is present in the list of all VM's ('virsh list --all').
5. Go to step #3. Note: Steps may be needed to repeat two times.

Recover action:
 restart libvirtd service (service libvirtd restart/systemctl restart libvirtd).

Actual results:
 #3. VM#1 disappears from the list of all VM's.

Expected results:
 #3. VM#1 should be present in the list of all VM's.

--
Best regards,
Stepan
# service libvirtd status
● libvirtd.service - Virtualization daemon
   Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; disabled; vendor preset: enabled)
   Active: active (running) since Tue 2017-03-28 11:31:29 IST; 3s ago
     Docs: man:libvirtd(8)
           http://libvirt.org
 Main PID: 106843 (libvirtd)
   CGroup: /system.slice/libvirtd.service
           ├─106484 qemu-system-x86_64 -enable-kvm -name guest=ubuntu1604_01,debug-threads=on -S -machine pc-i440fx-2.5,accel=kvm,usb=off,dump-guest-core=off -cpu host -m 2048 -realtime mlock=
           ├─106843 /usr/sbin/libvirtd
           ├─194319 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper
           └─194320 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper

Mar 28 11:31:29 ubuntu1604 libvirtd[106843]: 2017-03-28 10:31:29.406+0000: 106859: info : libvirt version: 3.1.0

SNIP

Mar 28 11:31:29 ubuntu1604 libvirtd[106843]: 2017-03-28 10:31:29.406+0000: 106859: error : virNetworkAssignDefLocked:568 : operation failed: network 'default' already exists with uuid 81b506
Mar 28 11:31:29 ubuntu1604 dnsmasq[194319]: read /etc/hosts - 7 addresses
Mar 28 11:31:29 ubuntu1604 dnsmasq[194319]: read /var/lib/libvirt/dnsmasq/default.addnhosts - 0 addresses
Mar 28 11:31:29 ubuntu1604 dnsmasq-dhcp[194319]: read /var/lib/libvirt/dnsmasq/default.hostsfile
Mar 28 11:31:31 ubuntu1604 libvirtd[106843]: 2017-03-28 10:31:31.127+0000: 106859: error : virDomainObjListAddLocked:289 : operation failed: domain 'ubuntu1604_03' already exists with uui
Mar 28 11:31:31 ubuntu1604 libvirtd[106843]: 2017-03-28 10:31:31.128+0000: 106859: error : virDomainObjListAddLocked:289 : operation failed: domain 'ubuntu1604_01' already exists with uui
Mar 28 11:31:31 ubuntu1604 libvirtd[106843]: 2017-03-28 10:31:31.135+0000: 106859: error : virDomainObjListAddLocked:289 : operation failed: domain 'ubuntu1604_01' already exists with uui
Mar 28 11:31:31 ubuntu1604 libvirtd[106843]: 2017-03-28 10:31:31.136+0000: 106859: error : qemuDomainDefPostParse:2654 : internal error: missing machine type
# virsh list --all
 Id    Name                           State
----------------------------------------------------
 2     ubuntu1604_01               running
 -     ubuntu1604_02               shut off
 -     ubuntu1604_03               shut off

# virsh destroy ubuntu1604_01
Domain ubuntu1604_01 destroyed

# virsh start ubuntu1604_01
error: failed to get domain 'ubuntu1604_01'
error: Domain not found: no domain with matching name 'ubuntu1604_01'

# virsh list --all
 Id    Name                           State
----------------------------------------------------
 -     ubuntu1604_02               shut off
 -     ubuntu1604_03               shut off

# service libvirtd restart
# virsh list --all
 Id    Name                           State
----------------------------------------------------
 -     ubuntu1604_01               shut off
 -     ubuntu1604_02               shut off
 -     ubuntu1604_03               shut off

# virsh --version
3.1.0
--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux