Bug 2221801

Summary: Unable to set autoCPULimitNamespaceLabelSelector via HCO CR
Product: Container Native Virtualization (CNV) Reporter: Denys Shchedrivyi <dshchedr>
Component: VirtualizationAssignee: Jed Lejosne <jlejosne>
Status: CLOSED ERRATA QA Contact: zhe peng <zpeng>
Severity: high Docs Contact:
Priority: high    
Version: 4.14.0CC: acardace
Target Milestone: ---   
Target Release: 4.14.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: v4.14.0.rhel9-1569 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-08 14:05:53 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:
Embargoed:

Description Denys Shchedrivyi 2023-07-10 20:02:06 UTC
Description of problem:

Unable to set autoCPULimitNamespaceLabelSelector via HCO CR

The only option to set it now - use the json patch annotations which is a work around, so it would be better to be able to manage  autoCPULimitNamespaceLabelSelector directly in HCO CR configuration

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:
 

Expected results:


Additional info:

Comment 1 zhe peng 2023-08-21 05:52:25 UTC
verify with build: CNV-v4.14.0.rhel9-1632

step:
1. Edit HCO, add 
....
 resourceRequirements:
    autoCPULimitNamespaceLabelSelector:
      matchLabels:
        autocpulimit: "true"
....

saved.

2. create a namespace with label
  autocpulimit: "true"

3. create a vm in new namespace

vm running w/o error.

4. change  vmiCPUAllocationRatio to 1 and saved.
Get error: Invalid value: "object": Automatic CPU limits are incompatible with a VMI CPU allocation ratio of 1

move to verified.

Comment 2 Jed Lejosne 2023-08-21 13:17:27 UTC
*** Bug 2214362 has been marked as a duplicate of this bug. ***

Comment 4 errata-xmlrpc 2023-11-08 14:05:53 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 (Important: OpenShift Virtualization 4.14.0 Images security and bug fix 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/RHSA-2023:6817