From 9a8cb167338fb9576d3682abaf7854fc0cb8af4f Mon Sep 17 00:00:00 2001 From: mikarautakumpu Date: Fri, 6 Mar 2020 15:40:12 +0200 Subject: [PATCH] sriovdp is in PodInitializing state sriovdp does not work after https://gerrit.akraino.org/r/c/ta/infra-ansible/+/2237 sriovdp_config: Improvements and fixes. Modification is need to init.sh script. Signed-off-by: mikarautakumpu Change-Id: Ia3a7e19f09f845b787715701bb5786174b31b24c --- SPECS/caas-sriovdp.spec | 2 +- docker-build/sriovdp/init.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SPECS/caas-sriovdp.spec b/SPECS/caas-sriovdp.spec index 74b102a..656026a 100644 --- a/SPECS/caas-sriovdp.spec +++ b/SPECS/caas-sriovdp.spec @@ -15,7 +15,7 @@ %define COMPONENT sriovdp %define RPM_NAME caas-%{COMPONENT} %define RPM_MAJOR_VERSION 3.1.0 -%define RPM_MINOR_VERSION 0 +%define RPM_MINOR_VERSION 1 %define IMAGE_TAG %{RPM_MAJOR_VERSION}-%{RPM_MINOR_VERSION} %define go_version 1.12.10 %define SRIOVDP 3.1 diff --git a/docker-build/sriovdp/init.sh b/docker-build/sriovdp/init.sh index e19ce37..0c67ea8 100755 --- a/docker-build/sriovdp/init.sh +++ b/docker-build/sriovdp/init.sh @@ -20,7 +20,7 @@ while true; do rootdevs=`jq -r .resourceList[].rootDevices[] /dev/null` if [[ -n "$rootdevs" ]]; then for pci in $rootdevs; do - vf=`cat /sys/bus/pci/devices/0000:$pci/sriov_numvfs` + vf=`cat /sys/bus/pci/devices/$pci/sriov_numvfs` echo "$pci: $vf VFs" if [[ -z "$vf" || "$vf" == "0" ]]; then echo "No VFs found -> SR-IOV DP cannot be started" -- 2.16.6