"Mark broken" error description message not shown in the machines list output
Bug #2049661 reported by
Joao Andre Simioni
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Committed
|
Medium
|
Wyatt Rees | ||
3.5 |
Fix Released
|
Medium
|
Wyatt Rees |
Bug Description
This report was done on:
When marking a machine broken, the user can add a custom error description. This message is displayed under the machine status on the Web UI.
But it’s unavailable in the maas $PROFILE machines read output. To get that message, a query to the events API is required:
maas $PROFILE events query id=<systemid> level=DEBUG | jq -r '([.events[] | select(.type == "User marking node broken") | [.created, .description]])[0] | @tsv'
Can this message be added to the machines read output?
Related branches
~wyattrees/maas:backport-5c0a27e-3.5
- MAAS Lander: Approve
- MAAS Maintainers: Pending requested
-
Diff: 75 lines (+24/-0)4 files modifiedsrc/maasserver/api/machines.py (+1/-0)
src/maasserver/api/tests/test_enlistment.py (+2/-0)
src/maasserver/api/tests/test_machine.py (+12/-0)
src/maasserver/api/tests/test_machines.py (+9/-0)
~wyattrees/maas:lp-2049661-mark-broken-msg
Merged
into
maas:master
- MAAS Lander: Needs Fixing
- Alexsander de Souza: Approve
-
Diff: 75 lines (+24/-0)4 files modifiedsrc/maasserver/api/machines.py (+1/-0)
src/maasserver/api/tests/test_enlistment.py (+2/-0)
src/maasserver/api/tests/test_machine.py (+12/-0)
src/maasserver/api/tests/test_machines.py (+9/-0)
Changed in maas: | |
assignee: | nobody → Jacopo Rota (r00ta) |
status: | Triaged → In Progress |
Changed in maas: | |
assignee: | Jacopo Rota (r00ta) → Wyatt Rees (wyattrees) |
Changed in maas: | |
milestone: | 3.5.0 → 3.6.0 |
Changed in maas: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
I think we are missing that property here https:/ /github. com/maas/ maas/blob/ 980286ae51ed435 b98178c3f5b3635 7f46554813/ src/maasserver/ api/machines. py#L120