juju 3.1.5 'show-operation' panic: invalid action id

Bug #2032930 reported by Alex Lutay
This bug report is a duplicate of:  Bug #2024783: `juju show-task ""` panics. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Medium
Nicolas Vinuesa

Bug Description

Hi,

The simple (wrong) command causes Juju 3.1.5 panic:

> juju show-task boo
panic: invalid action id "boo"

goroutine 1 [running]:
github.com/juju/names/v4.NewActionTag({0x7ffcf0bfe407, 0x3})
 /build/snapcraft-juju-ed1204c3ada7643123d14744176eee1e/parts/juju/build/vendor/github.com/juju/names/v4/action.go:36 +0x125
github.com/juju/juju/api/client/action.(*Client).Actions(0xc000134820, {0xc00054be30, 0x1, 0x40?})
 /build/snapcraft-juju-ed1204c3ada7643123d14744176eee1e/parts/juju/build/api/client/action/client.go:35 +0x94
github.com/juju/juju/cmd/juju/action.fetchResult({0x4ee9b70, 0xc000134820}, {0x7ffcf0bfe407, 0x3})
 /build/snapcraft-juju-ed1204c3ada7643123d14744176eee1e/parts/juju/build/cmd/juju/action/common.go:486 +0xf3
github.com/juju/juju/cmd/juju/action.(*showTaskCommand).Run(0xc0005c0fc0, 0xc0001140c0)
 /build/snapcraft-juju-ed1204c3ada7643123d14744176eee1e/parts/juju/build/cmd/juju/action/showtask.go:160 +0x4e5
github.com/juju/juju/cmd/modelcmd.(*modelCommandWrapper).Run(0xc0009e83f0, 0xc000bc6fa0?)
 /build/snapcraft-juju-ed1204c3ada7643123d14744176eee1e/parts/juju/build/cmd/modelcmd/modelcommand.go:663 +0x123
github.com/juju/juju/cmd/modelcmd.(*baseCommandWrapper).Run(0xc00068b170, 0x400000005?)
 /build/snapcraft-juju-ed1204c3ada7643123d14744176eee1e/parts/juju/build/cmd/modelcmd/base.go:554 +0xaf
github.com/juju/cmd/v3.(*SuperCommand).Run(0xc0009ed400, 0xc0001140c0)
 /build/snapcraft-juju-ed1204c3ada7643123d14744176eee1e/parts/juju/build/vendor/github.com/juju/cmd/v3/supercommand.go:534 +0x378
github.com/juju/cmd/v3.Main({0x4edeeb8, 0xc0009ed400}, 0xc0001140c0, {0xc0007cb740, 0x2, 0x2})
 /build/snapcraft-juju-ed1204c3ada7643123d14744176eee1e/parts/juju/build/vendor/github.com/juju/cmd/v3/cmd.go:419 +0x25d
github.com/juju/juju/cmd/juju/commands.jujuMain.Run({0xc0000e2140?}, {0xc0000720f0, 0x3, 0x3})
 /build/snapcraft-juju-ed1204c3ada7643123d14744176eee1e/parts/juju/build/cmd/juju/commands/main.go:202 +0x8a5
github.com/juju/juju/cmd/juju/commands.Main(...)
 /build/snapcraft-juju-ed1204c3ada7643123d14744176eee1e/parts/juju/build/cmd/juju/commands/main.go:125
main.main()
 /build/snapcraft-juju-ed1204c3ada7643123d14744176eee1e/parts/juju/build/cmd/juju/main.go:27 +0x72

Alex Lutay (taurus)
summary: - juju show-operation panic
+ juju 3.1.5 'show-operation' panic: invalid action id
Changed in juju:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Nicolas Vinuesa (nvinuesa)
milestone: none → 3.1.7
Revision history for this message
Nicolas Vinuesa (nvinuesa) wrote :

This bug is already fixed (see https://github.com/juju/juju/pull/15802), it will be delivered on juju 3.1.6

Revision history for this message
Nicolas Vinuesa (nvinuesa) wrote :
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.