From 012b58ccc1623945c4428e82eec80b2f3f22d6b7 Mon Sep 17 00:00:00 2001 From: waleedm Date: Tue, 9 Mar 2021 09:35:49 +0000 Subject: [PATCH] Updating sriov_config service to run after openibd service When having sriov configured in mlnx interfaces and we are using MLNX ofed, it will install openibd and in reboot case we'll have a race between sriov_config service and that openibd service which loads mlx drivers, sometimes it causes failures in starting sriov_config service. So updating sriov_config service to run after openibd service if it's present, if not as in default case, systemd ignores it. Closes-Bug: #1918255 Change-Id: I047e3c40815b71de10e6641c1d39b29de563d8d2 --- os_net_config/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os_net_config/utils.py b/os_net_config/utils.py index 2ae12efb..833ad42a 100644 --- a/os_net_config/utils.py +++ b/os_net_config/utils.py @@ -43,7 +43,7 @@ _DPDK_MAPPING_FILE = '/var/lib/os-net-config/dpdk_mapping.yaml' _SRIOV_CONFIG_SERVICE_FILE = "/etc/systemd/system/sriov_config.service" _SRIOV_CONFIG_DEVICE_CONTENT = """[Unit] Description=SR-IOV numvfs configuration -After=systemd-udev-settle.service +After=systemd-udev-settle.service openibd.service Before=openvswitch.service [Service]