Bug 1868221
| Summary: | Missing /etc/mtab symlink in CRI-O containers | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Robin Cernin <rcernin> |
| Component: | Node | Assignee: | Qi Wang <qiwan> |
| Node sub component: | CRI-O | QA Contact: | MinLi <minmli> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | medium | ||
| Priority: | medium | CC: | aos-bugs, dornelas, dwalsh, jokerman, mburke, m.lange, nagrawal, qiwan, tsweeney |
| Version: | 4.3.z | ||
| Target Milestone: | --- | ||
| Target Release: | 4.9.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause: Cri-o does not symlink the /proc/mounts to /etc/mtab
Consequence: No symlink /etc/mtab is not compatible with docker.
Fix: Cri-o add symlink /etc/mtab to /proc/mounts.
Result: Users can check the mounts from /etc/mtab inside the containers.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-10-18 17:28:52 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: | 1186913 | ||
|
Description
Robin Cernin
2020-08-12 03:24:45 UTC
No update this sprint Did not get completed this sprint. Hi, can you estimate when a fix for this problem will be available and will it be backported to all supported versions? We ran in this problem and we are currently running OCP 4.7.12 and want to stay at 4.7.x until EOL. best regards Qi, any ETA on the fix? I will start working on this issue, so the ETA will be 4.9. Status set to MODIFIED, https://github.com/cri-o/cri-o/pull/5051 just merged. verified with version : 4.9.0-0.nightly-2021-08-25-010624 create a pod using image httpd:latest, and run command in this container: # ls -l /etc/mtab lrwxrwxrwx. 1 root root 12 Aug 25 08:09 /etc/mtab -> /proc/mounts # ls -l /proc/mounts lrwxrwxrwx. 1 root root 11 Aug 25 08:10 /proc/mounts -> self/mounts Qi -- Can you take a look at my proposed release note for this BZ? I saw your doc text and made a few changes to match our style. I want to make sure i didn't change the meaning. Thank you in advance. Michael * Previously, in containers, CRI-O did not create a symlink from `/proc/mounts` file to the `/etc/mtab` file. As a consequence, the mount functions within the container did not work. CRI-O now adds the symlink. As a result, users the mount functions are working as expected within containers. (In reply to Michael Burke from comment #15) > Qi -- Can you take a look at my proposed release note for this BZ? I saw > your doc text and made a few changes to match our style. I want to make sure > i didn't change the meaning. Thank you in advance. > > Michael > > * Previously, in containers, CRI-O did not create a symlink from > `/proc/mounts` file to the `/etc/mtab` file. As a consequence, the mount > functions within the container did not work. CRI-O now adds the symlink. As > a result, users the mount functions are working as expected within > containers. "the mount functions within the container did not work" this is not correct. The mount functions have no issues. The consequence is to allow users to check the list of the mounted devices in the /etc/mtab file. Qi --Thank you for the clarification! Michael 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 (Moderate: OpenShift Container Platform 4.9.0 bug fix and security 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-2021:3759 |