Hi team,
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'
It would be a nice feature to have that listed in the machines
endpoint, as it can be easily used by custom tools to display that info. And it looks like a better place to be looked at than the events log.
Could you please evaluate this?
Thanks