Fix 727 network plugin fails silently after certificate rotation fails - #773
Conversation
Signed-off-by: Felix Riegger <felix.riegger@sap.com>
9ba9194 to
b976243
Compare
|
Warning Review limit reachedNext included review available in 35 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (5)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe provider now reports network controller health with libvirt connectivity. Health checks use a connector abstraction, evaluate named checkers, return HTTP 200 or 503, and log command failures at normal verbosity. ChangesProvider health checks
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to Network-controller rotation failures now make the provider health endpoint unavailable and identify the failing check, while healthy and libvirt-failure behavior remains covered. No concrete merge-blocking risk remains. Suggested reviewers: Sequence Diagram(s)sequenceDiagram
participant HTTPClient
participant HealthCheckHandler
participant Connector
participant HealthChecker
HTTPClient->>HealthCheckHandler: request health status
HealthCheckHandler->>Connector: check IsConnected
HealthCheckHandler->>HealthChecker: run named Check
HealthCheckHandler-->>HTTPClient: return 200 or 503
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Signed-off-by: Felix Riegger <felix.riegger@sap.com>
Signed-off-by: Felix Riegger <felix.riegger@sap.com>
Errors yielded by the clients config controller during cert rotation are now hooked up to the health checks.
Fixes #727
Summary by CodeRabbit