Description
When a container goes through block-based rootfs handling, urunc may extract runtime files (for example unikernel, initrd, urunc.json) under monitor-rootfs-related paths.
In the current delete path, directory cleanup is fail-fast:
if removing one cleanup target errors out, later targets are not attempted.
Reproduction (Linux host)
- Create a container that takes the block-rootfs path and reaches monitor rootfs setup.
- Before running
urunc delete, make one cleanup target fail
- Run
urunc delete <container-id>.
- Observe that delete stops after the first cleanup error and does not attempt remaining cleanup targets.
- Check bundle/runtime paths and confirm leftover monitor-rootfs artifacts remain
Expected
Delete should attempt all cleanup targets, log per-path failures, and finish best-effort cleanup.
Actual
Cleanup exits early on the first removal error, leaving later targets unattempted.
Description
When a container goes through block-based rootfs handling, urunc may extract runtime files (for example
unikernel,initrd,urunc.json) under monitor-rootfs-related paths.In the current delete path, directory cleanup is fail-fast:
if removing one cleanup target errors out, later targets are not attempted.
Reproduction (Linux host)
urunc delete, make one cleanup target failurunc delete <container-id>.Expected
Deleteshould attempt all cleanup targets, log per-path failures, and finish best-effort cleanup.Actual
Cleanup exits early on the first removal error, leaving later targets unattempted.