Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2100524

Summary: [4.9] low-latency-hooks.sh script requires ip binary in container image
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: Performance Addon OperatorAssignee: Yanir Quinn <yquinn>
Status: CLOSED ERRATA QA Contact: Gowrishankar Rajaiyan <grajaiya>
Severity: high Docs Contact:
Priority: high    
Version: 4.10CC: browsell, bzvonar, grajaiya, shajmakh
Target Milestone: ---   
Target Release: 4.9.z   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-12 13:36:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2091944    
Bug Blocks:    

Comment 3 Shereen Haj Makhoul 2022-09-09 11:20:53 UTC
Verification:

OCP: 4.9.48
PAO: 4.9.11-2

Steps: 

PP:
apiVersion: performance.openshift.io/v2
kind: PerformanceProfile
metadata:
  name: performance
spec:
  cpu:
    isolated: 0-2
    reserved: "3"
  hugepages:
    defaultHugepagesSize: 1G
    pages:
    - count: 1
      size: 1G
  nodeSelector:     
    node-role.kubernetes.io/worker-cnf: ""
  realTimeKernel:
    enabled: true
  runtimeClass: performance-performance

- check the rps mask on veth devices after applying the PP - should be 8 to correspond to the reserved cpus:
sh-4.4# cd /sys/devices/virtual/net
sh-4.4# find . -name rps_cpus -printf '%p\n' -exec cat {} \;
./ovs-system/queues/rx-0/rps_cpus
008
./lo/queues/rx-0/rps_cpus
008
./e63d8ddc8a95036/queues/rx-0/rps_cpus
008
./39779e7bf3fec58/queues/rx-0/rps_cpus
008
./br-ex/queues/rx-0/rps_cpus
008
./c134c946fdc1c45/queues/rx-0/rps_cpus
008
./genev_sys_6081/queues/rx-0/rps_cpus
008
./br-int/queues/rx-0/rps_cpus
008
./ovn-k8s-mp0/queues/rx-0/rps_cpus
008
./60c2e5b39aff3b1/queues/rx-0/rps_cpus
008

apply the gu pod (for simplicity align it to one of the nodes): 

apiVersion: v1
kind: Pod
metadata:
  name: test-runtime
  annotations:
     irq-load-balancing.crio.io: "disable"
     cpu-quota.crio.io: "disable"
spec:
  nodeName: ocp492635374-worker-1.libvirt.lab.eng.tlv2.redhat.com
  containers:
  - name: ubi-minimal-test
    image: quay.io/yanirq/test-ubi
    #command: ["sleep", "1h"]
    resources:
      requests:
        cpu: 2
        memory: "200M"
      limits:
        cpu: 2
        memory: "200M"
  nodeSelector:
    node-role.kubernetes.io/worker-cnf: ""
  runtimeClassName: performance-performance

oc get pod 
NAME           READY   STATUS    RESTARTS   AGE
test-runtime   1/1     Running   0          7s

check that under there are no errors related to binary not found:
sh-4.4# journalctl | grep low-latency-hooks
sh-4.4# journalctl | grep "ip: command not found"
sh-4.4# 

moving to verified

Comment 5 errata-xmlrpc 2022-09-12 13:36:57 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 4.9.48 low-latency extras update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:6408