From 8bc099057ca25c9726a79ddcab5adfea1cacecaf Mon Sep 17 00:00:00 2001 From: Jakub Libosvar Date: Wed, 14 Oct 2020 16:25:19 +0200 Subject: [PATCH] ovn: Add neutron-cleanup The service cleans up orphaned tap devices on node boot. This is good for cases were node was fenced or hard rebooted. There is similar patch for OVS deployments [1]. [1] https://opendev.org/openstack/tripleo-heat-templates/commit/81265737187f32eef2b654a901ed74818873eb88 Closes-bug: #1899799 Change-Id: Idec9e5ca0a8d3de7414938c7f280c06bcbd906c1 Signed-off-by: Jakub Libosvar (cherry picked from commit 92b6f306246468ecd26bdb5339b75bc574a9e9a3) --- .../ovn/ovn-controller-container-puppet.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/deployment/ovn/ovn-controller-container-puppet.yaml b/deployment/ovn/ovn-controller-container-puppet.yaml index 918a2d9ea5..1c335f3001 100644 --- a/deployment/ovn/ovn-controller-container-puppet.yaml +++ b/deployment/ovn/ovn-controller-container-puppet.yaml @@ -294,4 +294,19 @@ outputs: name: virt_sandbox_use_netlink persistent: yes state: yes + - name: Copy in cleanup script + copy: + content: {get_file: ../neutron/neutron-cleanup} + dest: '/usr/libexec/neutron-cleanup' + force: yes + mode: '0755' + - name: Copy in cleanup service + copy: + content: {get_file: ../neutron/neutron-cleanup.service} + dest: '/usr/lib/systemd/system/neutron-cleanup.service' + force: yes + - name: Enabling the cleanup service + service: + name: neutron-cleanup + enabled: yes upgrade_tasks: []