fix(vm-driver): fixes BYOC sandbox creation failing with ext4-fs writ…#2150
fix(vm-driver): fixes BYOC sandbox creation failing with ext4-fs writ…#2150bornav wants to merge 1 commit into
Conversation
|
All contributors have signed the DCO ✍️ ✅ |
|
mise run pre-commit fails both on main and with my patch with error: |
|
I have read the DCO document and I hereby sign the DCO. |
|
recheck |
|
/ok to test 6bde630 |
|
Could we keep the prepared image disk hypervisor-read-only? Since this is a shared cache, attaching it writable allows guest root to modify How about making umount |
6bde630 to
0320b2e
Compare
…e access unavailable
0320b2e to
ce8b24d
Compare
|
@drew after rebasing from main retested both scenarios again, still the patch here is neccesary for BYOC but now with latest main permissions work well and afaics nothing is broken
|

Summary
Fix BYOC sandbox creation failing with "EXT4-fs (vdc): write access unavailable, cannot proceed" under the VM driver by cleanly unmounting the overlay filesystem before the image-prep VM exits, preventing the ext4 journal from being left in a dirty state. Adds noload to the image-cache mount and attaches the disk as hypervisor-writable as belt-and-suspenders so a dirty journal never blocks the mount.
Related Issue
Closes #2149
Changes
changing how VM driver creates container
Testing
mise run pre-commitpasses | check commentUnit tests added/updated
E2E tests added/updated (if applicable)
manually tested before and after patch if it fixes the issue
Checklist