Ensure OVN is restarted on package update

Change-Id: I851a81d47e2ab985213f711ccd81a6870f42317b
Needed-By: https://review.opendev.org/c/openstack/openstack-ansible/+/879890
This commit is contained in:
Dmitriy Rabotyagov 2023-05-20 11:51:22 +02:00 committed by Dmitriy Rabotyagov
parent e9ef1f0707
commit d58bdb151a
2 changed files with 15 additions and 1 deletions

View File

@ -141,7 +141,20 @@
state: started
# (NOTE) Restarting twice to cleanup some pid.
- name: restart ovn service
- name: Restart ovn northd
service:
name: "{{ neutron_ovn_northd_service_name }}"
state: restarted
when:
- neutron_services['neutron-ovn-northd']['group'] in group_names and neutron_plugin_type == 'ml2.ovn'
listen:
- restart ovn service
- name: Restart ovn controller
service:
name: "{{ neutron_ovn_controller_service_name }}"
state: restarted
when:
- neutron_services['neutron-ovn-controller']['group'] in group_names and neutron_plugin_type == 'ml2.ovn'
listen:
- restart ovn service

View File

@ -39,6 +39,7 @@
notify:
- "Restart neutron services"
- "Restart provider services"
- "restart ovn service"
- name: Remove known problem packages
package: