unblock panic: invalid memory address or nil pointer dereference

Bug #1578373 reported by Leo Zhang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Ian Booth

Bug Description

#juju bootstrap lxd-test lxd
#juju deploy mediawiki-single
#juju expose mediawiki
#juju block all-changes
#juju unblock all-changes

**Same error happens when try unblock destroy-model/remove-object

panic: runtime error: invalid memory address or nil pointer dereference

The details are as follows:

leozhang@leozhang-HP-ENVY-dv6-Notebook-PC:~$ juju unblock all-changes --debug
2016-05-04 20:14:16 INFO juju.cmd supercommand.go:60 running juju [2.0-beta6 gc go1.6.1]
2016-05-04 20:14:16 INFO juju.juju api.go:213 connecting to API addresses: [[fd34:d7a1:371d:7add:216:3eff:febc:8e87]:17070 10.109.207.35:17070]
2016-05-04 20:14:16 INFO juju.api apiclient.go:494 dialing "wss://[fd34:d7a1:371d:7add:216:3eff:febc:8e87]:17070/model/15f96eaf-3759-468a-8518-e3c802ee9c64/api"
2016-05-04 20:14:16 INFO juju.api apiclient.go:271 connection established to "wss://[fd34:d7a1:371d:7add:216:3eff:febc:8e87]:17070/model/15f96eaf-3759-468a-8518-e3c802ee9c64/api"
2016-05-04 20:14:16 DEBUG juju.juju api.go:362 API hostnames unchanged - not resolving
2016-05-04 20:14:16 DEBUG juju.juju api.go:147 failed to connect via bootstrap config: aborted
2016-05-04 20:14:16 DEBUG juju.api apiclient.go:520 health ping failed: connection is shut down
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x28 pc=0x5167e6]

goroutine 1 [running]:
panic(0x1f7a200, 0xc82000e120)
 /usr/lib/go-1.6/src/runtime/panic.go:464 +0x3e6
github.com/juju/juju/cmd/juju/block.(*unblockCommand).Run(0xc82042c510, 0xc820330410, 0x0, 0x0)
 /build/juju-core-S8d613/juju-core-2.0-beta6/src/github.com/juju/juju/cmd/juju/block/unblock.go:163 +0x176
github.com/juju/juju/cmd/modelcmd.(*modelCommandWrapper).Run(0xc82042b260, 0xc820330410, 0x0, 0x0)
 /build/juju-core-S8d613/juju-core-2.0-beta6/src/github.com/juju/juju/cmd/modelcmd/modelcommand.go:273 +0x4f
github.com/juju/juju/cmd/modelcmd.(*baseCommandWrapper).Run(0xc8203255b0, 0xc820330410, 0x0, 0x0)
 /build/juju-core-S8d613/juju-core-2.0-beta6/src/github.com/juju/juju/cmd/modelcmd/base.go:205 +0xd4
github.com/juju/cmd.(*SuperCommand).Run(0xc82023d900, 0xc820330410, 0x0, 0x0)
 /build/juju-core-S8d613/juju-core-2.0-beta6/src/github.com/juju/cmd/supercommand.go:446 +0x688
github.com/juju/cmd.Main(0x7f5082bb13c8, 0xc82023d900, 0xc820330410, 0xc82006e110, 0x3, 0x3, 0x25f7b80)
 /build/juju-core-S8d613/juju-core-2.0-beta6/src/github.com/juju/cmd/cmd.go:280 +0x2f0
github.com/juju/juju/cmd/juju/commands.Main(0xc82006e100, 0x4, 0x4)
 /build/juju-core-S8d613/juju-core-2.0-beta6/src/github.com/juju/juju/cmd/juju/commands/main.go:131 +0x51d
main.main()
 /build/juju-core-S8d613/juju-core-2.0-beta6/src/github.com/juju/juju/cmd/juju/main.go:27 +0x3b

Aaron Bentley (abentley)
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.0-beta7
Leo Zhang (nealpzhang)
description: updated
Aaron Bentley (abentley)
tags: added: jujuqa panic unblock
Leo Zhang (nealpzhang)
description: updated
Ian Booth (wallyworld)
Changed in juju-core:
assignee: nobody → Ian Booth (wallyworld)
status: Triaged → In Progress
Ian Booth (wallyworld)
tags: added: blocker
tags: added: ci regression
Ian Booth (wallyworld)
tags: removed: ci regression
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
affects: juju-core → juju
Changed in juju:
milestone: 2.0-beta7 → none
milestone: none → 2.0-beta7
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.