From 145272ff9eda954a4816f3ba08457f3cf129a986 Mon Sep 17 00:00:00 2001 From: adrianc Date: Sun, 29 Oct 2023 19:01:10 +0200 Subject: [PATCH] fix: sriov config service unit-file dependencies run after initial networking has been configured but before NetworkManager and kubelet. that way we ensre NICs have a netdev to use during configurations. Signed-off-by: adrianc --- .../kubernetes/sriov-config-service.yaml | 6 +++--- .../openshift/sriov-config-service.yaml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bindata/manifests/sriov-config-service/kubernetes/sriov-config-service.yaml b/bindata/manifests/sriov-config-service/kubernetes/sriov-config-service.yaml index 5c7470831..47b10c7ac 100644 --- a/bindata/manifests/sriov-config-service/kubernetes/sriov-config-service.yaml +++ b/bindata/manifests/sriov-config-service/kubernetes/sriov-config-service.yaml @@ -1,12 +1,12 @@ contents: | [Unit] Description=Configures SRIOV NIC - Wants=network-pre.target - Before=network-pre.target + After=network-pre.target + Before=NetworkManager.service kubelet.service [Service] Type=oneshot - ExecStart=/var/lib/sriov/sriov-network-config-daemon service + ExecStart=/var/lib/sriov/sriov-network-config-daemon -v 2 service StandardOutput=journal+console [Install] diff --git a/bindata/manifests/sriov-config-service/openshift/sriov-config-service.yaml b/bindata/manifests/sriov-config-service/openshift/sriov-config-service.yaml index d91a08707..bbfed7c6c 100644 --- a/bindata/manifests/sriov-config-service/openshift/sriov-config-service.yaml +++ b/bindata/manifests/sriov-config-service/openshift/sriov-config-service.yaml @@ -16,8 +16,8 @@ spec: # Removal of this file signals firstboot completion ConditionPathExists=!/etc/ignition-machine-config-encapsulated.json # This service is used to configure the SR-IOV VFs on NICs - Wants=network-pre.target - Before=network-pre.target + After=network-pre.target + Before=NetworkManager.service kubelet.service [Service] Type=oneshot