juju show-action-status probably doesn't have the best ordering

Bug #1732347 reported by John A Meinel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Medium
Unassigned

Bug Description

Trying to figure out if something succeeded or failed, I was running an action a few times and then checking 'show-action-status'.
However, the output doesn't appear to be sorted in a fashion that is useful:
$ juju show-action-status
actions:
- action: ping
  completed at: 2017-11-15 06:19:05
  id: 476821b2-ec99-4092-8183-a2fc715050be
  status: completed
  unit: netutils/0
- action: ping
  completed at: 2017-11-15 06:23:13
  id: 5d1e263b-0c5e-4768-8677-b8cd7e52adc7
  status: completed
  unit: netutils/0
- action: ping
  completed at: 2017-11-15 06:29:17
  id: a1d5cde0-c21d-400a-8e6f-5dd7ec93a7ef
  status: completed
  unit: netutils/0
- action: ping
  completed at: 2017-11-15 06:20:21
  id: cfa338ae-3c66-4c39-8eb6-1bb7770e80fc
  status: failed
  unit: netutils/0

That doesn't look to be the order that I requested them, nor the order that they completed in.
The last one requested is second from the end.

It looks like they are actually sorted by "id" but I think that doesn't actually mean anything to anyone. Its intentionally an *opaque* UUID.

I think sorting by time might make the most sense.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.