Skip to content

Commit

Permalink
[microcloud]: Invoke microcloud status
Browse files Browse the repository at this point in the history
On a single-node:
```
$ sudo microcloud status

 Status: WARNING

 ┃ ! Reliability risk: 3 systems are required for effective fault tolerance
 ┃ ! No MicroCeph OSDs configured

┌──────┬───────────────┬──────┬─────────────────┬────────────────────────┬────────┐
│ Name │    Address    │ OSDs │ MicroCeph Units │     MicroOVN Units     │ Status │
├──────┼───────────────┼──────┼─────────────────┼────────────────────────┼────────┤
│ sos  │ 172.24.26.120 │  0   │   mds,mgr,mon   │ central,chassis,switch │ ONLINE │
└──────┴───────────────┴──────┴─────────────────┴────────────────────────┴────────┘
```

and on a multi-node:
```
$ sudo microcloud status

 Status: HEALTHY

┌────────┬──────────────┬──────┬─────────────────┬────────────────────────┬────────┐
│  Name  │   Address    │ OSDs │ MicroCeph Units │     MicroOVN Units     │ Status │
├────────┼──────────────┼──────┼─────────────────┼────────────────────────┼────────┤
│ micro1 │ 172.24.26.10 │  1   │   mds,mgr,mon   │ central,chassis,switch │ ONLINE │
│ micro2 │ 172.24.26.20 │  1   │        -        │     chassis,switch     │ ONLINE │
│ micro3 │ 172.24.26.30 │  1   │   mds,mgr,mon   │ central,chassis,switch │ ONLINE │
│ micro4 │ 172.24.26.40 │  0   │   mds,mgr,mon   │ central,chassis,switch │ ONLINE │
└────────┴──────────────┴──────┴─────────────────┴────────────────────────┴────────┘
```

Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel authored and TurboTurtle committed Jan 21, 2025
1 parent ff121f8 commit 6d2f750
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sos/report/plugins/microcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def setup(self):

microcloud_subcmds = [
'cluster list',
'status',
'--version'
]
self.add_copy_spec([
Expand Down

0 comments on commit 6d2f750

Please sign in to comment.