Bug 1940876

Summary: Components in ovirt components lack resource requests
Product: OpenShift Container Platform Reporter: Petr Muller <pmuller>
Component: StorageAssignee: Benny Zlotnik <bzlotnik>
Storage sub component: oVirt CSI Driver QA Contact: Michael Burman <mburman>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: aos-bugs, bzlotnik, gzaidman, mburman, scuppett
Version: 4.8   
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 22:54:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Petr Muller 2021-03-19 13:11:03 UTC
Description of problem:

 Mar 19 08:41:27.891: FAIL: Pods in platform namespaces are not following resource request/limit rules or do not have an exception granted:
  apps/v1/Deployment/openshift-cluster-csi-drivers/ovirt-csi-driver-controller/container/csi-provisioner does not have a cpu request (rule: "apps/v1/Deployment/openshift-cluster-csi-drivers/ovirt-csi-driver-controller/container/csi-provisioner/request[cpu]")
  apps/v1/Deployment/openshift-cluster-csi-drivers/ovirt-csi-driver-controller/container/csi-provisioner does not have a memory request (rule: "apps/v1/Deployment/openshift-cluster-csi-drivers/ovirt-csi-driver-controller/container/csi-provisioner/request[memory]") 


All payload components need requests:


(inspired by https://bugzilla.redhat.com/show_bug.cgi?id=1940518)

Comment 4 Gal Zaidman 2021-06-03 07:01:22 UTC
How to test:
1. Install an Openshift cluster
2. check that all the pods under the CSI deployment have resources.requests section:
oc -n openshift-cluster-csi-drivers get pods
you will get 3 pods:
- ovirt-csi-driver-controller
- ovirt-csi-driver-node
- ovirt-csi-driver-operator
For each of does pods check that there is a resources.requests for each container:
- oc -n openshift-cluster-csi-drivers describe pod ovirt-csi-driver-controller
- oc -n openshift-cluster-csi-drivers describe pod ovirt-csi-driver-node
- oc -n openshift-cluster-csi-drivers describe pod ovirt-csi-driver-operator

Comment 5 Michael Burman 2021-06-03 09:40:33 UTC
Verified on - 4.8.0-0.nightly-2021-06-03-014152 with rhvm-

              .: {}
                .: {}
                f:cpu: {}
                f:memory: {}

        cpu: 10m
        memory: 50Mi

Comment 8 errata-xmlrpc 2021-07-27 22:54:33 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 (Moderate: OpenShift Container Platform 4.8.2 bug fix and security 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.