fdio noha: Workaround tap MAC generation issues 47/69547/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Tue, 14 Jan 2020 13:11:17 +0000 (14:11 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Tue, 14 Jan 2020 13:11:17 +0000 (14:11 +0100)
systemd 230..241 has issues generating persistent MAC addresses
for bridge/tap/etc network devices, causing trouble for VPP agent
hooking tap devices to the bridges it creates on the fly.

Work around this by disabling the faulty policy, as suggested in [1].

[1] https://github.com/systemd/systemd/issues/3374

Change-Id: I8d568bc0a859256d1493bf9f8261d60943fa60e0
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
mcp/reclass/classes/cluster/mcp-fdio-noha/openstack/init.yml

index 1e13884..858da65 100644 (file)
@@ -18,3 +18,13 @@ parameters:
     node_hostname: ${_param:cluster_node01_hostname}
     node_port: 4001
     external_vpp_tap: 'tap0'
+  linux:
+    system:
+      file:
+        /etc/systemd/network/99-default.link:
+          contents: |
+            # Workaround tap/bridge MAC generation issue
+            # https://github.com/systemd/systemd/issues/3374
+            [Link]
+            NamePolicy=kernel database onboard slot path
+            MACAddressPolicy=none