Update OpenDaylight version to Neon 23/68223/2
authorMichael Polenchuk <mpolenchuk@mirantis.com>
Wed, 10 Jul 2019 11:30:04 +0000 (15:30 +0400)
committerMichael Polenchuk <mpolenchuk@mirantis.com>
Fri, 12 Jul 2019 09:20:04 +0000 (13:20 +0400)
Change-Id: I6cbbceb9b4a88f527d8dd800b0650f31a3dc1364
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
mcp/config/states/opendaylight
mcp/reclass/classes/cluster/mcp-odl-ha/opendaylight/control.yml.j2
mcp/reclass/classes/cluster/mcp-odl-noha/opendaylight/control.yml.j2
mcp/reclass/classes/cluster/mcp-odl-noha/openstack/compute.yml.j2
mcp/reclass/classes/cluster/mcp-odl-noha/openstack/gateway.yml.j2
mcp/salt-formulas/salt-formula-opendaylight/metadata/service/server/cluster.yml
mcp/salt-formulas/salt-formula-opendaylight/metadata/service/server/single.yml
mcp/salt-formulas/salt-formula-opendaylight/opendaylight/repo.sls

index c263f0f..eb6cc65 100755 (executable)
@@ -19,3 +19,7 @@ function odl() {
 
 wait_for 5.0 "salt -I 'opendaylight:server' state.sls opendaylight"
 wait_for 20 "salt --out yaml -C 'I@neutron:server and *01*' network.connect $(odl bind_ip) $(odl rest_port) | fgrep -q 'result: true'"
+
+# https://bugs.launchpad.net/networking-odl/+bug/1822559
+salt -I 'linux:network:bridge:openvswitch' pkg.install python3-networking-odl
+salt -I 'linux:network:bridge:openvswitch' file.patch /usr/lib/python3/dist-packages/networking_odl/cmd/set_ovs_hostconfigs.py /var/tmp/odl_hostconfig.patch || true
index 51f86b2..531e01f 100644 (file)
@@ -24,7 +24,6 @@ parameters:
       router_enabled: true
       netvirt_natservice:
         nat_mode: conntrack
-        snat_punt_timeout: 0
       karaf_features:
         odl_default:
           - odl-restconf-all
index 9162195..c3d0d18 100644 (file)
@@ -22,7 +22,6 @@ parameters:
       router_enabled: true
       netvirt_natservice:
         nat_mode: conntrack
-        snat_punt_timeout: 0
       karaf_features:
         odl_default:
           - odl-restconf-all
index 863f24d..1e10cac 100644 (file)
@@ -104,3 +104,15 @@ parameters:
           name_servers: {{ nm.dns_public }}
           noifupdown: true
 {%- endif %}
+    system:
+      file:
+        /var/tmp/odl_hostconfig.patch:
+          contents: |
+            420c420
+            <                 if datapath_types.find(datapath_type) >= 0)
+            ---
+            >                 if datapath_type in datapath_types)
+            460c460
+            <         return subprocess.check_output(command_line).strip()  # nosec
+            ---
+            >         return subprocess.check_output(command_line).strip().decode()  # nosec
index 93313ad..946cdda 100644 (file)
@@ -43,3 +43,15 @@ parameters:
           use_interfaces:
             - {{ ma.interface_str(nm.ctl01.nic_private, vlan_private_start) }}
 {%- endif %}
+    system:
+      file:
+        /var/tmp/odl_hostconfig.patch:
+          contents: |
+            420c420
+            <                 if datapath_types.find(datapath_type) >= 0)
+            ---
+            >                 if datapath_type in datapath_types)
+            460c460
+            <         return subprocess.check_output(command_line).strip()  # nosec
+            ---
+            >         return subprocess.check_output(command_line).strip().decode()  # nosec
index 3b57ea3..3554d78 100644 (file)
@@ -13,7 +13,7 @@ classes:
   - service.haproxy.proxy.single
 parameters:
   _param:
-    opendaylight_version: fluorine
+    opendaylight_version: neon
     cluster_vip_address: ${_param:opendaylight_service_host}
     keepalived_vip_virtual_router_id: 199
     keepalived_vip_password: ${_param:opnfv_main_password}
@@ -25,8 +25,6 @@ parameters:
       version: ${_param:opendaylight_version}
       repo: 'odl-team/${_param:opendaylight_version}'
       cluster_enabled: true
-      logging:
-        engine: syslog
   keepalived:
     cluster:
       vrrp_scripts:
index 82c141e..36736be 100644 (file)
@@ -10,11 +10,9 @@ applications:
   - opendaylight
 parameters:
   _param:
-    opendaylight_version: fluorine
+    opendaylight_version: neon
   opendaylight:
     server:
       enabled: 'True'
       version: ${_param:opendaylight_version}
       repo: 'odl-team/${_param:opendaylight_version}'
-      logging:
-        engine: syslog
index 175108e..1f322c5 100644 (file)
@@ -52,5 +52,5 @@ opendaylight_repo:
   # https://github.com/saltstack/salt/pull/45224
   # - ppa: {{ server.repo }}
   - human_name: opendaylight-ppa
-  - name: deb http://ppa.launchpad.net/odl-team/{{ server.version }}/ubuntu xenial main
-  - file: /etc/apt/sources.list.d/odl-team-ubuntu-{{ server.version }}-xenial.list
+  - name: deb http://ppa.launchpad.net/{{ server.repo }}/ubuntu {{ grains.oscodename }} main
+  - file: /etc/apt/sources.list.d/odl-team-{{ server.version }}.list