2.6.2 regression: metadata generate-image panics with empty value for "controller-uuid"

Bug #1829473 reported by Jason Hobbs
This bug report is a duplicate of:  Bug #1829044: juju metadata generate image broken. Edit Remove
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Canonical Juju
New
Undecided
Unassigned

Bug Description

Related to bug 1829342.

After adding a new cloud with --local, then trying to generate image metadata for it so it could be bootstrapped, the generate image metadata command panics:

ubuntu@prodymcprodface-cpe-e7f90ebd-bbf0-4342-9d73-fa28fdba6153:~/project$ juju metadata generate-image -a amd64 -r RegionOne -u http://10.246.64.88:5000/v3 -i ea3c9190-5e48-4208-8b8e-84437cecaedd -s bionic -d /home/ubuntu/project/generated/juju_openstack_controller
panic: empty value for "controller-uuid" found in configuration (type <nil>, val <nil>)

goroutine 1 [running]:
github.com/juju/juju/controller.Config.mustString(0xc420571bf0, 0x27ce23f, 0xf, 0x0, 0x0)
 /build/juju/parts/juju/go/src/github.com/juju/juju/controller/config.go:390 +0x1ee
github.com/juju/juju/controller.Config.ControllerUUID(0xc420571bf0, 0xc42048c0b8, 0x4)
 /build/juju/parts/juju/go/src/github.com/juju/juju/controller/config.go:499 +0x40
main.prepare(0xc42046a370, 0xc420350df0, 0x10, 0x2b0a140, 0xc420572ac0, 0x0, 0x0, 0xc42089fbb0, 0x4e92c7)
 /build/juju/parts/juju/go/src/github.com/juju/juju/cmd/plugins/juju-metadata/imagemetadata.go:53 +0x1aa
main.(*imageMetadataCommand).setParams(0xc4209686c0, 0xc42046a370, 0x3fcc9f0, 0x0)
 /build/juju/parts/juju/go/src/github.com/juju/juju/cmd/plugins/juju-metadata/imagemetadata.go:122 +0x411
main.(*imageMetadataCommand).Run(0xc4209686c0, 0xc42046a370, 0xc420572ac0, 0xc420572ac0)
 /build/juju/parts/juju/go/src/github.com/juju/juju/cmd/plugins/juju-metadata/imagemetadata.go:200 +0x50
github.com/juju/juju/cmd/modelcmd.(*controllerCommandWrapper).Run(0xc420570f90, 0xc42046a370, 0xc420570f90, 0x0)
 /build/juju/parts/juju/go/src/github.com/juju/juju/cmd/modelcmd/controller.go:367 +0xda
github.com/juju/juju/cmd/modelcmd.(*baseCommandWrapper).Run(0xc420572470, 0xc42046a370, 0x0, 0x0)
 /build/juju/parts/juju/go/src/github.com/juju/juju/cmd/modelcmd/base.go:472 +0xab
github.com/juju/juju/vendor/github.com/juju/cmd.(*SuperCommand).Run(0xc4202b2500, 0xc42046a370, 0xc42046a370, 0x0)
 /build/juju/parts/juju/go/src/github.com/juju/juju/vendor/github.com/juju/cmd/supercommand.go:493 +0x2c0
github.com/juju/juju/vendor/github.com/juju/cmd.Main(0x2ae49c0, 0xc4202b2500, 0xc42046a370, 0xc4200f0010, 0xd, 0xd, 0x27e4da1)
 /build/juju/parts/juju/go/src/github.com/juju/juju/vendor/github.com/juju/cmd/cmd.go:379 +0x2d9
main.Main(0xc4200f0000, 0xe, 0xe)
 /build/juju/parts/juju/go/src/github.com/juju/juju/cmd/plugins/juju-metadata/metadata.go:39 +0xa8
main.main()
 /build/juju/parts/juju/go/src/github.com/juju/juju/cmd/plugins/juju-metadata/metadata.go:70 +0x45

Revision history for this message
Jason Hobbs (jason-hobbs) wrote :

sub'd field critical as this appears to block bootstrapping openstack controllers

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

Fix committed in 2.6 edge snap

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.