juju bootstrap failed - cannot dial mongo to initiate replicaset: no reachable servers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Menno Finlay-Smits | ||
1.24 |
Fix Released
|
High
|
Menno Finlay-Smits |
Bug Description
We're hitting bootstrap error with the following errors below.
This is for openstack deployment:
+ . ./pipeline_
++ export OPENSTACK_
++ OPENSTACK_
++ export COMPUTE=nova-lxc
++ COMPUTE=nova-lxc
++ export BLOCK_STORAGE=
++ BLOCK_STORAGE=
++ export IMAGE_STORAGE=
++ IMAGE_STORAGE=
++ export PIPELINE_
++ PIPELINE_
++ export NETWORKING=
++ NETWORKING=
++ export UBUNTU_
++ UBUNTU_
Attempt 1 to download tools from https:/
2015-06-17 11:08:58 INFO juju.mongo open.go:125 dialled mongo successfully on address "127.0.0.1:37017"
tools from https:/
007c62a742c974c
2015-06-17 11:09:01 INFO juju.cmd supercommand.go:37 running jujud [1.23.3-
2015-06-17 11:09:01 INFO juju.network network.go:194 setting prefer-ipv6 to false
2015-06-17 11:09:03 INFO juju.agent identity.go:22 writing system identity file
2015-06-17 11:09:03 INFO juju.mongo mongo.go:172 Ensuring mongo server is running; data directory /var/lib/juju; port 37017
2015-06-17 11:09:03 INFO juju.mongo mongo.go:311 installing juju-mongodb
2015-06-17 11:09:03 INFO juju.utils.apt apt.go:143 Running: [apt-get --option=
2015-06-17 11:09:13 INFO juju.mongo open.go:125 dialled mongo successfully on address "127.0.0.1:37017"
2015-06-17 11:09:14 INFO juju.mongo open.go:125 dialled mongo successfully on address "127.0.0.1:37017"
2015-06-17 11:09:18 INFO juju.mongo open.go:125 dialled mongo successfully on address "127.0.0.1:37017"
2015-06-17 11:09:18 INFO juju.mongo open.go:125 dialled mongo successfully on address "127.0.0.1:37017"
2015-06-17 11:09:21 WARNING juju.replicaset replicaset.go:93 Initiate: fetching replication status failed: cannot get replica set status: Received replSetInitiate - should come online shortly.
2015-06-17 11:09:21 INFO juju.worker.
2015-06-17 11:09:21 INFO juju.worker.
2015-06-17 11:09:21 INFO juju.cmd.jujud bootstrap.go:180 started mongo
2015-06-17 11:09:21 INFO juju.mongo open.go:125 dialled mongo successfully on address "127.0.0.1:37017"
2015-06-17 11:09:23 INFO juju.state open.go:47 opening state, mongo addresses: ["127.0.
2015-06-17 11:09:23 INFO juju.mongo open.go:125 dialled mongo successfully on address "127.0.0.1:37017"
2015-06-17 11:09:23 INFO juju.mongo open.go:125 dialled mongo successfully on address "127.0.0.1:37017"
2015-06-17 11:09:23 INFO juju.state open.go:92 initializing environment, owner: "admin@local"
2015-06-17 11:09:23 INFO juju.state open.go:93 info: &mongo.
2015-06-17 11:09:23 INFO juju.state open.go:94 starting presence watcher
2015-06-17 11:09:23 INFO juju.mongo open.go:125 dialled mongo successfully on address "127.0.0.1:37017"
2015-06-17 11:09:23 INFO juju.agent bootstrap.go:166 initialising bootstrap machine with config: {Addresses:
2015-06-17 11:09:24 INFO juju.cmd supercommand.go:436 command finished
jujud-machine-0 start/running, process 12449
2015-06-17 11:14:06 INFO juju.worker.
2015-06-17 11:14:06 ERROR juju.cmd supercommand.go:430 cannot initiate replica set: cannot dial mongo to initiate replicaset: no reachable servers
ERROR failed to bootstrap environment: subprocess encountered error code 1
2015-06-17 11:14:06,883 [ERROR] oil_ci.juju.client: Calling "juju bootstrap" failed!
I am attaching the entire log.
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | added: bootstrap mongodb |
Changed in juju-core: | |
milestone: | none → 1.25.0 |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
I just ran into this myself, although looking at the logs you've submitted the symptoms are different.
I notice you're using 1.23. If at all possible please use a 1.24 release instead. There are some serious problems with the 1.23 release. Also, replicaset initialisation was greatly improved for 1.24.