Juju crashes bootstrapping joyent

Bug #1300846 reported by Aaron Bentley
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
John A Meinel
1.18
Fix Released
High
John A Meinel

Bug Description

Juju bootstrap crashes with a traceback when using the following config:

  test-release-joyent:
    type: joyent
    admin-secret: <SECRET>
    sdc-regio: us-east-1
    sdc-user: "cpcjoyentsupport"
    sdc-key-id: "cc:d7:bd:ff:ca:c6:85:0f:22:d3:7d:5f:33:34:fc:84"
    manta-use: "cpcjoyentsupport"
    manta-key-id: "cc:d7:bd:ff:ca:c6:85:0f:22:d3:7d:5f:33:34:fc:84"
    manta-region: us-east
    default-series: precise

$ juju bootstrap -e test-release-joyent
panic: interface conversion: interface is nil, not string

goroutine 1 [running]:
launchpad.net/juju-core/provider/joyent.prepareConfig(0xc20049de70, 0x3c0, 0x0, 0x0)
 /mnt/jenkinshome/jobs/publish-revision/workspace/tmp.BCZqT3FX1Y/build/juju-core-1.17.8/src/launchpad.net/juju-core/provider/joyent/config.go:121 +0x35c
launchpad.net/juju-core/provider/joyent.joyentProvider.Prepare(0xc20047eae0, 0xc200233fa0, 0xc20049de70, 0x13, 0xa44f80, ...)
 /mnt/jenkinshome/jobs/publish-revision/workspace/tmp.BCZqT3FX1Y/build/juju-core-1.17.8/src/launchpad.net/juju-core/provider/joyent/provider.go:38 +0x2a
launchpad.net/juju-core/provider/joyent.joyentProvider.Prepare·i(0x14, 0xc20047eae0, 0xc200233fa0, 0xc20049de70, 0x0, ...)
 /mnt/jenkinshome/jobs/publish-revision/workspace/tmp.BCZqT3FX1Y/build/juju-core-1.17.8/src/launchpad.net/juju-core/provider/joyent/config.go:0 +0x47
launchpad.net/juju-core/environs.prepare(0xc20047eae0, 0xc200233fa0, 0xc2004b8470, 0xc200236540, 0xc2002364d0, ...)
 /mnt/jenkinshome/jobs/publish-revision/workspace/tmp.BCZqT3FX1Y/build/juju-core-1.17.8/src/launchpad.net/juju-core/environs/open.go:220 +0x243
launchpad.net/juju-core/environs.Prepare(0xc2004b8470, 0xc20047eae0, 0xc200233fa0, 0xc20046ac00, 0xc20047f260, ...)
 /mnt/jenkinshome/jobs/publish-revision/workspace/tmp.BCZqT3FX1Y/build/juju-core-1.17.8/src/launchpad.net/juju-core/environs/open.go:197 +0x812
launchpad.net/juju-core/environs.PrepareFromName(0x7fff2b6381f3, 0x13, 0xc20047eae0, 0xc200233fa0, 0xc20046ac00, ...)
 /mnt/jenkinshome/jobs/publish-revision/workspace/tmp.BCZqT3FX1Y/build/juju-core-1.17.8/src/launchpad.net/juju-core/environs/open.go:145 +0xbb
main.environFromName(0xc200233fa0, 0x7fff2b6381f3, 0x13, 0xc20047f230, 0xcdfd90, ...)
 /mnt/jenkinshome/jobs/publish-revision/workspace/tmp.BCZqT3FX1Y/build/juju-core-1.17.8/src/launchpad.net/juju-core/cmd/juju/common.go:37 +0x2f6
main.(*BootstrapCommand).Run(0xc200461180, 0xc200233fa0, 0x1, 0xc200472f00)
 /mnt/jenkinshome/jobs/publish-revision/workspace/tmp.BCZqT3FX1Y/build/juju-core-1.17.8/src/launchpad.net/juju-core/cmd/juju/bootstrap.go:95 +0xa5
main.envCmdWrapper.Run(0xc200462ae0, 0xc200461180, 0xc200233fa0, 0xc2001b6238, 0x2, ...)
 /mnt/jenkinshome/jobs/publish-revision/workspace/tmp.BCZqT3FX1Y/build/juju-core-1.17.8/src/launchpad.net/juju-core/cmd/juju/main.go:162 +0x49
main.(*envCmdWrapper).Run(0xc200200af0, 0xc200233fa0, 0x14, 0xc2001b6238)
 /mnt/jenkinshome/jobs/publish-revision/workspace/tmp.BCZqT3FX1Y/build/juju-core-1.17.8/src/launchpad.net/juju-core/cmd/juju/addmachine.go:0 +0x8e
launchpad.net/juju-core/cmd.(*SuperCommand).Run(0xc200461100, 0xc200233fa0, 0xc200233fa0, 0x0)
 /mnt/jenkinshome/jobs/publish-revision/workspace/tmp.BCZqT3FX1Y/build/juju-core-1.17.8/src/launchpad.net/juju-core/cmd/supercommand.go:298 +0x3d6
launchpad.net/juju-core/cmd.Main(0xc20046db90, 0xc200461100, 0xc200233fa0, 0xc200199010, 0x3, ...)
 /mnt/jenkinshome/jobs/publish-revision/workspace/tmp.BCZqT3FX1Y/build/juju-core-1.17.8/src/launchpad.net/juju-core/cmd/cmd.go:244 +0x286
main.Main(0xc200199000, 0x4, 0x4)
 /mnt/jenkinshome/jobs/publish-revision/workspace/tmp.BCZqT3FX1Y/build/juju-core-1.17.8/src/launchpad.net/juju-core/cmd/juju/main.go:135 +0x5015
main.main()
 /mnt/jenkinshome/jobs/publish-revision/workspace/tmp.BCZqT3FX1Y/build/juju-core-1.17.8/src/launchpad.net/juju-core/cmd/juju/main.go:177 +0x42

goroutine 2 [syscall]:

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

Related branches

Revision history for this message
Aaron Bentley (abentley) wrote :

This appears to have been triggered because key-file was not specified. With key-file specified, I get:

$ juju bootstrap -e test-release-joyent
WARNING unknown config field "manta-region"
WARNING unknown config field "manta-use"
WARNING unknown config field "sdc-regio"
ERROR invalid Joyent provider config: cannot get manta-user value from environment variable MANTA_USER

Strangely, I don't get a .jenv file, even though I do when it crashes.

description: updated
information type: Private → Public
Revision history for this message
Aaron Bentley (abentley) wrote :

To be clear, I mean the key-file config setting, not the --key-file parameter passed to mongodb.

Revision history for this message
Aaron Bentley (abentley) wrote :

(Supplying the private-key setting instead of key-file works, too.)

John A Meinel (jameinel)
Changed in juju-core:
milestone: none → 1.19.0
Revision history for this message
John A Meinel (jameinel) wrote :

I have a potential fix for this (just move where we ensure that private-key is properly set up).
I don't have a Joyent account so I can't test it live, but I'll make sure the test suite passes, at least.

Changed in juju-core:
status: Triaged → In Progress
John A Meinel (jameinel)
Changed in juju-core:
assignee: nobody → John A Meinel (jameinel)
Go Bot (go-bot)
Changed in juju-core:
status: In Progress → Fix Committed
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.