fix(openbao-migrations): sleep between health check retries#294
fix(openbao-migrations): sleep between health check retries#294mesutoezdil wants to merge 2 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe OpenBao migration entrypoint now pauses between failed health-check attempts. It also clarifies migration failure comments and updates the warning emitted when failures are allowed. ChangesOpenBao migration handling
Estimated code review effort: 1 (Trivial) | ~5 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@migrations/openbao/entrypoint.sh`:
- Line 66: Add shell-level coverage for the retry loop surrounding the sleep
command in the entrypoint script, verifying that consecutive failed health
checks are separated by RETRY_DELAY; use the repository-native test runner to
execute it before committing, or document in the PR why such timing coverage is
infeasible.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 33fc496a-2240-418e-8aaf-6eef4d9a8737
📒 Files selected for processing (1)
migrations/openbao/entrypoint.sh
fab42f0 to
1bab501
Compare
The retry loop logged Retrying in 5 seconds but never slept, so all 5 attempts ran within milliseconds. On a slow OpenBao startup the loop fell through while the service was still down and the raft list-peers call failed the migration Job. Add the missing sleep. Also replace two em dashes in comments and log text to satisfy the ASCII-only style rule. Closes NVIDIA#293 Signed-off-by: mesutoezdil <mesudozdil@gmail.com>
1bab501 to
1255dff
Compare
TL;DR
The OpenBao health check loop logged "Retrying in 5 seconds" but never slept, so all 5 attempts ran within milliseconds and slow startups failed the migration Job. Adds the missing sleep. bash -n passes; entrypoint script with no test harness.
Issues
Closes #293
Summary by CodeRabbit
/v1/sys/healthretry attempts.