Browse Source

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
(cherry picked from commit 012b58ccc1)
changes/99/779599/1 13.2.0
waleedm 1 month ago
committed by waleed mousa
parent
commit
7ba6feaac3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      os_net_config/utils.py

+ 1
- 1
os_net_config/utils.py 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_DEVICE_CONTENT = """[Unit]
Description=SR-IOV numvfs configuration
After=systemd-udev-settle.service
After=systemd-udev-settle.service openibd.service
Before=openvswitch.service
[Service]


Loading…
Cancel
Save