Bug 1700883
| Summary: | Impossible to recreate a container with the same name that a container already removed | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Emilien Macchi <emacchi> |
| Component: | podman | Assignee: | Jindrich Novy <jnovy> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | atomic-bugs <atomic-bugs> |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 8.0 | CC: | atonner, bdobreli, chjones, dwalsh, jligon, jnovy, lsm5, mheon, tsweeney |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
| Target Release: | 8.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | podman-1.4.4 and newer in container-tools-2.0-8.2.0 and newer | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-10-19 15:36:06 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: | |||
|
Description
Emilien Macchi
2019-04-17 14:38:48 UTC
Matt any update on this one? This has high priority. Per earlier diagnosis, what we're seeing appears to be Podman being run without /var/run mounted at some point, which obliterates c/storage and Podman local state as both assume a reboot has occurred. The most likely cause of this is Podman being run inside a container without /var/run mounted. I don't believe we can reasonably recover from this. Correcting Podman's own state might be possible, but I don't think we can reconfigure the c/storage mount counter. I think our best course of action is attempt to identify where Podman is being called without /var/run mounted and fixing that call. I'm going to land a patch upstream to log errors when Podman is run without /var/run mounted if /var/lib/containers or /var/lib/containers/storage is mounted into the container. We can modify the patch to turn logged errors into a hard fail, which should make it easier to identify where incorrect Podman calls are occurring. (A further alternative would be attempting to convert all instances of Podman in a container to use podman-remote instead of mounting directories - it only requires mounting a single socket, as opposed to several directories, making it much more foolproof - but remote work is still incomplete in some areas so this is more of a long term solution) *** Bug 1703126 has been marked as a duplicate of this bug. *** Fixed in podman 1.4.4 Emilien, based on comment #11 this got fixed in podman-1.4.4. If OpenStack uses container-tools-2.0-8.2.0 then it should be good as podman-1.6.4 is already there. Or do you still see related issue there? |