Bug 2123207

Summary: CNV runs non-root VMs by default which removes cap_sys_nice from the launchers and caused VM failed to boot up
Product: Container Native Virtualization (CNV) Reporter: Gu Nini <ngu>
Component: Guest SupportAssignee: Nobody <nobody>
Status: CLOSED DUPLICATE QA Contact: Kedar Bidarkar <kbidarka>
Severity: high Docs Contact:
Priority: high    
Version: 4.11.1CC: cnv-qe-bugs, dkenigsb, lijin, lpivarc, mtosatti, ocohen, sgott, vromanso
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-01 12:42:13 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:
Attachments:
Description Flags
virt-handler.log none

Description Gu Nini 2022-09-01 04:02:51 UTC
Created attachment 1908860 [details]
virt-handler.log

Description of problem:
After the env upgrade from OCP4.10.26 to OCP4.11.1/OCP-V4.11.0, the real time VM can't boot up since it's run as non-root VM by default. Please check the attached 'virt-handler.log' for details. 

Conclude what Vladik Romanovsky said about the root cause of the issue as follows:

'''
CNV runs non-root VMs by default now, this removes cap_sys_nice from the launchers. The problem is that CNV makes this switch before upstream KubeVirt did: https://github.com/kubevirt/kubevirt/blob/782b82aff8adc516d98421466ab9e43835efb89c/pkg/virt-controller/services/rendercontainer.go#L244
'''


Version-Release number of selected component (if applicable):
OpenShift Virtualization: 4.11.0
Openshift: 4.11.1

How reproducible:
100%

Steps to Reproduce:
1. Upgrade env to OCP4.11.1/OCP-V4.11.0
2. Try to boot up a real time VM created formerly
3.

Actual results:
It's found the VM failed to boot up successfully.

Expected results:
The VM could boot up without issue.

Additional info:

Comment 1 sgott 2022-09-01 12:42:13 UTC
This has confused me. As far as I can tell it's a dup of 2123209. Please feel free to re-open if you really intended to have this. (we will open backport BZs after it has been fixed upstream in the event it's needed).

*** This bug has been marked as a duplicate of bug 2123209 ***

Comment 2 Gu Nini 2022-09-02 02:15:21 UTC
(In reply to sgott from comment #1)
> This has confused me. As far as I can tell it's a dup of 2123209. Please
> feel free to re-open if you really intended to have this. (we will open
> backport BZs after it has been fixed upstream in the event it's needed).
> 
> *** This bug has been marked as a duplicate of bug 2123209 ***

Sorry, reported a duplication for web page refresh/network issue.