Comment 10 for bug 1761706

Revision history for this message
thomas (toms130) wrote : Re: agent installation fails

Hi, I tried with model-default config, but it still fails with the same error...

juju bootstrap ovh-public-cloud ovh-openstack-sbg1 --config image-metadata-url=https://storage.sbg1.cloud.ovh.net/v1/AUTH_f0c04bb34430403982c05c26a9e934b3/simplestreams/images/ --bootstrap-series xenial --model-default container-networking-method=local --show-log --debug

...

2018-04-11 14:41:26 DEBUG juju.state spacesdiscovery.go:50 environ does not support space discovery, falling back to subnet discovery
2018-04-11 14:41:28 DEBUG juju.worker runner.go:223 killing runner 0xc42067cb60
2018-04-11 14:41:28 INFO juju.worker runner.go:313 runner is dying
2018-04-11 14:41:28 DEBUG juju.worker runner.go:456 killing "presence"
2018-04-11 14:41:28 DEBUG juju.worker runner.go:456 killing "pingbatcher"
2018-04-11 14:41:28 DEBUG juju.worker runner.go:456 killing "leadership"
2018-04-11 14:41:28 DEBUG juju.worker runner.go:456 killing "singular"
2018-04-11 14:41:28 DEBUG juju.worker runner.go:456 killing "txnlog"
2018-04-11 14:41:28 INFO juju.worker runner.go:483 stopped "txnlog", err: <nil>
2018-04-11 14:41:28 DEBUG juju.worker runner.go:332 "txnlog" done: <nil>
2018-04-11 14:41:28 DEBUG juju.worker runner.go:395 no restart, removing "txnlog" from known workers
2018-04-11 14:41:28 INFO juju.worker runner.go:483 stopped "presence", err: <nil>
2018-04-11 14:41:28 DEBUG juju.worker runner.go:332 "presence" done: <nil>
2018-04-11 14:41:28 DEBUG juju.worker runner.go:395 no restart, removing "presence" from known workers
2018-04-11 14:41:28 INFO juju.worker runner.go:483 stopped "leadership", err: <nil>
2018-04-11 14:41:28 DEBUG juju.worker runner.go:332 "leadership" done: <nil>
2018-04-11 14:41:28 DEBUG juju.worker runner.go:395 no restart, removing "leadership" from known workers
2018-04-11 14:41:28 INFO juju.worker runner.go:483 stopped "pingbatcher", err: <nil>
2018-04-11 14:41:28 DEBUG juju.worker runner.go:332 "pingbatcher" done: <nil>
2018-04-11 14:41:28 DEBUG juju.worker runner.go:395 no restart, removing "pingbatcher" from known workers
2018-04-11 14:41:28 INFO juju.worker runner.go:483 stopped "singular", err: <nil>
2018-04-11 14:41:28 DEBUG juju.worker runner.go:332 "singular" done: <nil>
2018-04-11 14:41:28 DEBUG juju.worker runner.go:395 no restart, removing "singular" from known workers
2018-04-11 14:41:28 DEBUG juju.state open.go:306 closed state without error
2018-04-11 14:41:28 DEBUG juju.cmd.jujud asm_amd64.s:574 jujud complete, code 0, err <nil>
2018-04-11 14:41:28 CRITICAL juju.cmd.jujud main.go:204 Unhandled panic:
runtime error: index out of range
goroutine 1 [running]:
main.Main.func1()
 /workspace/src/github.com/juju/juju/cmd/jujud/main.go:203 +0xbc
panic(0x290d860, 0x493a120)
 /snap/go/1473/src/runtime/panic.go:505 +0x229
github.com/juju/juju/network.CalculateOverlaySegment(0xc42061f480, 0x17, 0xc420582a80, 0xc420582ab0, 0x49e61e0, 0xc4204f0300, 0x42)
 /workspace/src/github.com/juju/juju/network/fan.go:74 +0x3a5
github.com/juju/juju/state.(*State).SaveSubnetsFromProvider(0xc420489d40, 0xc420465200, 0x4, 0x4, 0x0, 0x0, 0xc420465200, 0x4)
 /workspace/src/github.com/juju/juju/state/spacesdiscovery.go:124 +0x70d
github.com/juju/juju/state.(*State).ReloadSpaces(0xc420489d40, 0x3224180, 0xc420464780, 0x0, 0x0)
 /workspace/src/github.com/juju/juju/state/spacesdiscovery.go:55 +0x20e
github.com/juju/juju/agent/agentbootstrap.InitializeState(0x2ebbe81, 0x5, 0x0, 0x0, 0x7f84063708b0, 0xc4200fa420, 0xc420ae24d0, 0x0, 0xc4205ae9c0, 0x10, ...)
 /workspace/src/github.com/juju/juju/agent/agentbootstrap/bootstrap.go:226 +0x14f9
main.(*BootstrapCommand).Run.func2(0x7f84063708b0, 0xc4200fa420, 0xc4200fa420, 0x7f84063708b0)
 /workspace/src/github.com/juju/juju/cmd/jujud/bootstrap.go:266 +0x42f
github.com/juju/juju/cmd/jujud/agent.(*agentConf).ChangeConfig(0xc4206f6b10, 0xc42035a900, 0x0, 0x0)
 /workspace/src/github.com/juju/juju/cmd/jujud/agent/agent.go:103 +0xb0
main.(*BootstrapCommand).Run(0xc4206f6b40, 0xc420184a00, 0x0, 0x0)
 /workspace/src/github.com/juju/juju/cmd/jujud/bootstrap.go:250 +0xbc0
github.com/juju/cmd.(*SuperCommand).Run(0xc420540b40, 0xc420184a00, 0xc420184a00, 0x0)
 /workspace/src/github.com/juju/cmd/supercommand.go:456 +0x2c0
github.com/juju/cmd.Main(0x31f6ac0, 0xc420540b40, 0xc420184a00, 0xc42004c090, 0x7, 0x7, 0x0)
 /workspace/src/github.com/juju/cmd/cmd.go:317 +0x266
main.jujuDMain(0xc42004c080, 0x8, 0x8, 0xc420184a00, 0x0, 0x0, 0x0)
 /workspace/src/github.com/juju/juju/cmd/jujud/main.go:186 +0x894
main.Main(0xc42004c080, 0x8, 0x8, 0x0)
 /workspace/src/github.com/juju/juju/cmd/jujud/main.go:219 +0x1d9
main.MainWrapper(0xc42004c080, 0x8, 0x8)
 /workspace/src/github.com/juju/juju/cmd/jujud/main.go:194 +0x3f
main.main()
 /workspace/src/github.com/juju/juju/cmd/jujud/main_nix.go:22 +0x45

16:41:28 ERROR juju.cmd.juju.commands bootstrap.go:528 failed to bootstrap model: subprocess encountered error code 1
16:41:28 DEBUG juju.cmd.juju.commands bootstrap.go:529 (error details: [{github.com/juju/juju/cmd/juju/commands/bootstrap.go:620: failed to bootstrap model} {subprocess encountered error code 1}])