libvirtd died while uvtool was creating a VM
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Not sure how to reproduce this one. I was running maas-test in the MAAS qa lab and got the following error:
ubuntu@
2013-12-03 09:18:22,415 INFO Checking for KVM extensions.
2013-12-03 09:18:22,429 INFO Checking for virtualised hardware...
2013-12-03 09:18:22,517 INFO Using external proxy http://
2013-12-03 09:18:22,519 INFO Downloading KVM image for series=saucy, arch=amd64...
2013-12-03 09:18:24,457 INFO Done downloading KVM image for series=saucy, arch=amd64.
2013-12-03 09:18:24,457 INFO Creating virtual machine c41f87ba-
ERROR
=======
ERROR: setUpClass (maastest.
-------
Traceback (most recent call last):
File "/home/
cls.
File "/home/
super(
File "/usr/lib/
fixture.setUp()
File "/home/
self.start()
File "/home/
input=template, check_call=True)
File "/home/
stderr.
Exception: Command 'sudo uvt-kvm create --ssh-public-
Warning: this CLI is experimental and may change.
wrote ds.img with filesystem=iso9660 and diskformat=raw
libvirt: DBus Utils error : Connection is closed
Traceback (most recent call last):
File "/usr/bin/uvt-kvm", line 597, in <module>
main(
File "/usr/bin/uvt-kvm", line 593, in main
args.
File "/usr/bin/uvt-kvm", line 436, in main_create
unsafe_
File "/usr/bin/uvt-kvm", line 323, in create
domain.create()
File "/usr/lib/
if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirt.
-------
Ran 0 tests in 3.678s
FAILED (errors=1)
Syslog showed this error:
Dec 3 09:18:25 lenovo-RD230-01 kernel: [11447.751086] type=1400 audit(138608030
I noticed that dbus wasn't running so I restarted it and got the same error. Then I restarted libvirtd-bin service which fixed the issue.
Hi Diogo,
Thanks for reporting this, and sorry for being so slow in responding. I've finally got round to going through uvtool issues this week.
AFAICT, this is a libvirt or libvirt packaging issue, since it seems that libvirtd died and needed restarting while being used by uvtool. I uploaded a possible fix for libvirt in 1.2.1-0ubuntu8 which added uvtool use to the AppArmor profile, though I'm a little confused as to why the helper needed access to the backing store image there anyway. It might well have been fixed by this, so I'll leave this Incomplete, pending a reproducer case with libvirt-bin >= 1.2.1-0ubuntu8 installed.