commit 92b6f306246468ecd26bdb5339b75bc574a9e9a3 Author: Jakub Libosvar Date: Wed Oct 14 16:25:19 2020 +0200 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 diff --git a/deployment/ovn/ovn-controller-container-puppet.yaml b/deployment/ovn/ovn-controller-container-puppet.yaml index f211a07..3e5cf1a 100644 --- a/deployment/ovn/ovn-controller-container-puppet.yaml +++ b/deployment/ovn/ovn-controller-container-puppet.yaml @@ -310,4 +310,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: []