[ha] Add OVN scenario 75/57675/25
authorGuillermo Herrero <guillermo.herrero@enea.com>
Tue, 22 May 2018 12:42:02 +0000 (14:42 +0200)
committerGuillermo Herrero <guillermo.herrero@enea.com>
Thu, 2 Aug 2018 12:47:08 +0000 (14:47 +0200)
JIRA: FUEL-329

Change-Id: I46c7dbc791441c6b069a0d56373ff98a32a57e60
Signed-off-by: Guillermo Herrero <guillermo.herrero@enea.com>
mcp/config/states/openstack_ha
mcp/reclass/classes/cluster/mcp-ovn-ha/openstack/compute.yml
mcp/reclass/classes/cluster/mcp-ovn-ha/openstack/control.yml
mcp/reclass/classes/cluster/mcp-ovn-ha/openstack/database.yml
mcp/reclass/classes/cluster/mcp-ovn-ha/openstack/init.yml
mcp/reclass/classes/cluster/mcp-ovn-ha/openstack/message_queue.yml
mcp/reclass/classes/cluster/mcp-ovn-ha/openstack/proxy.yml
mcp/reclass/classes/cluster/mcp-ovn-ha/openstack/telemetry.yml

index f080904..99374c5 100755 (executable)
@@ -50,6 +50,9 @@ wait_for 3.0 "salt -I 'cinder:volume' state.sls cinder"
 
 salt -I 'neutron:server' state.sls neutron -b 1
 salt -I 'neutron:gateway' state.sls neutron.gateway
+if salt 'cmp*' match.pillar 'neutron:compute' --out yaml --static  | grep -q -e "true" ; then
+  salt -I 'neutron:compute' state.sls neutron.compute
+fi
 
 salt -I 'nova:compute' state.sls nova
 
index 7afb40e..ec3cfaf 100644 (file)
@@ -7,6 +7,7 @@
 ##############################################################################
 ---
 classes:
+  - service.neutron.compute.ovn.single
   - cluster.mcp-common-ha.openstack_compute
   - cluster.mcp-ovn-ha.openstack.compute_pdf
   - cluster.mcp-ovn-ha.infra
index 8119576..7f81a4a 100644 (file)
@@ -7,7 +7,34 @@
 ##############################################################################
 ---
 classes:
-  - system.neutron.control.openvswitch.cluster
+  - system.neutron.control.cluster
   - cluster.mcp-common-ha.openstack_interface_vcp_biport
   - cluster.mcp-common-ha.openstack_control
   - cluster.mcp-ovn-ha.infra
+parameters:
+  _param:
+    neutron_control_dvr: "False"
+    neutron_l3_ha: "False"
+    neutron_global_physnet_mtu: 1500
+    neutron_external_mtu: 1500
+    neutron_enable_qos: "False"
+    neutron_enable_vlan_aware_vms: "False"
+  neutron:
+    server:
+      global_physnet_mtu: ${_param:neutron_global_physnet_mtu}
+      l3_ha: ${_param:neutron_l3_ha}
+      dvr: ${_param:neutron_control_dvr}
+      qos: ${_param:neutron_enable_qos}
+      vlan_aware_vms: ${_param:neutron_enable_vlan_aware_vms}
+      backend:
+        engine: ovn
+        tenant_network_types: "${_param:neutron_tenant_network_types}"
+        external_mtu: ${_param:neutron_external_mtu}
+        mechanism:
+          ovn:
+            driver: ovn
+      ovn_ctl_opts:
+        db-nb-create-insecure-remote: 'yes'
+        db-sb-create-insecure-remote: 'yes'
+        db-nb-addr: ${_param:cluster_vip_address}
+        db-sb-addr: ${_param:cluster_vip_address}
index b8e441a..f0e96da 100644 (file)
@@ -9,4 +9,4 @@
 classes:
   - cluster.mcp-common-ha.openstack_interface_vcp_biport
   - cluster.mcp-common-ha.openstack_database
-  - cluster.mcp-ovn-ha.infra_vcp
+  - cluster.mcp-ovn-ha.infra.init_vcp
index 9dbfd59..737af52 100644 (file)
@@ -10,4 +10,4 @@ classes:
   - cluster.mcp-common-ha.openstack_init
 parameters:
   _param:
-    neutron_tenant_network_types: "flat,vxlan"
+    neutron_tenant_network_types: "geneve,flat"
index de0561d..9b2f5c1 100644 (file)
@@ -9,4 +9,4 @@
 classes:
   - cluster.mcp-common-ha.openstack_interface_vcp_biport
   - cluster.mcp-common-ha.openstack_message_queue
-  - cluster.mcp-ovn-ha.infra_vcp
+  - cluster.mcp-ovn-ha.infra.init_vcp
index 95b7875..3979af5 100644 (file)
@@ -9,4 +9,4 @@
 classes:
   - cluster.mcp-common-ha.openstack_interface_vcp_triport
   - cluster.mcp-common-ha.openstack_proxy
-  - cluster.mcp-ovn-ha.infra_vcp
+  - cluster.mcp-ovn-ha.infra.init_vcp
index eb7910f..aee142c 100644 (file)
@@ -9,4 +9,4 @@
 classes:
   - cluster.mcp-common-ha.openstack_interface_vcp_biport
   - cluster.mcp-common-ha.openstack_telemetry
-  - cluster.mcp-ovn-ha.infra_vcp
+  - cluster.mcp-ovn-ha.infra.init_vcp