[openstack-dev] [tripleo] configuring qemu.conf using puppet or ansible

Saravanan KR skramaja at redhat.com
Fri Nov 24 12:03:39 UTC 2017


For dpdk in ovs2.8, the default permission of vhost user ports are
modified from root:root  to openvswitch:hugeltbfs. The vhost user
ports are shared between ovs and libvirt (qemu). More details on BZ

The "group" option in /etc/libvirt/qemu.conf [2] need to set as
"hugetlbfs" for vhost port to be shared between ovs and libvirt. In
order to configure qemu.conf, I could think of multiple options:

* By using puppet-libvirt[3] module, but this module is altering lot
of configurations on the qemu.conf as it is trying to rewrite the
complete qemu.conf file. It may be different version of conf file
altogether as we might override the package defaults, depending on the
package version used.

* Other possibility is to configure the qemu.conf file directly using
the "init_setting" module like [4].

* Considering the move towards ansible, I would prefer if we can add
ansible based configuration along with docker-puppet for any new
modules going forward. But I am not sure of the direction.

Prefer the feedback before proceeding with an approach.

Saravanan KR

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1515269
[2]  https://github.com/libvirt/libvirt/blob/master/src/qemu/qemu.conf#L412
[3] https://github.com/thias/puppet-libvirt
[4] https://review.openstack.org/#/c/522796/1/manifests/profile/base/dpdk.pp

More information about the OpenStack-dev mailing list