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
This commit is contained in:
Billy Olsen 2022-01-19 04:59:35 -07:00
parent cdc744ee21
commit e72659126d

View File

@ -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))