1.21-alpha1 bootstrap local fails with nil pointer dereference

Bug #1372511 reported by Jay R. Wren
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Unassigned

Bug Description

$ juju bootstrap --show-log
2014-09-22 15:19:58 INFO juju.cmd supercommand.go:37 running juju [1.21-alpha1-trusty-amd64 gc]
2014-09-22 15:19:58 INFO juju.provider.local environprovider.go:154 checking state port
2014-09-22 15:19:58 INFO juju.provider.local environprovider.go:154 checking API port
2014-09-22 15:19:59 INFO juju.provider.local environprovider.go:43 opening environment "local"
Bootstrap failed, destroying environment
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x40 pc=0x4e0957]

goroutine 1 [running]:
runtime.panic(0xd57c40, 0x1b6b9e8)
 /usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6
github.com/juju/juju/environs.Destroy(0x0, 0x0, 0x7f6d123378e0, 0xc210136b20, 0x1, ...)
 /build/buildd/juju-core-1.21-alpha1/src/github.com/juju/juju/environs/open.go:291 +0x27
main.destroyPreparedEnviron(0xc21010b190, 0x0, 0x0, 0x7f6d123378e0, 0xc210136b20, ...)
 /build/buildd/juju-core-1.21-alpha1/src/github.com/juju/juju/cmd/juju/common.go:27 +0x117
main.func·020()
 /build/buildd/juju-core-1.21-alpha1/src/github.com/juju/juju/cmd/juju/common.go:65 +0x6a
main.func·018()
 /build/buildd/juju-core-1.21-alpha1/src/github.com/juju/juju/cmd/juju/bootstrap.go:188 +0x87
main.(*BootstrapCommand).Run(0xc21006c600, 0xc21010b190, 0x7f6d1232be10, 0xc210191b90)
 /build/buildd/juju-core-1.21-alpha1/src/github.com/juju/juju/cmd/juju/bootstrap.go:260 +0x2fd
github.com/juju/juju/cmd/envcmd.(*environCommandWrapper).Run(0xc2101260c0, 0xc21010b190, 0xb9c860, 0xc2101369f0)
 /build/buildd/juju-core-1.21-alpha1/src/github.com/juju/juju/cmd/envcmd/environmentcommand.go:1 +0x3d
main.(*envCmdWrapper).Run(0xc2101260e0, 0xc21010b190, 0x0, 0x0)
 /build/buildd/juju-core-1.21-alpha1/src/github.com/juju/juju/cmd/juju/addmachine.go:1 +0x3d
github.com/juju/cmd.(*SuperCommand).Run(0xc2101f66e0, 0xc21010b190, 0xc21010b190, 0x0)
 /build/buildd/juju-core-1.21-alpha1/src/github.com/juju/cmd/supercommand.go:321 +0x3ca
github.com/juju/cmd.Main(0x7f6d123375c0, 0xc2101f66e0, 0xc21010b190, 0xc21000a010, 0x2, ...)
 /build/buildd/juju-core-1.21-alpha1/src/github.com/juju/cmd/cmd.go:247 +0x283
main.Main(0xc21000a000, 0x3, 0x3)
 /build/buildd/juju-core-1.21-alpha1/src/github.com/juju/juju/cmd/juju/main.go:76 +0xada
main.main()
 /build/buildd/juju-core-1.21-alpha1/src/github.com/juju/juju/cmd/juju/main.go:172 +0x44

goroutine 3 [syscall]:
os/signal.loop()
 /usr/lib/go/src/pkg/os/signal/signal_unix.go:21 +0x1e
created by os/signal.init·1
 /usr/lib/go/src/pkg/os/signal/signal_unix.go:27 +0x31

goroutine 10 [finalizer wait]:
runtime.park(0x43fe00, 0x1b70b28, 0x1b6d768)
 /usr/lib/go/src/pkg/runtime/proc.c:1342 +0x66
runfinq()
 /usr/lib/go/src/pkg/runtime/mgc0.c:2279 +0x84
runtime.goexit()
 /usr/lib/go/src/pkg/runtime/proc.c:1394

goroutine 11 [syscall]:
runtime.goexit()
 /usr/lib/go/src/pkg/runtime/proc.c:1394

Curtis Hovey (sinzui)
Changed in juju-core:
milestone: none → 1.21-alpha2
status: New → Triaged
importance: Undecided → High
tags: added: bootstrap panic
Revision history for this message
Jay R. Wren (evarlast) wrote :

I found the reason for this.

My environment was local and juju-local package was not installed.

Revision history for this message
Ian Booth (wallyworld) wrote :

I tried to reproduce this with tip of master and got this:

$ juju bootstrap
Bootstrap failed, cleaning up the environment.
ERROR there was an issue examining the environment: failed verification of local provider prerequisites:
juju-local must be installed to enable the local provider:

    sudo apt-get install juju-local
$

So it appears the issue is fixed in the current code base. Marking as Invalid.

Changed in juju-core:
milestone: 1.21-alpha2 → none
status: Triaged → Fix Committed
milestone: none → 1.21-alpha2
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
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.