canonical / canonical/microcloud

`microcloud status` will end up in context deadline if member disappeared

Open
#845 2 comments 0 reactions 0 assignees View on GitHub
Incomplete Jira
Dominant language
Go
Stars
532
Forks
83
Avg merge
1d 14h
Merged PRs (30d)
36

Description

In case any of the MicroCloud cluster members goes out of services (maintenance or disaster), running the `microcloud status` command will hit a deadline after 30s trying to contact the offline member's MicroCloud (Microcluster).

This is due to a faulty `GET /core/1.0/cluster` endpoint on Microcluster which tries to contact cluster members even if they are offline.

There already is an open PR with suggestions on how to fix this https://github.com/canonical/microcluster/pull/412.
Some more context https://chat.canonical.com/canonical/pl/dncia5m757ytujm54etu64u7pe.

Contributor guide

Open the contributing guide

Research direction

Start with the `microcloud status` command and the Microcluster `GET /core/1.0/cluster` endpoint described in the issue. Review canonical/microcluster#412 and the linked context before making changes. Done means status no longer waits for the 30-second deadline when a cluster member is offline.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.