Public bug reported:

In the containers environment virsh define run from the host fails.
libvirt runs in the ubuntu container and is exposing /var/lib/libvrti as
well as as /var/run to the host, so libvirtd sockets are visible on the
host.

libvirt run user nova group nova. User root has been added in libvirtd
container into nova group. SO it should have permissions to define vm
even when it runs from the host with virs command.

2017-03-26 18:16:07.076840 | + sudo virsh define 
/home/jenkins/workspace/gate-kolla-kubernetes-deploy-ubuntu-source-3-ironic-nv/tests/bin/../conf/ironic/vm-1.xml
2017-03-26 18:16:07.232451 | error: Failed to define domain from 
/home/jenkins/workspace/gate-kolla-kubernetes-deploy-ubuntu-source-3-ironic-nv/tests/bin/../conf/ironic/vm-1.xml
2017-03-26 18:16:07.232540 | error: internal error: QEMU / QMP failed: 
2017-03-26 18:16:07.130+0000: 4815: debug : virFileClose:102 : Closed fd 30
2017-03-26 18:16:07.232570 | 2017-03-26 18:16:07.130+0000: 4815: debug : 
virFileClose:102 : Closed fd 32
2017-03-26 18:16:07.232608 | 2017-03-26 18:16:07.130+0000: 4815: debug : 
virFileClose:102 : Closed fd 26
2017-03-26 18:16:07.232649 | 2017-03-26 18:16:07.130+0000: 4815: debug : 
virExec:736 : Setting child uid:gid to 42436:42436 with caps 0
2017-03-26 18:16:07.232686 | qemu-system-x86_64: could not acquire pid file: 
Permission denied

Ubuntu 16.04
qemu-system-x86 (1:2.5+dfsg-5ubuntu10.9)
libvirt0:amd64 (1.3.1-1ubuntu10.8)

Attached in the libvirtd.log collected from the libvirtd container.

** Affects: libvirt (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "libvirtd.log at the time of error."
   
https://bugs.launchpad.net/bugs/1676208/+attachment/4846346/+files/libvirtd.log

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1676208

Title:
  vm fails to be define virsh by the user who is member of group
  configured in qemu.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1676208/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to