aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles
diff options
context:
space:
mode:
authorchenshuai@huawei.com <chenshuai@huawei.com>2016-01-30 17:58:51 +0800
committerchenshuai@huawei.com <chenshuai@huawei.com>2016-01-30 21:46:00 +0800
commit5c31226684c85448f69ece611ffefbf9a3bacf23 (patch)
tree8d4dab8928d09240712076565606b03c363485b9 /deploy/adapters/ansible/roles
parentb43e48e988a8eb28ac4ea43176a22413a19c0599 (diff)
bugfix: odl scenarios disable secgroup
JIRA: COMPASS-296 Change-Id: Ieb5e1181efad98ca76b64392ee4a24ff8a864758 Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles')
-rwxr-xr-xdeploy/adapters/ansible/roles/odl_cluster/tasks/openvswitch.yml18
1 files changed, 8 insertions, 10 deletions
diff --git a/deploy/adapters/ansible/roles/odl_cluster/tasks/openvswitch.yml b/deploy/adapters/ansible/roles/odl_cluster/tasks/openvswitch.yml
index 840f9c12..5e3af067 100755
--- a/deploy/adapters/ansible/roles/odl_cluster/tasks/openvswitch.yml
+++ b/deploy/adapters/ansible/roles/odl_cluster/tasks/openvswitch.yml
@@ -33,9 +33,8 @@
#- name: Restart OpenVSwitch
# shell: service openvswitch-switch restart;
-#- name: remove Neutron's openvswitch agent services
-# shell: >
-# update-rc.d neutron-plugin-openvswitch-agent remove
+- name: remove Neutron's openvswitch agent services
+ shell: update-rc.d -f neutron-plugin-openvswitch-agent remove
- name: Check External network
shell: ovs-vsctl list-br | grep br-prv
@@ -51,11 +50,17 @@
#- name: Set OpenDaylight as the manager
# command: su -s /bin/sh -c "ovs-vsctl set-manager tcp:{{ internal_vip.ip }}:6640;"
+- name: set opendaylight as the manager
+ command: su -s /bin/sh -c "ovs-vsctl set-manager tcp:{{ internal_vip.ip }}:6640;"
+
+- name: check br-int
+ shell: ovs-vsctl list-br | grep br-int; while [ $? -ne 0 ]; do sleep 10; ovs-vsctl list-br | grep br-int; done
- name: set local ip in openvswitch
shell: ovs-vsctl set Open_vSwitch $(ovs-vsctl show | head -n 1) other_config={'local_ip'=' {{ internal_ip }} '};
#'
+
##################################################################
################ Recover External network #######################
##################################################################
@@ -88,13 +93,6 @@
##################################################################
##################################################################
##################################################################
-
-- name: set opendaylight as the manager
- command: su -s /bin/sh -c "ovs-vsctl set-manager tcp:{{ internal_vip.ip }}:6640;"
-
-- name: check br-int
- shell: ovs-vsctl list-br | grep br-int; while [ $? -ne 0 ]; do sleep 10; ovs-vsctl list-br | grep br-int; done
-
- name: configure opendaylight -> ml2
shell: >
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 mechanism_drivers opendaylight;