local provider behaves poorly when juju-mongodb is not installed on trusty

Bug #1301538 reported by Tycho Andersen
14
This bug affects 2 people
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/.juju/local/cloud-init-output.log on remote host
Starting MongoDB server (juju-db-ubuntu-local)
Bootstrapping Juju machine agent
^CInterrupt signalled: waiting for bootstrap to exit
a929963f886b5acf391d246683312e087048563fbfa05f0d6ab2a14684179ca5 /home/ubuntu/.juju/local/tools/1.17.7.1-trusty-amd64/tools.tar.gz
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-ubuntu-local start/running, process 2513
2014-04-02 18:25:30 INFO juju.cmd supercommand.go:297 running juju-1.17.7.1-trusty-amd64 [gc]
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:37017"]; entity ""
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/environments.yaml
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

Tycho Andersen (tycho-s)
tags: added: cloud-installer
Curtis Hovey (sinzui)
description: updated
Aaron Bentley (abentley)
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
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: none → 1.19.0
tags: added: local-provider
Revision history for this message
Curtis Hovey (sinzui) wrote :

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.

Tim Penhey (thumper)
Changed in juju-core:
status: Triaged → Fix Committed
assignee: nobody → Jesse Meek (waigani)
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 1301538] Re: local provider bootstrap hangs in trusty 1.17.7 packages
Download full text (45.2 KiB)

I'm pretty sure this is now fixed, as CI does regular testing of local
bootstrap.

Curtis, can you confirm? (Is Trusty local bootstrap a regular CI test?)

On Wed, Apr 2, 2014 at 10:34 PM, Curtis Hovey <email address hidden> wrote:

> ** Description changed:
>
> nxjmh:~ juju bootstrap
> uploading tools for series [trusty precise]
> Logging to /home/ubuntu/.juju/local/cloud-init-output.log on remote host
> Starting MongoDB server (juju-db-ubuntu-local)
> Bootstrapping Juju machine agent
> ^CInterrupt signalled: waiting for bootstrap to exit
> a929963f886b5acf391d246683312e087048563fbfa05f0d6ab2a14684179ca5
> /home/ubuntu/.juju/local/tools/1.17.7.1-trusty-amd64/tools.tar.gz
> 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-ubuntu-local start/running, process 2513
> 2014-04-02 18:25:30 INFO juju.cmd supercommand.go:297 running
> juju-1.17.7.1-trusty-amd64 [gc]
> 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:37017"]; entity ""
> 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: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: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:25:31 DEBUG juju.state open.go:101 connection failed, will
> retry: dial tcp 127.0.0.1:37017: connection refused
> - 2014-04-02 18:25:31 DEBUG juju.state open.go:101 connection failed, will
> retry: dial tcp 127.0.0.1:37017: connection refused
> - 2014-04-02 18:25:31 DEBUG juju.state open.go:101 connection failed, will
> retry: dial tcp 127.0.0.1:37017: connection refused
> - 2014-04-02 18:25:32 DEBUG juju.state open.go:101 connection failed, will
> retry: dial tcp 127.0.0.1:37017: connection refused
> - 2014-04-02 18:25:32 DEBUG juju.state open.go:101 connection failed, will
> retry: dial tcp 127.0.0.1:37017: connection refused
> - 2014-04-02 18:25:33 DEBUG juju.state open.go:101 connection failed, will
> retry: dial tcp 127.0.0.1:37017: connection refused
> - 2014-04-02 18:25:33 DEBUG juju.state open.go:101 connection failed, will
> retry: dial tcp 127.0.0.1:37017: connection refused
> - 2014-04-02 18:25:33 DEBUG juju.state open.go:101 connection failed, will
> retry: dial tcp 127.0.0.1:37017: connection refused
> - 2014-04-02 18:25:34 DEBUG juju.state open.go:101 connection failed, will
> retry: dial tcp 127.0.0.1:37017: connection refused
> - 2014-04-02 18:25:34 DEBUG juju.state open.go:101 connection failed, will
> retry: dial tcp 127.0.0.1:37017: connection refused
> - 2014-04-02 18:25:34 DEBUG juju.state open.go:101 c...

Revision history for this message
John A Meinel (jameinel) wrote :

Given the behavior is still wrong in the 1.18 series in Trusty (bug #1311016) we may want to backport this fix.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.