Configure qemu group setting as hugetlbfs for ovs-dpdk

Till now, the ovs service file and ovs-ctl command files
are patched to allow ovs to run with qemu group. In order
to remove this workarounds, a new group hugetlbfs is created
which will be shared between ovs and qemu. This patch contains
the changes required for applying these changes.

Patch-url: https://review.openstack.org/#/c/547961/

Change-Id: Id727a514610816c8223aa0dcd49a70caec29a21d
(cherry picked from commit 825bd7d9e1)
This commit is contained in:
Janki Chhatbar 2018-01-05 12:35:52 +05:30 committed by Yolanda Robla
parent 06a4393bfd
commit de86346b73
3 changed files with 15 additions and 5 deletions

View File

@ -0,0 +1,3 @@
parameter_defaults:
VhostuserSocketGroup: "hugetlbfs"

View File

@ -52,14 +52,14 @@ parameters:
default: ""
description: The vhost-user socket directory for OVS
type: string
NeutronVhostuserSocketGroup:
VhostuserSocketGroup:
default: "qemu"
description: >
The vhost-user socket directory group name.
Defaults to 'qemu'. When vhostuser mode is 'dpdkvhostuserclient'
(which is the default mode), the vhost socket is created by qemu.
type: string
NeutronVhostuserSocketUser:
VhostuserSocketUser:
default: "qemu"
description: >
The vhost-user socket directory user name.
@ -92,8 +92,8 @@ outputs:
- neutron::agents::ml2::ovs::enable_dpdk: true
neutron::agents::ml2::ovs::datapath_type: {get_param: NeutronDatapathType}
neutron::agents::ml2::ovs::vhostuser_socket_dir: {get_param: NeutronVhostuserSocketDir}
vhostuser_socket_group: {get_param: NeutronVhostuserSocketGroup}
vhostuser_socket_user: {get_param: NeutronVhostuserSocketUser}
vhostuser_socket_group: {get_param: VhostuserSocketGroup}
vhostuser_socket_user: {get_param: VhostuserSocketUser}
vswitch::dpdk::host_core_list: {get_param: HostCpusList}
vswitch::dpdk::pmd_core_list: {get_param: NeutronDpdkCoreList}
vswitch::dpdk::memory_channels: {get_param: NeutronDpdkMemoryChannels}
@ -101,7 +101,7 @@ outputs:
vswitch::dpdk::driver_type: {get_param: NeutronDpdkDriverType}
service_config_settings:
nova_libvirt:
nova::compute::libvirt::qemu::group: {get_param: NeutronVhostuserSocketGroup}
nova::compute::libvirt::qemu::group: {get_param: VhostuserSocketGroup}
step_config: {get_attr: [NeutronOvsAgent, role_data, step_config]}
upgrade_tasks:
get_attr: [OpenVswitchUpgrade, role_data, upgrade_tasks]

View File

@ -0,0 +1,7 @@
---
features:
- Till now, the ovs service file and ovs-ctl command files are patched
to allow ovs to run with qemu group. In order to remove this
workarounds, a new group hugetlbfs is created which will be shared
between ovs and qemu. Use env file ovs-dpdk-permissions.yaml while
deploying.