enable vhostuser for ovs-dpdk scenario 43/22243/2
authorFeng Pan <fpan@redhat.com>
Wed, 21 Sep 2016 16:11:11 +0000 (12:11 -0400)
committerFeng Pan <fpan@redhat.com>
Wed, 21 Sep 2016 17:27:40 +0000 (13:27 -0400)
- 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>
lib/overcloud-deploy-functions.sh

index c7301fd..60d5e14 100755 (executable)
@@ -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