-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
regression in v1.23.1 #697
Comments
It looks like commit 7005d07 causes it. |
|
What I am seeing on the server side:
|
@zvier PTAL |
Note that it might very well be a bug in Podman. At least we cannot rule that out. |
That differs from the order in which they're acquired in |
I don't think there is a regression in v1.23.1, IMO it only showed a race condition that already existed. I think the issue is that podman performs the unmount from the cleanup process, and that confuses the mounts RefCounter. So next time the podman daemon tries to do a mount, nothing happens because the RefCounter believes it is already mounted, while in reality it was unmounted by the cleanup process. |
I've tried with: diff --git a/vendor/github.com/containers/storage/drivers/counter.go b/vendor/github.com/containers/storage/drivers/counter.go
index 72551a38d..ec7a6090a 100644
--- a/vendor/github.com/containers/storage/drivers/counter.go
+++ b/vendor/github.com/containers/storage/drivers/counter.go
@@ -51,6 +51,8 @@ func (c *RefCounter) incdec(path string, infoOp func(minfo *minfo)) int {
if c.checker.IsMounted(path) {
m.count++
}
+ } else if !c.checker.IsMounted(path) {
+ m.count = 0
}
infoOp(m)
count := m.count Not sure if it is the best fix, but at least the tests pass now. |
if a previously mounted container was unmounted externally (e.g. through conmon cleanup for Podman containers), the ref counter will lose track of it and report it as still mounted. Closes: containers#697 Signed-off-by: Giuseppe Scrivano <[email protected]>
PR here: #698 |
if a previously mounted container was unmounted externally (e.g. through conmon cleanup for Podman containers), the ref counter will lose track of it and report it as still mounted. Closes: containers#697 Signed-off-by: Giuseppe Scrivano <[email protected]>
if a previously mounted container was unmounted externally (e.g. through conmon cleanup for Podman containers), the ref counter will lose track of it and report it as still mounted. Closes: containers#697 Signed-off-by: Giuseppe Scrivano <[email protected]>
v1.23.1 is causing regressions in Podman's
apiv2
tests. I do not have the time to track it down but need to get work done that's currently blocked by the regression so I first revert the bump in c/image (see containers/image#1031).The text was updated successfully, but these errors were encountered: