Removes neutron ovs agent systemd when not nosdn 03/31803/3
authorTim Rozet <trozet@redhat.com>
Sun, 26 Mar 2017 20:25:04 +0000 (16:25 -0400)
committerTim Rozet <trozet@redhat.com>
Sun, 26 Mar 2017 23:30:01 +0000 (19:30 -0400)
Bug in ovs agent systemd where it is started when openvswitch is
restarted.  This is causing ODL DPDK deployments to fail because
openvswitch is creating br-int as type system instead of netdev.

JIRA: APEX-427

Change-Id: Iea7f6a5553d2ca1f372f4dec82f576d62827e887
Signed-off-by: Tim Rozet <trozet@redhat.com>
lib/overcloud-deploy-functions.sh

index 8cf1b04..1301e2c 100755 (executable)
@@ -98,6 +98,16 @@ function overcloud_deploy {
   ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" "rm -f overcloud-full.qcow2"
   scp ${SSH_OPTIONS[@]} $IMAGES/overcloud-full-${SDN_IMAGE}.qcow2 "stack@$UNDERCLOUD":overcloud-full.qcow2
 
+  # disable neutron openvswitch agent from starting
+  if [[ -n "${deploy_options_array['sdn_controller']}" && "${deploy_options_array['sdn_controller']}" != 'False' ]]; then
+      echo -e "${blue}INFO: Disabling neutron-openvswitch-agent from systemd${reset}"
+      ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <<EOI
+      LIBGUESTFS_BACKEND=direct virt-customize --run-command "rm -f /etc/systemd/system/multi-user.target.wants/neutron-openvswitch-agent.service" \
+                                               --run-command "rm -f /usr/lib/systemd/system/neutron-openvswitch-agent.service" \
+                                               -a overcloud-full.qcow2
+EOI
+  fi
+
   if [ "${deploy_options_array['vpn']}" == 'True' ]; then
       echo -e "${blue}INFO: Enabling ZRPC and Quagga${reset}"
       ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <<EOI