show-action-status command partially broken since 2.9.32

Bug #1990258 reported by DUFOUR Olivier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Undecided
Ian Booth

Bug Description

Tested on :
* 2.9.31 (works)

* 2.9.32 (broken)
* 2.9.33 (broken)
* 2.9.34 (broken)

Since Juju 2.9.32 it is not possible to use ```show-action-status``` command without the action id, to get an overview of all actions run or being run on the model.

# From current Snap latest/stable release
ubuntu@maas:~/test_juju$ juju version
2.9.34-ubuntu-amd64
ubuntu@maas:~/test_juju$ juju show-action-status
{}
ERROR task id "" not valid

The only workaround found so far is to download juju 2.9.31 binary to get an ouput.
ubuntu@maas:~/test_juju$ ./juju-2-9-31 version
2.9.31-ubuntu-amd64
ubuntu@maas:~/test_juju$ ./juju-2-9-31 show-action-status
actions:
- action: get-root-ca
  completed at: "2022-09-20 07:14:28"
  id: "2"
  status: completed
  unit: vault/0
...
- action: juju-run
  completed at: "2022-09-20 08:11:20"
  id: "8"
  status: completed
  unit: machine-2-lxd-0

From my testing, it seems to fail starting from Juju 2.9.32 release :
ubuntu@maas:~/test_juju$ ./juju version
2.9.32-ubuntu-amd64
ubuntu@maas:~/test_juju$ ./juju show-action-status
{}
ERROR task id "" not valid

Revision history for this message
Joseph Phillips (manadart) wrote (last edit ):

Looks to be since this patch:
https://github.com/juju/juju/pull/14111

Ian, can you confirm that this is deliberate? Or should we only be attempting to run `Atoi` when there is an action ID supplied?

Changed in juju:
status: New → Triaged
assignee: nobody → Ian Booth (wallyworld)
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.