status-history panics with badly formatted names

Bug #1583412 reported by Nate Finch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Nate Finch

Bug Description

$ juju status-history wqelgnweglewgnwglnegwlw
panic: "wqelgnweglewgnwglnegwlw" is not a valid unit name

goroutine 1 [running]:
panic(0x19d0c60, 0xc82049dad0)
 /home/nate/go/src/runtime/panic.go:481 +0x3e6
github.com/juju/names.NewUnitTag(0x7ffc9942f0aa, 0xd, 0x0, 0x0)
 /home/nate/src/github.com/juju/names/unit.go:29 +0x1ad
github.com/juju/juju/cmd/juju/status.(*statusHistoryCommand).Run(0xc8201501e0, 0xc820328780, 0x0, 0x0)
 /home/nate/src/github.com/juju/juju/cmd/juju/status/history.go:138 +0x285
github.com/juju/juju/cmd/modelcmd.(*modelCommandWrapper).Run(0xc820422840, 0xc820328780, 0x0, 0x0)
 /home/nate/src/github.com/juju/juju/cmd/modelcmd/modelcommand.go:273 +0x4f
github.com/juju/juju/cmd/modelcmd.(*baseCommandWrapper).Run(0xc820327480, 0xc820328780, 0x0, 0x0)
 /home/nate/src/github.com/juju/juju/cmd/modelcmd/base.go:205 +0xd4
github.com/juju/cmd.(*SuperCommand).Run(0xc82018bd00, 0xc820328780, 0x0, 0x0)
 /home/nate/src/github.com/juju/cmd/supercommand.go:446 +0x688
github.com/juju/cmd.Main(0x7f9d83405678, 0xc82018bd00, 0xc820328780, 0xc82000a370, 0x2, 0x2, 0x4acdca)
 /home/nate/src/github.com/juju/cmd/cmd.go:280 +0x2f0
github.com/juju/juju/cmd/juju/commands.main.Run(0x2a857c8, 0xc82000a360, 0x3, 0x3, 0xc82021de20)
 /home/nate/src/github.com/juju/juju/cmd/juju/commands/main.go:148 +0x5bb
github.com/juju/juju/cmd/juju/commands.Main(0xc82000a360, 0x3, 0x3, 0xc820000180)
 /home/nate/src/github.com/juju/juju/cmd/juju/commands/main.go:113 +0x48
main.main()
 /home/nate/src/github.com/juju/juju/cmd/juju/main.go:27 +0x3b

Nate Finch (natefinch)
summary: - status-history doesn't complain about badly formatted names
+ status-history panics with badly formatted names
description: updated
Revision history for this message
Nate Finch (natefinch) wrote :
Changed in juju-core:
assignee: nobody → Nate Finch (natefinch)
status: New → In Progress
Nate Finch (natefinch)
Changed in juju-core:
status: In Progress → Fix Released
status: Fix Released → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: none → 2.0-beta9
importance: Undecided → High
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
affects: juju-core → juju
Changed in juju:
milestone: 2.0-beta9 → none
milestone: none → 2.0-beta9
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.