Hi , Andrew McDermott
   Thanks for your help.
The juju version is 1.25.0 and the maas is 1.8.3.
I checked I have set the static IP range,but it still can’t pass.
But with the https://bugs.launchpad.net/juju-core/+bug/1412621/comments/15,it 
could complete successfully.
That’s strange.
Yuanyou

发件人: Andrew McDermott [mailto:[email protected]]
发送时间: 2015年12月17日 18:38
收件人: zhangyuanyou
抄送: jiangrui (D); Weidong.Shao; [email protected]; juju
主题: Re: Juju deploy mongodb error!

Hello,

This was fixed in 1.25.1. Which version of Juju and MaaS are you using? The 
root cause is DNS related and this error occurs when the connection to the 
mongo DB cannot be resolved. In your output it looks like "bootstrap.maas" is 
not resolving. The fix that landed in 1.25.1 changed the initiation to use IP 
addresses instead.

The other thing you could double-check in your MaaS setup is whether you have a 
static IP range set for the clusters interface; please take a look at comment 
#30 in the bug report.

https://bugs.launchpad.net/juju-core/+bug/1412621/comments/30

HTH,
Andy

On 17 December 2015 at 02:00, zhangyuanyou 
<[email protected]<mailto:[email protected]>> wrote:
Hi , Andrew McDermott
      Now I encountered the bug : 
https://bugs.launchpad.net/juju-core/+bug/1412621,
I want to know if the bug have been fixed? The log is below.
Could you help me to resolve this problem?

Thanks,
Yuanyou
发件人: zhangyuanyou
发送时间: 2015年12月15日 20:04
收件人: 'Narinder Gupta'
抄送: Billy Olsen; jiangrui (D); Weidong.Shao; 
[email protected]<mailto:[email protected]>; 
'[email protected]<mailto:[email protected]>'
主题: Juju deploy mongodb error!

Hi , Narinder Gupta
When I use the ./deploy.sh to deploy juju, there are some error about mongodb.
This is the log:
Attempt 1 to download tools from 
https://streams.canonical.com/juju/tools/releases/juju-1.25.0-trusty-amd64.tgz...
tools from 
https://streams.canonical.com/juju/tools/releases/juju-1.25.0-trusty-amd64.tgz 
downloaded: HTTP 200; time 13.682s; size 18672448 bytes; speed 1364782.000 
bytes/s Tools downloaded successfully.
0419fcde2d571a00eddd0b2fb9e35f5102a9fd81cbecd4a2d0b648da7740eab3  
/var/lib/juju/tools/1.25.0-trusty-amd64/tools.tar.gz
2015-12-15 10:59:58 INFO juju.cmd supercommand.go:37 running jujud 
[1.25.0-trusty-amd64 gc]
2015-12-15 10:59:58 DEBUG juju.agent agent.go:482 read agent config, format 
"1.18"
2015-12-15 10:59:58 INFO juju.network network.go:242 setting prefer-ipv6 to 
false
2015-12-15 10:59:58 DEBUG juju.provider.maas environprovider.go:28 opening 
environment "demo-maas".
2015-12-15 10:59:59 INFO juju.agent identity.go:22 writing system identity file
2015-12-15 10:59:59 DEBUG juju.cmd.jujud bootstrap.go:253 starting mongo
2015-12-15 10:59:59 DEBUG juju.cmd.jujud bootstrap.go:278 calling 
ensureMongoServer
2015-12-15 10:59:59 INFO juju.mongo mongo.go:175 Ensuring mongo server is 
running; data directory /var/lib/juju; port 37017
2015-12-15 10:59:59 INFO juju.mongo mongo.go:339 installing juju-mongodb
2015-12-15 10:59:59 INFO juju.utils.packaging.manager utils.go:57 Running: 
apt-get --option=Dpkg::Options::=--force-confold 
--option=Dpkg::options::=--force-unsafe-io --assume-yes --quiet install 
juju-mongodb
2015-12-15 11:07:18 DEBUG juju.mongo mongo.go:298 using mongod: 
/usr/lib/juju/bin/mongod --version: "db version v2.4.9\nTue Dec 15 11:07:18.756 
git version: nogitversion\n"
2015-12-15 11:07:18 DEBUG juju.service discovery.go:115 discovered init system 
"upstart" from local host
2015-12-15 11:07:20 DEBUG juju.worker.peergrouper initiate.go:48 Initiating 
mongo replicaset; dialInfo 
&mgo.DialInfo{Addrs:[]string{"127.0.0.1:37017<http://127.0.0.1:37017>"}, 
Direct:false, Timeout:300000000000, FailFast:false, Database:"", 
ReplicaSetName:"", Source:"", Service:"", ServiceHost:"", Mechanism:"", 
Username:"", Password:"", PoolLimit:0, DialServer:(func(*mgo.ServerAddr) 
(net.Conn, error))(nil), Dial:(func(net.Addr) (net.Conn, error))(0x5445a0)}; 
memberHostport "bootstrap.maas:37017"; user ""; password ""
2015-12-15 11:07:20 DEBUG juju.mongo open.go:117 connection failed, will retry: 
dial tcp 127.0.0.1:37017<http://127.0.0.1:37017>: connection refused
2015-12-15 11:07:20 DEBUG juju.mongo open.go:117 connection failed, will retry: 
dial tcp 127.0.0.1:37017<http://127.0.0.1:37017>: connection refused
2015-12-15 11:07:20 DEBUG juju.mongo open.go:117 connection failed, will retry: 
dial tcp 127.0.0.1:37017<http://127.0.0.1:37017>: connection refused
2015-12-15 11:07:21 DEBUG juju.mongo open.go:117 connection failed, will retry: 
dial tcp 127.0.0.1:37017<http://127.0.0.1:37017>: connection refused
2015-12-15 11:07:22 INFO juju.mongo open.go:125 dialled mongo successfully on 
address "127.0.0.1:37017<http://127.0.0.1:37017>"
2015-12-15 11:07:22 INFO juju.replicaset replicaset.go:78 Initiating replicaset 
with config replicaset.Config{Name:"juju", Version:1, 
Members:[]replicaset.Member{replicaset.Member{Id:1, 
Address:"bootstrap.maas:37017", Arbiter:(*bool)(nil), 
BuildIndexes:(*bool)(nil), Hidden:(*bool)(nil), Priority:(*float64)(nil), 
Tags:map[string]string{"juju-machine-id":"0"}, 
SlaveDelay:(*time.Duration)(nil), Votes:(*int)(nil)}}}
2015-12-15 11:07:22 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:22 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:23 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:23 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:24 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:24 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:25 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:25 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:26 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:26 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:27 INFO juju.mongo open.go:125 dialled mongo successfully on 
address "127.0.0.1:37017<http://127.0.0.1:37017>"
2015-12-15 11:07:27 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:27 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:46 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:46 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:47 DEBUG juju.worker.peergrouper initiate.go:74 replica set 
initiation failed, will retry: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:47 INFO juju.mongo open.go:125 dialled mongo successfully on 
address "127.0.0.1:37017<http://127.0.0.1:37017>"
2015-12-15 11:07:47 INFO juju.replicaset replicaset.go:78 Initiating replicaset 
with config replicaset.Config{Name:"juju", Version:1, 
Members:[]replicaset.Member{replicaset.Member{Id:1, 
Address:"bootstrap.maas:37017", Arbiter:(*bool)(nil), 
BuildIndexes:(*bool)(nil), Hidden:(*bool)(nil), Priority:(*float64)(nil), 
Tags:map[string]string{"juju-machine-id":"0"}, 
SlaveDelay:(*time.Duration)(nil), Votes:(*int)(nil)}}}
2015-12-15 11:07:47 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:48 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:48 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:49 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:49 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:50 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:50 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:51 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:51 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:52 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:52 INFO juju.mongo open.go:125 dialled mongo successfully on 
address "127.0.0.1:37017<http://127.0.0.1:37017>"
2015-12-15 11:07:52 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:53 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:53 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:07:54 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:08:12 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:08:12 DEBUG juju.worker.peergrouper initiate.go:74 replica set 
initiation failed, will retry: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:08:12 INFO juju.mongo open.go:125 dialled mongo successfully on 
address "127.0.0.1:37017<http://127.0.0.1:37017>"
2015-12-15 11:08:12 INFO juju.replicaset replicaset.go:78 Initiating replicaset 
with config replicaset.Config{Name:"juju", Version:1, 
Members:[]replicaset.Member{replicaset.Member{Id:1, 
Address:"bootstrap.maas:37017", Arbiter:(*bool)(nil), 
BuildIndexes:(*bool)(nil), Hidden:(*bool)(nil), Priority:(*float64)(nil), 
Tags:map[string]string{"juju-machine-id":"0"}, 
SlaveDelay:(*time.Duration)(nil), Votes:(*int)(nil)}}}
2015-12-15 11:08:13 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:08:13 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:08:14 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:08:14 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:08:15 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:08:15 WARNING juju.replicaset replicaset.go:98 Initiate: fetching 
replication status failed: cannot get replica set status: can't get 
local.system.replset config from self or any seed (EMPTYCONFIG)
2015-12-15 11:08:38 INFO juju.worker.peergrouper initiate.go:78 finished 
MaybeInitiateMongoServer
2015-12-15 11:08:38 ERROR juju.cmd supercommand.go:429 cannot initiate replica 
set: cannot get replica set status: can't get local.system.replset config from 
self or any seed (EMPTYCONFIG)
2015-12-15 11:08:38 ERROR juju.cmd supercommand.go:429 failed to bootstrap 
environment: subprocess encountered error code 1

Thanks,
Yuanyou



--
Andrew McDermott 
<[email protected]<mailto:[email protected]>>
Juju Core Sapphire team <http://juju.ubuntu.com>
-- 
Juju mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju

Reply via email to