actions status does not reference the action that was triggered

Bug #1596888 reported by Richard Harding
16
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
Eric Claude Jones

Bug Description

When running an action I can trigger many and the show-action-status does not help me identify what the action was after the fact.

Current behavior:

  juju run-action percona-cluster/0 pause
  Action queued with id: 8881ff73-f225-4fe9-8c56-fc171d8b5e68
  juju run-action percona-cluster/0 backup
  Action queued with id: a62a9385-05c7-4342-883d-ac2dd59dfad8
  juju run-action percona-cluster/0 resume
  Action queued with id: 780381ce-8500-4526-8b45-e7f95ea1e26a
  juju run-action percona-cluster/0 backup
  Action queued with id: 8f8aee46-4e5f-421b-80ef-e51066d92e79

  juju show-action-status
  actions:
  - id: 780381ce-8500-4526-8b45-e7f95ea1e26a
    status: completed
    unit: percona-cluster/0
  - id: 8881ff73-f225-4fe9-8c56-fc171d8b5e68
    status: completed
    unit: percona-cluster/0
  - id: 8f8aee46-4e5f-421b-80ef-e51066d92e79
    status: completed
    unit: percona-cluster/0
  - id: a62a9385-05c7-4342-883d-ac2dd59dfad8
    status: failed
    unit: percona-cluster/0

There should be some information on the action that triggered it for context.

  juju show-action-status
  8881ff73-f225-4fe9-8c56-fc171d8b5e68
    action: pause
    arguments:
    status: completed
    unit: percona-cluster/0
    completed at: 2016-06-28 12:32:00
  a62a9385-05c7-4342-883d-ac2dd59dfad8
    action: backup
    arguments:
    status: failed
    unit: percona-cluster/0
    completed at: 2016-06-28 12:32:30
  780381ce-8500-4526-8b45-e7f95ea1e26a
    action: resume
    arguments:
    status: completed
    unit: percona-cluster/0
    completed at: 2016-06-28 12:34:03
  8f8aee46-4e5f-421b-80ef-e51066d92e79
    action: backup
    arguments:
    status: completed
    unit: percona-cluster/0
    completed at: 2016-06-28 12:35:15

Notes:
The order of the items is kept by their completion times. Here is a very specific case where order is important. I tried to backup after I stopped the database. Ooops!

We've added the action that was run and the arguments used with it.

the completed at timestamp is tracked to help identify timelines that might tie into things like audit logs that would have effected if the action completed successfully or not.

We don't prefix the whole thing with actions: key as there's no point to it here.

Tags: usability 2.0
Changed in juju-core:
milestone: none → 2.0.0
affects: juju-core → juju
Changed in juju:
milestone: 2.0.0 → none
milestone: none → 2.0.0
Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.0.0 → 2.0.1
Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.0.1 → none
Changed in juju:
assignee: nobody → Eric Claude Jones (ecjones)
status: Triaged → In Progress
Changed in juju:
status: In Progress → Fix Committed
Ian Booth (wallyworld)
Changed in juju:
milestone: none → 2.2-rc1
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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