Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-65711

SR-IOV: Entrypoint scripts fail to start operator in OKD when deployed using RHEL10

XMLWordPrintable

    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      When installing the SR-IOV operator in an OKD cluster, the entrypoint.sh script in the following components (i.e., sriov-cni, ib-sriov-cni, and rdma-cni) fails to start.

      The reason for the failure is that these scripts depend on the info in the os-release file, which changes in RHEL10 for OKD deployments (see sample below).

       

      # /etc/os-release
      NAME="CentOS Stream CoreOS"
      VERSION="10.0.20251023-0 (Coughlan)"
      ID="centos"
      ID_LIKE="rhel fedora"
      VERSION_ID="10"
      PLATFORM_ID="platform:el10"
      PRETTY_NAME="CentOS Stream CoreOS 10.0.20251023-0 (Coughlan)"
      ANSI_COLOR="0;31"
      LOGO="fedora-logo-icon"
      CPE_NAME="cpe:/o:centos:centos:10"
      HOME_URL="https://centos.org/"
      VENDOR_NAME="CentOS"
      VENDOR_URL="https://centos.org/"
      BUG_REPORT_URL="https://issues.redhat.com/"
      REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 10"
      REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"
      OSTREE_VERSION='10.0.20251023-0'
      VARIANT=CoreOS
      VARIANT_ID=coreos
      OPENSHIFT_VERSION="4.20" 

       

      Version-Release number of selected component (if applicable):

      4.21 and any OKD release that use RHEL10.

      How reproducible:

      Always

      Steps to Reproduce:

      1. Deploy an OKD cluster booting from a RHEL10 ISO (e.g., 4.20.0-0.okd-scos-2025-11-16-192318).
      2. Install the SR-IOV operator from RH catalogs.
      3. Watch the initContainers of the sriov-network-config-daemon-xxx pod at the openshift-sriov-network-operator namespace.

      Actual results:

      -> oc get pod
      NAME                                     READY   STATUS                  RESTARTS          AGE
      sriov-device-plugin-jj4d2                1/1     Running                 4                 20h
      sriov-network-config-daemon-fzjwr        0/1     Init:CrashLoopBackOff   261 (2m55s ago)   20h
      sriov-network-operator-cc5899d4b-klxcx   1/1     Running                 4                 20h
      -> oc logs sriov-network-config-daemon-8d64d -c sriov-infiniband-cni
      + CNI_BIN_DIR=/host/opt/cni/bin
      ++ get_source_folder_for_rhel_version
      ++ '[' '!' -f /host/etc/os-release ']'
      ++ . /host/etc/os-release
      +++ NAME='CentOS Stream CoreOS'
      +++ VERSION='10.0.20251023-0 (Coughlan)'
      +++ ID=centos
      +++ ID_LIKE='rhel fedora'
      +++ VERSION_ID=10
      +++ PLATFORM_ID=platform:el10
      +++ PRETTY_NAME='CentOS Stream CoreOS 10.0.20251023-0 (Coughlan)'
      +++ ANSI_COLOR='0;31'
      +++ LOGO=fedora-logo-icon
      +++ CPE_NAME=cpe:/o:centos:centos:10
      +++ HOME_URL=https://centos.org/
      +++ VENDOR_NAME=CentOS
      +++ VENDOR_URL=https://centos.org/
      +++ BUG_REPORT_URL=https://issues.redhat.com/
      +++ REDHAT_SUPPORT_PRODUCT='Red Hat Enterprise Linux 10'
      +++ REDHAT_SUPPORT_PRODUCT_VERSION='CentOS Stream'
      +++ OSTREE_VERSION=10.0.20251023-0
      +++ VARIANT=CoreOS
      +++ VARIANT_ID=coreos
      +++ OPENSHIFT_VERSION=4.20
      ++ rhelmajor=
      ++ case "${ID}" in
      ++ echo 'FATAL ERROR: Unsupported OS ID=centos'
      ++ exit 1
      + IB_SRIOV_CNI_BIN_FILE='FATAL ERROR: Unsupported OS ID=centos/ib-sriov' 

      Expected results:

      InitContainers to successfully run, and the SR-IOV operator starts.

              lochoa@redhat.com Leonardo Ochoa
              lochoa@redhat.com Leonardo Ochoa
              None
              None
              Zhiqiang Fang Zhiqiang Fang
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: