feat(nico): add STG02/03/04 storage-infra observability validations#540
Draft
abegnoche wants to merge 2 commits into
Draft
feat(nico): add STG02/03/04 storage-infra observability validations#540abegnoche wants to merge 2 commits into
abegnoche wants to merge 2 commits into
Conversation
Implement three NICo bare-metal checks grounded in the public Machine REST API, following the query-script → neutral-JSON → validation pattern from PR #539: - STG02-01 SkipSanitizationBreakfixCheck: extends the SEC21 sanitization audit with tenancy-preserving maintenance skips (in_use -> maintenance -> in_use without Reset). - STG03-01 StableStorageNodeIpCheck: asserts stable admin IPs are queryable via machineInterfaces[].ipAddresses. - STG04-01 OobFailureDetectionCheck: asserts BMC/out-of-band health probes expose failure-detection coverage (BmcSensor baseline). All three ship unreleased; exercise with ISVTEST_INCLUDE_UNRELEASED=1. Closes #358 Closes #359 Closes #360 Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Alexandre Begnoche <abegnoche@users.noreply.github.com>
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Align NICo bare_metal orchestration with PR #539 so unrelated probe failures (e.g. IB tenant isolation when the org has no tenant) do not skip later independent validations such as STG02/03/04 storage-infra checks. Signed-off-by: Alexandre Begnoche <abegnoche@nvidia.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the remaining NICo-mappable storage-infra trio from M7 triage (#358 / #359 / #360), following the proven query-script → neutral-JSON → validation pattern used in PR #539. All three ship unreleased (
released_tests.jsonuntouched); exercise withISVTEST_INCLUDE_UNRELEASED=1.SkipSanitizationBreakfixCheckmachine.status+statusHistory(Maintenance lifecycle) +instanceId/tenantIdStableStorageNodeIpCheckmachine.machineInterfaces[].ipAddresses(primary interface)OobFailureDetectionCheckmachine.healthBMC probes (BmcSensor, …)Changes
STG02-01 — break/fix skip-sanitization policy
query_sanitization.pywithMaintenancelifecycle token and per-machinebreakfix_skip_observed/tenancy_preserved/instance_boundfields.SkipSanitizationBreakfixCheckaudits SEC21 tenant-transition gates and allows tenancy-preservingin_use → maintenance → in_usepaths without an interveningReset.STG03-01 — stable admin IP observability
query_stable_ips.pyreadsmachineInterfaces[].ipAddresses(primary interface first).StableStorageNodeIpCheckasserts every host reports at least one stable admin IP.STG04-01 — out-of-band failure detection
query_oob_health.pymaps BMC health probes into STG04 failure-category observability (device / network / memory / drive).OobFailureDetectionCheckrequiresBmcSensorand device-category observability per host (distinct from CAP05-01 alert-freeness).Wiring / docs
bare_metal.yaml:query_stable_ips+query_oob_healthsteps (continue_on_failure: true);query_sanitizationalso markedcontinue_on_failure.suites/bare_metal.yaml:breakfix_skip_sanitization,stable_storage_ips,oob_failure_detectiongroups.suites/README.mdstep tables +docs/test-plan.yamllabel unions updated.Test plan
make lintmake test(full suite)uv run pytest isvtest/tests/test_storage_infra.py isvtest/tests/test_breakfix_sanitization.py isvctl/tests/providers/nico/test_nico_provider.pyCloses #358
Closes #359
Closes #360