summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFeng Pan <fpan@redhat.com>2016-09-21 12:11:11 -0400
committerTim Rozet <trozet@redhat.com>2016-09-27 01:06:29 +0000
commit905506e205f00a5ad7792e9d177b1928c5d22ba5 (patch)
tree83961cfbf65fbe4473948dad8bac3eaeca2ac4af /lib
parent4282687699d38e4be4b39f8397f78768899ac17c (diff)
enable vhostuser for ovs-dpdk scenario
- Configure 'netdev' datapath type for ovs agent on compute node - Set correct permission in OVS JIRA: APEX-274 opnfv-tht-pr: 83 Change-Id: I94d41375c32f04f4cff872ef85fe8a4514103535 Signed-off-by: Feng Pan <fpan@redhat.com> (cherry picked from commit 19dbb9f0e9c580fbd27af1175ea87dacc175db19)
Diffstat (limited to 'lib')
-rwxr-xr-xlib/overcloud-deploy-functions.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/overcloud-deploy-functions.sh b/lib/overcloud-deploy-functions.sh
index c7301fdd..60d5e140 100755
--- a/lib/overcloud-deploy-functions.sh
+++ b/lib/overcloud-deploy-functions.sh
@@ -110,7 +110,11 @@ EOF
-a overcloud-full.qcow2
fi
else
+ sudo sed -i '/NeutronOVSDataPathType:/c\ NeutronOVSDataPathType: netdev' /usr/share/openstack-tripleo-heat-templates/environments/numa.yaml
LIBGUESTFS_BACKEND=direct virt-customize --run-command "yum install -y /root/dpdk_rpms/*" \
+ --run-command "sed -i '/RuntimeDirectoryMode=.*/d' /usr/lib/systemd/system/openvswitch-nonetwork.service" \
+ --run-command "printf \"%s\\n\" RuntimeDirectoryMode=0775 Group=qemu UMask=0002 >> /usr/lib/systemd/system/openvswitch-nonetwork.service" \
+ --run-command "sed -i 's/\\(^\\s\\+\\)\\(start_daemon "$OVS_VSWITCHD_PRIORITY"\\)/\\1umask 0002 \\&\\& \\2/' /usr/share/openvswitch/scripts/ovs-ctl" \
-a overcloud-full.qcow2
fi
EOI