-
Notifications
You must be signed in to change notification settings - Fork 247
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
devmapper regression #233
Comments
Add force to umount to force the umount of a container image Add an interface to indicate whether or not the layer is mounted Add a boolean return from unmount to indicate when the layer is really unmounted Signed-off-by: Daniel J Walsh <[email protected]>
How quickly can kata recreate the issue? Can we start bisecting these to figure out exactly what PR broke Kata? What is the exact symptom that kata is failing on ? |
I've asked them to do so and they're on it last time we spoke
It's an invalid argument thrown when unmounting the devmapper mount |
The only argument we ever give to unmount under devicemapper is MNT_DETATCH.
@rhvgoyal Could yo ulook in the kernel when does unmount return EINVAL? |
@chavafg @sboeuf this issue is tracking the regression from cri-o/cri-o#1883 |
Looks like same issues can be reproduced by podman then. |
Hi I use this storage config on
And then use these steps:
I'll try to check which of the commits here is the one that broke devicemapper. |
Actually if we can get this to happen with podman, should make it easy to diagnose. |
So I revendored BTW, I could also use podman to reproduce the issue:
I used this storage configuration for podman:
|
so, reverting #198 altogether fixes your issue? |
This the only suspicious line I've found in #198 which is still unmounting w/o force (so leaving mounts behind) https://github.com/containers/storage/pull/198/files#diff-a281f22627802db5c62d316f5eac7a96R932 |
I doubt that can be the issue but it's the only place I see @sboeuf @chavafg could you guys try reverting that PR altogether to actually narrow down if that's the real issue? |
Yes of course. @chavafg could you please try to set this line to
I don't follow, @chavafg already confirmed that this PR was the problem. He did bisect and found that it was the one causing the failure. |
@sboeuf sorry I misread his comment, my bad, then cool yeah, if we know that's the issue, let's narrow it down and fix it, thanks à lot guys for the help |
alright I may have found the issue, I'm running kata ci in crio to see if that's the issue, I'll open a PR here if that fixes the issue for Kata (cri-o/cri-o#1910) |
see #240 and cri-o/cri-o#1910 which are fixing this |
ok devmapper is now fixed, but something is failing on setting ulimits in container when kata is used, maybe it's the custom kernel used? |
This check has been wrongly removed with containers#198 The check must stay as it's now part of the Stop/Delete API so reintroduce it back This fixes containers#233 and the associated CRI-O issues This PR + cri-o/cri-o#1910 fully fix the issue I'm going to revendor c/storage in CRI-O to full fix crio after this is merged Signed-off-by: Antonio Murdaca <[email protected]>
See cri-o/cri-o#1883 for more information, the range of commits which probably broke devmapper in CRI-O is:
68332c0 Merge pull request #216 from giuseppe/userns-restore-setuid-setgid
2df72f3 chown: restore SUID and SGID bits
1d49427 Merge pull request #215 from nalind/create-error
2805a43 layerStore.Put(): always check for Create() errors
02db7cb Merge pull request #214 from nalind/hold-locks
3df3c9f Hold the layer store lock while diffing
243c4cd Merge pull request #213 from nalind/rolayer-lock
c8670ef Fix a lock inversion
d0cb010 Merge pull request #212 from zmedico/locker-locked-stub-to-lockfile_windows
587b6cc Implement Locker.Locked() for windows
9fcbb57 Merge pull request #210 from zmedico/lock-sanity-checks-for-save-methods
c7ba574 Add lock sanity checks to Save() methods
17c7d1f Merge pull request #205 from rhatdan/subuid
ad12a70 Add more information in errors about missing uidimappings or gidmappings
956a197 Merge pull request #195 from giuseppe/fuse-overlayfs-shifting
3f55e5a shifting: raise an error if the container needs shifting
06cea37 tests: add test for shifting support
1897396 drivers: inform Mount of the mappings used by the container
140e0b6 Makefile: install ffjson
883ee15 store: use the original image if the driver supports shifting
1e60d8a store: include layerID in the error message
9bb1031 drivers: add new method SupportsShifting() to LayerIDMapUpdater
6480245 overlay: enable support for shifting when FUSE is used
8c814e0 overlay: use full paths to the mount program
9f0144d storage.conf: move ostree_repo and skip_mount_home to the correct section
afdedba Merge pull request #201 from rhatdan/mountopt
2569af9 Fix overlay to handle mountopt properly
7098fdc Merge pull request #176 from rhatdan/mount-options
8b1a0f8 Add default mount options to pass to drivers
cb8d712 Merge pull request #200 from rhatdan/mounted
1538971 Change Mounted to return the number of times mounted
46a8a1c Merge pull request #198 from rhatdan/umount
1075a73 Modify storage to allow callers to determine if a mount point is mounted
124de68 Merge pull request #199 from giuseppe/allow-to-override-conf-file
e933db5 storage: rename fuse_program to mount_program
759aab1 storage: allow to override .fuse_program from the conf file
c4aa7ad store: move configuration file parsing to new function
0ab7541 Merge pull request #197 from TomasTomecek/master
404315a log errors from ApplyUncompressedLayer
90d0a58 Merge pull request #194 from rhatdan/contributing
3a5d1ec Potential contributors need to find the CONTRIBUTOR information.
9cbb6cb Merge pull request #137 from giuseppe/ostree-storage
13af8ce tests: add test for ostree deduplication
d33931a tests: set mtime to the epoch
c7fdad4 ci: install ostree
85bf5a4 Vagrantfile: update to Fedora 28
6c122a2 vagrant: install ostree
f3e7ee3 configuration: new option skip_mount_home
52a3781 vfs: add support for ostree deduplication
0c7cb60 overlay: new option to support ostree deduplication
ffd808a ostree: new package
eca8a17 storage: add ostree files
58f557c Merge pull request #191 from giuseppe/overlay-fuse-program
fc4b862 containers-storage: add new option .fuse_program
51f1f85 Merge pull request #190 from marcov/better-failmsg
d990e2b Improve duplicate name error message on container create
The text was updated successfully, but these errors were encountered: