local provider behaves poorly when juju-mongodb is not installed on trusty
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Jesse Meek | ||
1.18 |
Fix Released
|
High
|
Jesse Meek |
Bug Description
When juju-mongodb is not installed on trusty, no error is given about the missing binary. Juju doesn't seem to notice. It still tries to connect to it.
nxjmh:~ juju bootstrap
uploading tools for series [trusty precise]
Logging to /home/ubuntu/
Starting MongoDB server (juju-db-
Bootstrapping Juju machine agent
^CInterrupt signalled: waiting for bootstrap to exit
a929963f886b5ac
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.00232358 s, 451 MB/s
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.00174232 s, 602 MB/s
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.0010311 s, 1.0 GB/s
juju-db-
2014-04-02 18:25:30 INFO juju.cmd supercommand.go:297 running juju-1.
2014-04-02 18:25:30 DEBUG juju.agent agent.go:384 read agent config, format "1.18"
2014-04-02 18:25:30 DEBUG juju.agent bootstrap.go:63 initializing address [localhost:37017]
2014-04-02 18:25:30 INFO juju.state open.go:81 opening state; mongo addresses: ["localhost:
2014-04-02 18:25:30 DEBUG juju.state open.go:101 connection failed, will retry: dial tcp 127.0.0.1:37017: connection refused
...
2014-04-02 18:27:35 DEBUG juju.state open.go:101 connection failed, will retry: dial tcp 127.0.0.1:37017: connection refused
Bootstrap failed, destroying environment
ERROR exit status 1
nxjmh:~ 1 cat ~/.juju/
default: local
environments:
local:
type: local
container: kvm
nxjmh:~ juju --version
1.17.7-trusty-amd64
nxjmh:~ cat /etc/issue
Ubuntu Trusty Tahr (development branch) \n \l
this happens with both kvm and lxc backing the local provider.
Related branches
- Andrew Wilkins (community): Approve
-
Diff: 337 lines (+14/-200)3 files modifiedMakefile (+1/-1)
provider/local/prereqs.go (+10/-104)
provider/local/prereqs_test.go (+3/-95)
tags: | added: cloud-installer |
description: | updated |
summary: |
- local provider bootstrap hangs in trusty 1.17.7 packages + local provider behaves poorly when juju-mongodb is not installed on + trusty |
description: | updated |
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in juju-core: | |
milestone: | none → 1.19.0 |
tags: | added: local-provider |
Changed in juju-core: | |
status: | Triaged → Fix Committed |
assignee: | nobody → Jesse Meek (waigani) |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
I think the solution is for juju to check if the juju-local package is installed. Abort when it is not. This ensures users don't try to think about the deps. Too many users think they know what juju requires.