Skip to content

fix(cleanup): preserve attached block devices - #295

Draft
Q-Dub wants to merge 6 commits into
mainfrom
EAI-7797_virtio_scsi_disk_detach
Draft

fix(cleanup): preserve attached block devices#295
Q-Dub wants to merge 6 commits into
mainfrom
EAI-7797_virtio_scsi_disk_detach

Conversation

@Q-Dub

@Q-Dub Q-Dub commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Remove the legacy disk hot-removal sweep so cleanup cannot detach virtio-SCSI cloud volumes after wiping them.

lauri-amd
lauri-amd previously approved these changes Aug 7, 2026
Q-Dub and others added 6 commits August 10, 2026 08:33
Remove the legacy disk hot-removal sweep so cleanup cannot detach virtio-SCSI cloud volumes after wiping them.

Co-authored-by: Cursor <cursoragent@cursor.com>
Resolve canonical block-device identities, protect system dependency chains, strictly parse Bloom fstab records, and compare configured storage with live state before destructive cleanup.

Co-authored-by: Cursor <cursoragent@cursor.com>
Guard every wipe against protected and mounted device trees, restrict fstab mutations to validated entries, preserve untagged Rancher storage, revalidate premounted sources, and make Longhorn iSCSI parsing field-position independent. Add regression coverage for strict tags, root-device rejection, explicit empty configs, and parser edge cases.

Co-authored-by: Cursor <cursoragent@cursor.com>
Add cleanup --preflight-only, fail on unreadable configs, lock resolved disk scope before confirmation, and rerun validation immediately before both standalone cleanup and --destroy-data teardown.

Co-authored-by: Cursor <cursoragent@cursor.com>
Describe preflight-only usage, config/fstab/live-state checks, protected device chains, strict Rancher ownership, repeated validation, and the corrected wipe-and-reformat cleanup behavior.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Q-Dub
Q-Dub force-pushed the EAI-7797_virtio_scsi_disk_detach branch from 8edbe23 to 89ec209 Compare August 10, 2026 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants