Skip to content

Look for available subsystem on node from all online lvols - #1082

Merged
Hamdy-khader merged 9 commits into
mainfrom
main-sfam-2746
Jun 7, 2026
Merged

Look for available subsystem on node from all online lvols#1082
Hamdy-khader merged 9 commits into
mainfrom
main-sfam-2746

Conversation

@Hamdy-khader

@Hamdy-khader Hamdy-khader commented Jun 6, 2026

Copy link
Copy Markdown
Collaborator
  • look for available subsystem from namesoaced lvols
  • remove lvol on lvol creation failure because subsystems full on node
  • add cluster capacity check on snapshot clone

Comment thread simplyblock_core/controllers/snapshot_controller.py Fixed
@Hamdy-khader
Hamdy-khader merged commit ec9d50b into main Jun 7, 2026
8 of 9 checks passed
@Hamdy-khader
Hamdy-khader deleted the main-sfam-2746 branch June 7, 2026 03:51
schmidt-scaled added a commit that referenced this pull request Jun 8, 2026
…real bug)

The Unit-tests CI job on main had been red for 25+ runs (a prior commit
explicitly "cleared pre-existing linter/typecheck/cli-regen failures" but
left unit tests broken). 44 tests across 15 files were failing.

43 were stale tests that lagged behind intentional production refactors
(e.g. _request -> _request2 tuple API, get_mini_lvols() subsystem counting
per #1082, lvs_node plumbing, caused_by="restart_cleanup" tagging, NQN
format validation, pool-level DHCHAP key injection per #1074, 2s->1s drain
window per #1078, source-shape anchor for the port-allow strict gate).
These are fixed test-side to match current intended behavior, preserving
each test's original intent.

1 was a genuine production bug: RPCClient.nvmf_subsystem_add_ns2 returned a
bare int from its idempotent short-circuit, but the nvmf_subsystem_add_ns
wrapper unpacks a (result, error) tuple -> TypeError on every idempotent
no-op (the exact cluster_activate re-entry the feature targets). Fixed to
return (existing_nsid, None).

Full suite now green: 1262 passed, 257 skipped, 0 failed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.

1 participant