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
This commit is contained in:
waleedm 2021-03-09 09:35:49 +00:00 committed by waleed mousa
parent a851b464cb
commit 012b58ccc1
1 changed files with 1 additions and 1 deletions

View File

@ -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_SERVICE_FILE = "/etc/systemd/system/sriov_config.service"
_SRIOV_CONFIG_DEVICE_CONTENT = """[Unit] _SRIOV_CONFIG_DEVICE_CONTENT = """[Unit]
Description=SR-IOV numvfs configuration Description=SR-IOV numvfs configuration
After=systemd-udev-settle.service After=systemd-udev-settle.service openibd.service
Before=openvswitch.service Before=openvswitch.service
[Service] [Service]