Don't omit to show Alerts, if present, the pool list detail view
mulkieran opened this issue · 2 comments
mulkieran commented
Right now, the only thing shown is pool availability actions. We should instead show the Alerts prominently, with all relevant alert codes displayed.
bgurney-rh commented
This is an example of a test pool (based on an 8 GiB block device, meaning that the "WS001" alert will appear):
$ stratis pool list
Name Total / Used / Free Properties UUID Alerts
spool1 8.00 GiB / 1.04 GiB / 6.96 GiB ~Ca,~Cr, Op 33123a6c-eb66-4c6f-9097-6b9521da4551 WS001
$ stratis pool list --uuid=33123a6c-eb66-4c6f-9097-6b9521da4551
UUID: 33123a6c-eb66-4c6f-9097-6b9521da4551
Name: spool1
Actions Allowed: fully_operational
Cache: No
Filesystem Limit: 100
Allows Overprovisioning: Yes
Key Description: unencrypted
Clevis Configuration: unencrypted
Space Usage:
Fully Allocated: Yes
Size: 8.00 GiB
Allocated: 8.00 GiB
Used: 1.04 GiB
One idea I had was this:
$ stratis pool list --uuid=33123a6c-eb66-4c6f-9097-6b9521da4551
UUID: 33123a6c-eb66-4c6f-9097-6b9521da4551
Name: spool1
Alerts:
WS001 Every device belonging to the pool has been fully allocated...
EM001 The pool will return an error on any IPC request that could...
EM002 The pool is unable to manage itself by reacting to events...
Actions Allowed: fully_operational
Cache: No
drckeefe commented
I do like seeing the alerts listed there.