Bug 2123207 - CNV runs non-root VMs by default which removes cap_sys_nice from the launchers and caused VM failed to boot up
Summary: CNV runs non-root VMs by default which removes cap_sys_nice from the launcher...
Keywords:
Status: CLOSED DUPLICATE of bug 2123209
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Guest Support
Version: 4.11.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact: Kedar Bidarkar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-09-01 04:02 UTC by Gu Nini
Modified: 2022-09-02 02:15 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-01 12:42:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
virt-handler.log (1.88 MB, text/plain)
2022-09-01 04:02 UTC, Gu Nini
no flags Details

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.


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