Fix iSCSI target cascade failures on portal create error #3

Merged
scott merged 1 commits from devel into main 2026-03-05 17:28:07 -05:00
Owner

When a portal fails to create (e.g. IP not configured on destination), drop only the affected group from each target rather than failing the entire target. Prevents cascade failures to targets and target-extent associations.

When a portal fails to create (e.g. IP not configured on destination), drop only the affected group from each target rather than failing the entire target. Prevents cascade failures to targets and target-extent associations.
scott added 1 commit 2026-03-05 17:28:03 -05:00
When a portal fails to create (e.g. IP not on system), its ID is absent
from portal_id_map. Previously this caused every target referencing that
portal to be skipped entirely, which then cascaded to target-extent
failures.

Now each target's groups are filtered individually: groups with unmapped
portal or initiator references are dropped with a warning, and the target
is still created with the remaining valid groups. This keeps the target
and all its extent associations intact while clearly indicating which
groups need manual attention.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
scott merged commit c24def73fd into main 2026-03-05 17:28:07 -05:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: scott/TrueMigration#3
No description provided.