From e72659126ddb8923124f3e9157efc50221529d5f Mon Sep 17 00:00:00 2001 From: Billy Olsen Date: Wed, 19 Jan 2022 04:59:35 -0700 Subject: [PATCH] Add ovs-record-hostname to deferable service list The ovs-record-hostname service was introduced in the openvswitch SRU for bug #1915829, however this service did not make the deferable services list for the neutron-gateway charm. This causes package upgrades to restart the openvswitch-switch service. Add the ovs-record-hostname to the deferable services list in order to prevent unintended restarts of openvswitch-switch. Closes-Bug: #1955498 Change-Id: I24a32f6f5a5c51b8b8ee62f88a973a126106fcd9 --- hooks/neutron_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/neutron_utils.py b/hooks/neutron_utils.py index 80481ad8..fea45e39 100644 --- a/hooks/neutron_utils.py +++ b/hooks/neutron_utils.py @@ -836,7 +836,7 @@ def deferrable_services(): """ _svcs = services() _svcs.extend(['ovs-vswitchd', 'ovsdb-server', - 'openvswitch-switch']) + 'openvswitch-switch', 'ovs-record-hostname']) return list(set(_svcs))