[ha] [odl] Patch hostconfig for py3 compat 12/68712/2
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Tue, 29 Oct 2019 22:14:30 +0000 (23:14 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Wed, 30 Oct 2019 09:47:26 +0000 (10:47 +0100)
Change-Id: Id6754dec226e75b9ee1e8c19ac04531b9f277e0f
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
mcp/reclass/classes/cluster/mcp-odl-ha/openstack/compute.yml

index e873b84..0846be6 100644 (file)
@@ -12,6 +12,10 @@ classes:
   - cluster.mcp-odl-ha.openstack.compute_pdf
   - cluster.mcp-odl-ha.infra
 parameters:
+  nova:
+    compute:
+      libvirt_service: libvirtd
+      libvirt_bin: /etc/default/libvirtd
   neutron:
     gateway:
       agent_mode: ${_param:neutron_gateway_agent_mode}
@@ -19,3 +23,16 @@ parameters:
         ovsdb_connection: tcp:127.0.0.1:6640
       opendaylight:
         ovsdb_server_iface: ptcp:6640:127.0.0.1
+  linux:
+    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