Bug 2155189
Summary: | mounts are not propagated into namespaces | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Michal Privoznik <mprivozn> |
Component: | kernel | Assignee: | Alexey Gladkov <agladkov> |
kernel sub component: | Namespace | QA Contact: | Chao Ye <cye> |
Status: | CLOSED NOTABUG | Docs Contact: | |
Severity: | high | ||
Priority: | high | CC: | agladkov, ailan, duclee, dzheng, ebiederm, gveitmic, haizhao, jdenemar, jsuchane, lcong, lmen, mprivozn, virt-maint, yafu, yalzhang, ymankad |
Version: | 9.2 | Keywords: | Regression, TestBlocker, Triaged |
Target Milestone: | rc | ||
Target Release: | 9.0 | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | 2151869 | Environment: | |
Last Closed: | 2023-01-02 12:41:31 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: | |||
Bug Depends On: | |||
Bug Blocks: | 2151869 |
Description
Michal Privoznik
2022-12-20 11:10:36 UTC
Setting TestBlocker keyword since this is blocking verification of the original bug. (In reply to Michal Privoznik from comment #0) > 1) just to make sure mount events are being propagated: > > # mount --make-rshared / > > 2) check hugetlbfs mounts: > > # mount | grep huge > hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,seclabel,pagesize=2M) > > 3) in another terminal, unshare mount namespace: > > # unshare -m Let's stop at this step. From unshare(1) manpage: ``` unshare since util-linux version 2.27 automatically sets propagation to private in a new mount namespace to make sure that the new namespace is really unshared. It’s possible to disable this feature with option --propagation unchanged. Note that private is the kernel default. ``` If I run the command with the option, all subsequent steps work as you would expect: # unshare --mount --propagation unchanged > Therefore, this is completely independent of libvirt and should be reported > against kernel for further investigation. Then, we can revisit our bug. I don't know anything about the original bug, but the steps from the description is fully consistent with the behavior described in the documentation. |