From 95eed3f623bbe8531767684175274e0399e6390e Mon Sep 17 00:00:00 2001 From: Leonardo Milleri Date: Wed, 12 Jul 2023 18:01:02 +0200 Subject: [PATCH] Fix issue when creating SRIOV/vDPA devices Problem: if you apply a policy with vdpa devices, no VFs are created Solution: make sure all the references to the file sriov_config.json are correct, since its location has changed https://github.com/k8snetworkplumbingwg/sriov-network-operator/issues/471 Signed-off-by: Leonardo Milleri --- .../files/switchdev-configuration-after-nm.sh.yaml | 4 ++-- .../files/switchdev-configuration-before-nm.sh.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bindata/manifests/switchdev-config/files/switchdev-configuration-after-nm.sh.yaml b/bindata/manifests/switchdev-config/files/switchdev-configuration-after-nm.sh.yaml index 8d705a365..03de02980 100644 --- a/bindata/manifests/switchdev-config/files/switchdev-configuration-after-nm.sh.yaml +++ b/bindata/manifests/switchdev-config/files/switchdev-configuration-after-nm.sh.yaml @@ -5,7 +5,7 @@ contents: inline: | #!/bin/bash set -eux - input="/etc/sriov_config.json" + input="/etc/sriov-operator/sriov_config.json" minId=-1 maxId=-1 @@ -26,7 +26,7 @@ contents: } if [ ! -f $input ]; then - echo "File /etc/sriov_config.json not exist." + echo "File /etc/sriov-operator/sriov_config.json not exist." exit fi diff --git a/bindata/manifests/switchdev-config/files/switchdev-configuration-before-nm.sh.yaml b/bindata/manifests/switchdev-config/files/switchdev-configuration-before-nm.sh.yaml index 3337b22c9..32187683b 100644 --- a/bindata/manifests/switchdev-config/files/switchdev-configuration-before-nm.sh.yaml +++ b/bindata/manifests/switchdev-config/files/switchdev-configuration-before-nm.sh.yaml @@ -5,11 +5,11 @@ contents: inline: | #!/bin/bash set -eux - input="/etc/sriov_config.json" + input="/etc/sriov-operator/sriov_config.json" UDEV_RULE_FILE='/etc/udev/rules.d/10-persistent-net.rules' if [ ! -f $input ]; then - echo "File /etc/sriov_config.json not exist." + echo "File /etc/sriov-operator/sriov_config.json not exist." exit fi