← Back to Pull requests

Use NVMEOF_CONFIG in HA startup script to get the group name #2192

Open
unknown opened this pull request with 135 lines diff across 1 files
View on GitHub
unknown unknown commented on Oct 03, 2026 09:12 UTC
Author

Fixes: #1365

What changed


tests/ha/start_up.sh read the gateway group name with:

GW_GROUP=$(grep group ceph-nvmeof.conf | ...)

so it always used ./ceph-nvmeof.conf, even when NVMEOF_CONFIG pointed docker compose at a different configuration file (as start_up_mtls.sh, start_up_crc32c.sh, start_up_set_qos_2ms.sh, etc. do). If that file set a different group, nvme-gw create was sent with the wrong group and the gateways never came up.

The script now:

  • reads the group from $NVMEOF_CONFIG, defaulting to ./ceph-nvmeof.conf (the same default as .env), and

  • only matches an actual group = key (grep -m 1 '^ group ='), so a comment or another key containing "group" can't be picked up.
  • Testing


  • With the default config the extracted group is unchanged (empty, as before).

  • With NVMEOF_CONFIG pointing to a copy of the config with group = mygroup (plus a comment line mentioning group =), the script now extracts mygroup; the old code returned an empty group.

  • bash -n tests/ha/start_up.sh passes. The full HA startup runs in CI.
  • Diff: 135 lines (+101 / -34) across 1 files Reviewer: baum Review duration: 57295m
    All Vouch review confidence checks passed
    Residual risk 0.36 = Change Risk (0.63) × (1 − Review Confidence (0.42)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.63 · 135 lines diff across 1 files
    0.63
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    42%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.294
    Sensitive Paths sensitive_paths
    0.063
    Real PR Conversation Timeline
    1 comments
    "Review active on #2192"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 42.2% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 62.6% (MEDIUM) · Higher = larger blast radius
    62.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 42.2% · Lower = rushed or shallow review
    42.2%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 36.2% · Moderate risk
    36.2%