Skip to content

Status: Include retrieval errors to log message - #1497

Merged
roosterfish merged 2 commits into
canonical:mainfrom
roosterfish:status_errors
Aug 14, 2026
Merged

Status: Include retrieval errors to log message#1497
roosterfish merged 2 commits into
canonical:mainfrom
roosterfish:status_errors

Conversation

@roosterfish

Copy link
Copy Markdown
Contributor

This should help to further investigate #1307.

This should help to further investigate canonical#1307.

Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Improves observability of the /1.0/status API by including the underlying retrieval error in structured log context, making intermittent service-status failures easier to diagnose (notably for issue #1307).

Changes:

  • Attach the encountered err to the “Failed to get status for cluster member” log entry.
  • Attach the encountered err to the “Failed to get service status” log entries across LXD, MicroCeph, MicroOVN, and MicroCloud status collection paths.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@roosterfish
roosterfish requested a review from tugbataluy August 14, 2026 07:10
@roosterfish
roosterfish merged commit f8fc1d3 into canonical:main Aug 14, 2026
83 of 88 checks passed
@roosterfish
roosterfish deleted the status_errors branch August 14, 2026 07:48
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.

3 participants