Bug 2174859 - Need Root FeatureGate configurable via HCO CR
Summary: Need Root FeatureGate configurable via HCO CR
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Installation
Version: 4.13.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.14.0
Assignee: Simone Tiraboschi
QA Contact: Debarati Basu-Nag
URL:
Whiteboard:
Depends On: 2175171
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-02 14:08 UTC by Akriti Gupta
Modified: 2023-11-08 14:05 UTC (History)
4 users (show)

Fixed In Version: hco-bundle-registry-container-v4.14.0.rhel9-825
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2175171 (view as bug list)
Environment:
Last Closed: 2023-11-08 14:05:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt hyperconverged-cluster-operator pull 2353 0 None Merged handle nonRoot -> root FG transition 2023-06-06 09:55:49 UTC
Red Hat Issue Tracker CNV-26376 0 None None None 2023-03-02 14:10:31 UTC
Red Hat Product Errata RHSA-2023:6817 0 None None None 2023-11-08 14:05:20 UTC

Description Akriti Gupta 2023-03-02 14:08:35 UTC
Description of problem:
Add support for configuring Root FeartureGate via HCO CR 

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


How reproducible:


Steps to Reproduce:
1.$  oc get hyperconverged kubevirt-hyperconverged -n openshift-cnv -o yaml | grep -A 8 "featureGates"

2.
3.

Actual results:
  featureGates:
    deployKubeSecondaryDNS: false
    deployTektonTaskResources: false
    enableCommonBootImageImport: true
    nonRoot: true

Expected results:
  featureGates:
    deployKubeSecondaryDNS: false
    deployTektonTaskResources: false
    enableCommonBootImageImport: true
    Root: False

Additional info:
The default value for root is expected to be false

Comment 1 Kedar Bidarkar 2023-03-02 14:12:36 UTC
This is being request due to the following PR, https://github.com/kubevirt/kubevirt/pull/8563

Comment 2 Simone Tiraboschi 2023-03-02 16:33:18 UTC
I see that the NonRoot FG is still there (although deprecated): https://github.com/kubevirt/kubevirt/blob/release-0.59/pkg/virt-config/feature-gates.go#L48

Being us already in BlockerOnly phase and being this a user facing change we will keep the current API for 4.13 (NonRoot FG with default=true) and we will properly expose the new one (Root FG with default=false) with a conversion on upgrades only for 4.14.

Comment 7 Debarati Basu-Nag 2023-06-15 18:44:35 UTC
Verified against CNV-v4.14.0.rhel9-894:
root featuregate is now available and configurable via hco:
=========[cloud-user@ocp-ipi-executor-xl ~]$ oc get kubevirt kubevirt-kubevirt-hyperconverged -n openshift-cnv -o json | jq ".spec.configuration.developerConfiguration.featureGates"
[
  "DataVolumes",
  "SRIOV",
  "CPUManager",
  "CPUNodeDiscovery",
  "Snapshot",
  "HotplugVolumes",
  "ExpandDisks",
  "GPU",
  "HostDevices",
  "DownwardMetrics",
  "NUMA",
  "VMExport",
  "DisableCustomSELinuxPolicy",
  "KubevirtSeccompProfile",
  "HotplugNICs",
  "VMPersistentState",
  "WithHostModelCPU",
  "HypervStrictCheck"
]
[cloud-user@ocp-ipi-executor-xl ~]$ oc get hco kubevirt-hyperconverged -n openshift-cnv -o json | jq ".spec.featureGates"
{
  "deployKubeSecondaryDNS": false,
  "deployTektonTaskResources": false,
  "disableMDevConfiguration": false,
  "enableCommonBootImageImport": true,
  "persistentReservation": false,
  "root": false,
  "withHostPassthroughCPU": false
}
[cloud-user@ocp-ipi-executor-xl ~]$ oc edit hco kubevirt-hyperconverged -n openshift-cnv
hyperconverged.hco.kubevirt.io/kubevirt-hyperconverged edited
[cloud-user@ocp-ipi-executor-xl ~]$ oc get kubevirt kubevirt-kubevirt-hyperconverged -n openshift-cnv -o json | jq ".spec.configuration.developerConfiguration.featureGates"
[
  "DataVolumes",
  "SRIOV",
  "CPUManager",
  "CPUNodeDiscovery",
  "Snapshot",
  "HotplugVolumes",
  "ExpandDisks",
  "GPU",
  "HostDevices",
  "DownwardMetrics",
  "NUMA",
  "VMExport",
  "DisableCustomSELinuxPolicy",
  "KubevirtSeccompProfile",
  "HotplugNICs",
  "VMPersistentState",
  "WithHostModelCPU",
  "HypervStrictCheck",
  "Root"
]
[cloud-user@ocp-ipi-executor-xl ~]$ oc get hco kubevirt-hyperconverged -n openshift-cnv -o json | jq ".spec.featureGates"
{
  "deployKubeSecondaryDNS": false,
  "deployTektonTaskResources": false,
  "disableMDevConfiguration": false,
  "enableCommonBootImageImport": true,
  "persistentReservation": false,
  "root": true,
  "withHostPassthroughCPU": false
}
[cloud-user@ocp-ipi-executor-xl ~]$

Comment 10 errata-xmlrpc 2023-11-08 14:05:04 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


Note You need to log in before you can comment on or make changes to this bug.