Bug 1985377
Summary: | [rhel9][nova] libvirt containerized on ubi:9 or ubi:8 with centos9 host (cgroupsv2) is using wrong namespace | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | David Vallee Delisle <dvd> | ||||
Component: | openstack-tripleo-heat-templates | Assignee: | OSP Team <rhos-maint> | ||||
Status: | CLOSED ERRATA | QA Contact: | Joe H. Rahme <jhakimra> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 17.0 (Wallaby) | CC: | alifshit, bdobreli, dasmith, eglynn, jhakimra, jschluet, kchamart, mburns, mschuppe, phrdina, ratailor, sbauza, sgordon, virt-maint, vromanso | ||||
Target Milestone: | beta | Keywords: | Patch, Triaged | ||||
Target Release: | 17.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | openstack-tripleo-heat-templates-14.3.1-0.20220607161058.ced328c.el9ost | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2022-09-21 12:16:15 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
David Vallee Delisle
2021-07-23 14:16:35 UTC
So I did some investigating and after I managed to reproduce the issue locally it turned out that this is not libvirt issue at all. When I tried to create cgroup manually inside the container and tried to move manually started QEMU process I got the same error from kernel: "No such file or directory". That meant this has to be related to the fact that we are running inside a container and a bit more reading lead me to this part of "man podman run": --cgroupns=mode Set the cgroup namespace mode for the container. • host: use the host's cgroup namespace inside the container. • container:id: join the namespace of the specified container. • private: create a new cgroup namespace. • ns:path: join the namespace at the specified path. If the host uses cgroups v1, the default is set to host. On cgroups v2, the default is private. When I tried starting the container with "--cgroupns=host" I was again able manually move the QEMU process to different cgroup and libvirt no longer failed with that error as well. Based on these findings moving to Nova as they need to use that option as well. Thanks Pavel. Testing locally on c9 and upstream with CI on c8 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 (Release of components for Red Hat OpenStack Platform 17.0 (Wallaby)), 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/RHEA-2022:6543 |