Hmm, the fact that the remaining reference is in common/shmounts suggests a bug in the mntns logic we have in the LXD snap. We’ve seen a few issues with that before but need to patch the tool to be more verbose on failures so that we may track those down for good.
Ya, I’m not complaining just documenting a fix that is reliable and easy.
Pretty sure I hit this same issue when trying to resize disks too. Workaround for that is to set the default size and copy the container if anyone is looking for that answer instead or maybe this force unmap would work too. Need to test.
Have same issue… Cannot delete a container because his rbd device is “busy”.
Everytime the rbd device is mapped inside an OSD namespace launched with podman, it happens about 1 of 20 time and everytime the lock is in an Podman OSD NS.
I’m trying to find out the root cause and find out how to have a systematic reproduction scheme and gotcha ! It seems to be related to adding OSD :
I had started a loop who create / start / add interfaces / stop / delete a container and it works for thousands iterations … If I add an OSD while in loop it failed and the namespace who hold the rbd device is … the new OSD podman !
This morning I will start another loop who create image / map / format / write something / unmount / umap / delete and see if the OSD add broke the chain.