Devstack/ironic fails with libvirt configuration

Bug #1685924 reported by Rajini Karthik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Expired
Low
Unassigned

Bug Description

Devstack/ironic gate installation on 3rd party CIs fails with libvirt configuration

2017-04-24 15:02:43.359 | + lib/nova_plugins/functions-libvirt:configure_libvirt:98 : is_neutron_ovs_base_plugin
2017-04-24 15:02:43.360 | + lib/neutron_plugins/ovs_base:is_neutron_ovs_base_plugin:17 : return 0
2017-04-24 15:02:43.362 | + lib/nova_plugins/functions-libvirt:configure_libvirt:98 : sudo grep -q '^cgroup_device_acl' /etc/libvirt/qemu.conf
2017-04-24 15:02:43.367 | grep: /etc/libvirt/qemu.conf: No such file or directory
2017-04-24 15:02:43.371 | + lib/nova_plugins/functions-libvirt:configure_libvirt:100 : cat
2017-04-24 15:02:43.372 | + lib/nova_plugins/functions-libvirt:configure_libvirt:100 : sudo tee -a /etc/libvirt/qemu.conf
2017-04-24 15:02:43.376 | tee: /etc/libvirt/qemu.conf: No such file or directory
2017-04-24 15:02:43.376 | cgroup_device_acl = [
2017-04-24 15:02:43.376 | "/dev/null", "/dev/full", "/dev/zero",
2017-04-24 15:02:43.376 | "/dev/random", "/dev/urandom",
2017-04-24 15:02:43.376 | "/dev/ptmx", "/dev/kvm", "/dev/kqemu",
2017-04-24 15:02:43.376 | "/dev/rtc", "/dev/hpet","/dev/net/tun",
2017-04-24 15:02:43.376 | "/dev/vfio/vfio",
2017-04-24 15:02:43.376 | ]
2017-04-24 15:02:43.379 | + lib/nova_plugins/functions-libvirt:configure_libvirt:1 : exit_trap
2017-04-24 15:02:43.381 | + ./stack.sh:exit_trap:493 : local r=1
2017-04-24 15:02:43.384 | ++ ./stack.sh:exit_trap:494 : jobs -p
2017-04-24 15:02:43.386 | + ./stack.sh:exit_trap:494 : jobs=
2017-04-24 15:02:43.388 | + ./stack.sh:exit_trap:497 : [[ -n '' ]]
2017-04-24 15:02:43.390 | + ./stack.sh:exit_trap:503 : kill_spinner
2017-04-24 15:02:43.392 | + ./stack.sh:kill_spinner:389 : '[' '!' -z '' ']'
2017-04-24 15:02:43.394 | + ./stack.sh:exit_trap:505 : [[ 1 -ne 0 ]]
2017-04-24 15:02:43.396 | + ./stack.sh:exit_trap:506 : echo 'Error on exit'
2017-04-24 15:02:43.396 | Error on exit

See logs
https://stash.opencrowbar.org/logs/38/459338/1/check/dell-hw-tempest-dsvm-ironic-pxe_ipmitool/d6a88a3/

Suspecting if this review that got merged has anything to do with it
https://review.openstack.org/#/c/458747/

Revision history for this message
Michael Turek (mjturek) wrote :

So I noticed that our job (pkvmci ironic job) has the /etc/libvirt/qemu.conf file. I ran the following:

$ dpkg -S /etc/libvirt/qemu.conf
libvirt-bin: /etc/libvirt/qemu.conf

This means that libvirt-bin is what provides the missing file.

Did some digging in our latest success log and found that libvirt-bin gets installed as a dependency (Do a find on libvirt-bin on the file below for more info):

https://dal05.objectstorage.softlayer.net/v1/AUTH_3d8e6ecb-f597-448c-8ec2-164e9f710dd6/pkvmci/ironic/38/460038/2/check-ironic/tempest-dsvm-ironic-agent_ipmitool/9d01d3e/devstacklog.txt.gz

I noticed that in your provided logs this dependency is not installed (grep your devstacklog.txt for libvirt-bin). It's a recommended package, but not required. Can you do a 'apt-show-versions libvirt-bin'?

Revision history for this message
Rajini Karthik (rajini-karthik) wrote :

The libvirt installation seems to be missing from the image. May be it failed. Doing a update and installing it in the pre-hook-test solves this.

sudo apt-get update && apt-get install -y qemu-kvm libvirt-bin

Revision history for this message
Michael Turek (mjturek) wrote :

So we have a workaround at least. Still, devstack should be handling this dependency.

Revision history for this message
Michael Turek (mjturek) wrote :

Hi Rajini, are you still seeing this issue?

Changed in ironic:
status: New → Incomplete
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Ironic because there has been no activity for 60 days.]

Changed in ironic:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.