-
Notifications
You must be signed in to change notification settings - Fork 27
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
VM loop device not cleaned up in CI #252
Comments
Also |
Separate issue, I'd think. The loop device generally works there. |
Got any (CI) log where this can be seen? Maybe a github actions upstream bug? Do you think you could come up with minimal code for reproduction? Then this could be reported to github actions. |
I don't fully understand that code. However, to report this bug to github actions we'd need a tiny script as minimal and simple as possible. Surely not using docker if avoidable and certainly not mentioning grml-debootstrap. qemu-img, parted, kpartx, losetup, mount... Which are the minimal steps required to reproduce this on github CI? Maybe there's already an open bug report: |
Maybe not a github actions bug. Here people had a similar issues:
Someone indicated using
Are more important takeaway might be that one cannot (easily) mount the "same" image twice. Does your code attempt to mount both images at the same time? It's not the same file but the images created by your scripts might look confusingly similar to the Linux coreutils. Here is how others fixed a similar issue by using Would it be an option for you to modify your PR to mount only 1 image at a time to work around this bug? From above forum topic a user suggested:
Not sure to grml-debootstrap could do something similar, i.e. avoid kpartx / losetup. Using offset might be more complicated and error prone. |
No, the problem here is like this:
If grml-debootstrap weren't a shell script I'd try replacing losetup/(k)partx/... with syscalls, but alas... |
syscalls might help with debugging and finding out what the issue is but generally I think it's better to stick with the Linux coreutils. There was a mysterious kpartx in the past that might still not be fully / cleanly fixed. If there's anything similar would be good to get that reported upstream. Are you sure about the offset? I don't know where the number Maybe replace the mount using offset with the usual way of doing this? Could you add additional debug output please?
|
Yeah, I was generally thinking we could switch from kpartx to partx, as thats in util-linux. But I haven't investigated this option.
The offset is correct for the specific configuration tested; but this is exactly why I don't want to deal with offsets. (k)partx does this calculation, and I don't want to write code for parsing partition tables... |
This is from a run with more |
|
sure, but this is a long time after the problem occurred. |
At least in GitHub Actions the cleanup of the loop device doesn't seem to work properly.
The text was updated successfully, but these errors were encountered: