cmd/juju: juju does not detect the environment is bootstrapped until it has already overwritten tools

Bug #1228992 reported by Dave Cheney
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Tim Penhey

Bug Description

juju bootstrap does not detect the environment has been bootstrapped until it has done auto sync tools and possibly overwritten the tools in the environment

lucky(/tmp) % env LD_LIBRARY_PATH=/opt/gccgo/lib64 ./juju bootstrap -v
verbose is deprecated with the current meaning, use show-log
2013-09-23 01:47:21 INFO juju.provider.ec2 ec2.go:214 preparing environment "ap-southeast-2"
2013-09-23 01:47:21 INFO juju.provider.ec2 ec2.go:192 opening environment "ap-southeast-2"
2013-09-23 01:47:22 INFO juju.environs.tools tools.go:133 reading tools with major.minor version 1.15
2013-09-23 01:47:22 INFO juju.environs.tools tools.go:144 filtering tools by series: precise
2013-09-23 01:47:22 WARNING juju.environs.tools tools.go:155 no tools found using simplestreams metadata, using legacy fallback
2013-09-23 01:47:24 WARNING juju.cmd.juju bootstrap.go:179 no tools available, attempting to retrieve from https://juju-dist.s3.amazonaws.com/
2013-09-23 01:47:24 INFO juju.environs.sync sync.go:65 listing available tools
listing available tools
2013-09-23 01:47:26 INFO juju.cmd.juju bootstrap.go:186 no tools found, so attempting to build and upload new tools
2013-09-23 01:47:26 INFO juju.environs.tools build.go:159 couldn't find existing jujud
2013-09-23 01:47:26 INFO juju.environs.tools build.go:187 building jujud
2013-09-23 01:47:31 INFO juju.environs.sync sync.go:232 built 1.15.0.1-raring-amd64 (4109kB)
built 1.15.0.1-raring-amd64 (4109kB)
2013-09-23 01:47:31 INFO juju.environs.sync sync.go:65 listing available tools
listing available tools
2013-09-23 01:47:31 INFO juju.environs.sync sync.go:88 found 2 tools
found 2 tools
2013-09-23 01:47:31 INFO juju.environs.sync sync.go:98 listing target bucket
listing target bucket
2013-09-23 01:47:31 INFO juju.environs.sync sync.go:117 found 0 tools in target; 2 tools to be copied
found 0 tools in target; 2 tools to be copied
2013-09-23 01:47:31 INFO juju.environs.sync sync.go:147 copying 1.15.0.1-precise-amd64 from file:///tmp/259037756/tools/releases/juju-1.15.0.1-precise-amd64.tgz
copying 1.15.0.1-precise-amd64 from file:///tmp/259037756/tools/releases/juju-1.15.0.1-precise-amd64.tgz
2013-09-23 01:47:31 INFO juju.environs.sync sync.go:164 copying tools/releases/juju-1.15.0.1-precise-amd64.tgz
copying tools/releases/juju-1.15.0.1-precise-amd64.tgz
2013-09-23 01:47:31 INFO juju.environs.sync sync.go:178 downloaded tools/releases/juju-1.15.0.1-precise-amd64.tgz (4109kB), uploading
downloaded tools/releases/juju-1.15.0.1-precise-amd64.tgz (4109kB), uploading
2013-09-23 01:47:31 INFO juju.environs.sync sync.go:179 download 4109kB, uploading
download 4109kB, uploading
2013-09-23 01:48:31 INFO juju.environs.sync sync.go:147 copying 1.15.0.1-raring-amd64 from file:///tmp/259037756/tools/releases/juju-1.15.0.1-raring-amd64.tgz
copying 1.15.0.1-raring-amd64 from file:///tmp/259037756/tools/releases/juju-1.15.0.1-raring-amd64.tgz
2013-09-23 01:48:31 INFO juju.environs.sync sync.go:164 copying tools/releases/juju-1.15.0.1-raring-amd64.tgz
copying tools/releases/juju-1.15.0.1-raring-amd64.tgz
2013-09-23 01:48:31 INFO juju.environs.sync sync.go:178 downloaded tools/releases/juju-1.15.0.1-raring-amd64.tgz (4109kB), uploading
downloaded tools/releases/juju-1.15.0.1-raring-amd64.tgz (4109kB), uploading
2013-09-23 01:48:31 INFO juju.environs.sync sync.go:179 download 4109kB, uploading
download 4109kB, uploading
2013-09-23 01:49:29 INFO juju.environs.sync sync.go:122 copied 2 tools
copied 2 tools
2013-09-23 01:49:29 INFO juju.environs.sync sync.go:124 generating tools metadata
generating tools metadata
2013-09-23 01:49:30 INFO juju.environs.tools simplestreams.go:220 Writing tools/streams/v1/index.json
2013-09-23 01:49:30 INFO juju.environs.tools simplestreams.go:220 Writing tools/streams/v1/com.ubuntu.juju:released:tools.json
2013-09-23 01:49:30 INFO juju.environs.sync sync.go:132 tools metadata written
tools metadata written
2013-09-23 01:49:30 INFO juju.environs.tools tools.go:133 reading tools with major.minor version 1.15
2013-09-23 01:49:30 INFO juju.environs.tools tools.go:144 filtering tools by series: precise
2013-09-23 01:49:31 ERROR juju supercommand.go:282 environment is already bootstrapped

Related branches

Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.15.1 → 1.16.0
Tim Penhey (thumper)
Changed in juju-core:
assignee: nobody → Tim Penhey (thumper)
status: Triaged → In Progress
Revision history for this message
Dave Cheney (dave-cheney) wrote : Re: [Bug 1228992] Re: cmd/juju: juju does not detect the environment is bootstrapped until it has already overwritten tools
Download full text (5.0 KiB)

I don't think this is a priority for 1.16.0

On Thu, Oct 3, 2013 at 10:17 AM, Tim Penhey <email address hidden> wrote:
> ** Changed in: juju-core
> Status: Triaged => In Progress
>
> ** Changed in: juju-core
> Assignee: (unassigned) => Tim Penhey (thumper)
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1228992
>
> Title:
> cmd/juju: juju does not detect the environment is bootstrapped until
> it has already overwritten tools
>
> Status in juju-core:
> In Progress
>
> Bug description:
> juju bootstrap does not detect the environment has been bootstrapped
> until it has done auto sync tools and possibly overwritten the tools
> in the environment
>
> lucky(/tmp) % env LD_LIBRARY_PATH=/opt/gccgo/lib64 ./juju bootstrap -v
> verbose is deprecated with the current meaning, use show-log
> 2013-09-23 01:47:21 INFO juju.provider.ec2 ec2.go:214 preparing environment "ap-southeast-2"
> 2013-09-23 01:47:21 INFO juju.provider.ec2 ec2.go:192 opening environment "ap-southeast-2"
> 2013-09-23 01:47:22 INFO juju.environs.tools tools.go:133 reading tools with major.minor version 1.15
> 2013-09-23 01:47:22 INFO juju.environs.tools tools.go:144 filtering tools by series: precise
> 2013-09-23 01:47:22 WARNING juju.environs.tools tools.go:155 no tools found using simplestreams metadata, using legacy fallback
> 2013-09-23 01:47:24 WARNING juju.cmd.juju bootstrap.go:179 no tools available, attempting to retrieve from https://juju-dist.s3.amazonaws.com/
> 2013-09-23 01:47:24 INFO juju.environs.sync sync.go:65 listing available tools
> listing available tools
> 2013-09-23 01:47:26 INFO juju.cmd.juju bootstrap.go:186 no tools found, so attempting to build and upload new tools
> 2013-09-23 01:47:26 INFO juju.environs.tools build.go:159 couldn't find existing jujud
> 2013-09-23 01:47:26 INFO juju.environs.tools build.go:187 building jujud
> 2013-09-23 01:47:31 INFO juju.environs.sync sync.go:232 built 1.15.0.1-raring-amd64 (4109kB)
> built 1.15.0.1-raring-amd64 (4109kB)
> 2013-09-23 01:47:31 INFO juju.environs.sync sync.go:65 listing available tools
> listing available tools
> 2013-09-23 01:47:31 INFO juju.environs.sync sync.go:88 found 2 tools
> found 2 tools
> 2013-09-23 01:47:31 INFO juju.environs.sync sync.go:98 listing target bucket
> listing target bucket
> 2013-09-23 01:47:31 INFO juju.environs.sync sync.go:117 found 0 tools in target; 2 tools to be copied
> found 0 tools in target; 2 tools to be copied
> 2013-09-23 01:47:31 INFO juju.environs.sync sync.go:147 copying 1.15.0.1-precise-amd64 from file:///tmp/259037756/tools/releases/juju-1.15.0.1-precise-amd64.tgz
> copying 1.15.0.1-precise-amd64 from file:///tmp/259037756/tools/releases/juju-1.15.0.1-precise-amd64.tgz
> 2013-09-23 01:47:31 INFO juju.environs.sync sync.go:164 copying tools/releases/juju-1.15.0.1-precise-amd64.tgz
> copying tools/releases/juju-1.15.0.1-precise-amd64.tgz
> 2013-09-23 01:47:31 INFO juju.environs.sync sync.go:178 downloaded tools/releases/juju-1.15.0.1-precise-amd64.tgz (4109kB), uploading
> downloaded tools/releases/juju-1....

Read more...

Go Bot (go-bot)
Changed in juju-core:
status: In Progress → Fix Committed
Tim Penhey (thumper)
Changed in juju-core:
milestone: 1.16.0 → 1.15.1
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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