[openstack-dev] [tripleo] configuring qemu.conf using puppet or ansible
aschultz at redhat.com
Fri Nov 24 16:39:25 UTC 2017
On Fri, Nov 24, 2017 at 5:03 AM, Saravanan KR <skramaja at redhat.com> wrote:
> 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  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 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.
We currently do not use puppet-libvirt and qemu settings are managed
via puppet-nova with augeas.
> * Other possibility is to configure the qemu.conf file directly using
> the "init_setting" module like .
> * 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.
So you could use ansible provided that the existing settings are not
managed via another puppet module. The problem with mixing both puppet
and ansible is ensuring that only one owns the thing being touched.
Since we use augeas in puppet-nova, this should not conflict with the
usage of ini_setting with ansible. Unfortunately libvirt is not
currently managed as a standalone service so perhaps it's time to
evaluate how we configure it since multiple services (nova/ovs) need
to factor into it's configuration.
> Prefer the feedback before proceeding with an approach.
> Saravanan KR
>  https://bugzilla.redhat.com/show_bug.cgi?id=1515269
>  https://github.com/libvirt/libvirt/blob/master/src/qemu/qemu.conf#L412
>  https://github.com/thias/puppet-libvirt
>  https://review.openstack.org/#/c/522796/1/manifests/profile/base/dpdk.pp
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
More information about the OpenStack-dev