summaryrefslogtreecommitdiffstats
path: root/plugins/odl_cluster/roles/setup-odl
diff options
context:
space:
mode:
authorYifei Xue <xueyifei@huawei.com>2017-10-20 11:30:30 +0800
committerYifei Xue <xueyifei@huawei.com>2017-10-31 09:21:50 +0000
commit70401f149efee11604487976e67f49f97217f6bd (patch)
tree1056ab744beb7c09fdb33a14576abfd6610cc9c6 /plugins/odl_cluster/roles/setup-odl
parentbac2fe53b6c16e5c71138a0497b7c378e340b435 (diff)
Remove ugly code in odl plugin
JIRA: - Remove the ugly code in odl plugin. These code may cause tempest failures while running daily functest. These failures cannot be reproduced locally but only in daily functest. So we proposed this patch to improve our code and verify whether it can fix the failures in tempest. Change-Id: I09bbb13702ac75380a0d1a1dac5add52a5725c6a Signed-off-by: Yifei Xue <xueyifei@huawei.com> (cherry picked from commit 60fa3597d93a9ba488c875eb0b47cf7054a2eddd)
Diffstat (limited to 'plugins/odl_cluster/roles/setup-odl')
-rwxr-xr-xplugins/odl_cluster/roles/setup-odl/tasks/control-agents-3.yml35
-rwxr-xr-xplugins/odl_cluster/roles/setup-odl/tasks/control-servers-2.yml11
2 files changed, 4 insertions, 42 deletions
diff --git a/plugins/odl_cluster/roles/setup-odl/tasks/control-agents-3.yml b/plugins/odl_cluster/roles/setup-odl/tasks/control-agents-3.yml
index 2527852e..e0a9088f 100755
--- a/plugins/odl_cluster/roles/setup-odl/tasks/control-agents-3.yml
+++ b/plugins/odl_cluster/roles/setup-odl/tasks/control-agents-3.yml
@@ -4,41 +4,10 @@
shell: |
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 mechanism_drivers opendaylight_v2;
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 tenant_network_types vxlan;
- crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs enable_tunneling "True";
+ crudini --del /etc/neutron/plugins/ml2/ml2_conf.ini ovs;
+ crudini --del /etc/neutron/plugins/ml2/ml2_conf.ini securitygroup firewall_driver;
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 extension_drivers port_security;
-- name: configure bridge_mappings -> ml2
- shell: |
- crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini \
- ovs bridge_mappings "{{ contr_l2_mappings }}";
- when:
- - odl_l3_agent == "Disable"
- - inventory_hostname not in groups['nova_compute']
-
-- name: configure bridge_mappings -> ml2
- shell: |
- crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini \
- ovs bridge_mappings "{{ compu_l2_mappings }}";
- when:
- - odl_l3_agent == "Disable"
- - inventory_hostname in groups['nova_compute']
-
-- name: configure bridge_mappings for L3
- shell: |
- crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini \
- ovs bridge_mappings "{{ contr_l3_mappings }}";
- when:
- - odl_l3_agent == "Enable"
- - inventory_hostname not in groups['nova_compute']
-
-- name: configure bridge_mappings for L3
- shell: |
- crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini \
- ovs bridge_mappings "{{ compu_l3_mappings }}";
- when:
- - odl_l3_agent == "Enable"
- - inventory_hostname in groups['nova_compute']
-
- name: configure external bridge name for L2
shell: |
crudini --set /etc/neutron/l3_agent.ini \
diff --git a/plugins/odl_cluster/roles/setup-odl/tasks/control-servers-2.yml b/plugins/odl_cluster/roles/setup-odl/tasks/control-servers-2.yml
index a5d31d4c..39d0312f 100755
--- a/plugins/odl_cluster/roles/setup-odl/tasks/control-servers-2.yml
+++ b/plugins/odl_cluster/roles/setup-odl/tasks/control-servers-2.yml
@@ -10,16 +10,9 @@
shell: >
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 mechanism_drivers opendaylight_v2;
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 tenant_network_types vxlan;
- crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs enable_tunneling "True";
+ crudini --del /etc/neutron/plugins/ml2/ml2_conf.ini ovs;
+ crudini --del /etc/neutron/plugins/ml2/ml2_conf.ini securitygroup firewall_driver;
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 extension_drivers port_security;
- crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs bridge_mappings
- "{{ contr_l2_mappings }}";
-
-- name: configure bridge_mappings for L3
- shell: >
- crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs bridge_mappings
- "{{ contr_l3_mappings }}";
- when: odl_l3_agent == "Enable"
- name: turn off l3 ha for odl l2
shell: |