MAAS environment bootstrapped, but not really.

Bug #1233751 reported by David Britton
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Unassigned

Bug Description

When I get a weird error from maas bootstrap, juju thinks the environment is bootstrapped, even though it's not:

ubuntu@peuchen:~$ juju bootstrap -v
2013-10-01 16:08:43 INFO juju.environs.tools tools.go:82 filtering tools by released version
2013-10-01 16:08:43 INFO juju.environs.tools tools.go:29 reading tools with major version 1
2013-10-01 16:08:43 INFO juju.environs.tools tools.go:37 filtering tools by series: precise
2013-10-01 16:08:43 INFO juju.environs.tools tools.go:44 falling back to public bucket
2013-10-01 16:08:43 INFO juju.environs.sync sync.go:63 listing available tools
listing available tools
2013-10-01 16:08:43 INFO juju.environs.sync sync.go:76 found 32 tools
found 32 tools
2013-10-01 16:08:43 INFO juju.environs.sync sync.go:80 found 9 recent tools (version 1.14.1)
found 9 recent tools (version 1.14.1)
2013-10-01 16:08:43 INFO juju.environs.sync sync.go:86 listing target bucket
listing target bucket
2013-10-01 16:08:43 INFO juju.environs.sync sync.go:112 found 0 tools in target; 9 tools to be copied
found 0 tools in target; 9 tools to be copied
2013-10-01 16:08:43 INFO juju.environs.sync sync.go:132 copying 1.14.1-precise-amd64 from https://juju-dist.s3.amazonaws.com/tools/juju-1.14.1-precise-amd64.tgz
copying 1.14.1-precise-amd64 from https://juju-dist.s3.amazonaws.com/tools/juju-1.14.1-precise-amd64.tgz
2013-10-01 16:08:43 INFO juju.environs.sync sync.go:146 copying tools/juju-1.14.1-precise-amd64.tgz
copying tools/juju-1.14.1-precise-amd64.tgz
2013-10-01 16:08:50 INFO juju.environs.sync sync.go:159 downloaded tools/juju-1.14.1-precise-amd64.tgz (4212kB), uploading
downloaded tools/juju-1.14.1-precise-amd64.tgz (4212kB), uploading
2013-10-01 16:08:50 INFO juju.environs.sync sync.go:160 download 4212kB, uploading
download 4212kB, uploading
2013-10-01 16:08:50 INFO juju.environs.sync sync.go:132 copying 1.14.1-precise-i386 from https://juju-dist.s3.amazonaws.com/tools/juju-1.14.1-precise-i386.tgz
copying 1.14.1-precise-i386 from https://juju-dist.s3.amazonaws.com/tools/juju-1.14.1-precise-i386.tgz
2013-10-01 16:08:50 INFO juju.environs.sync sync.go:146 copying tools/juju-1.14.1-precise-i386.tgz
copying tools/juju-1.14.1-precise-i386.tgz
2013-10-01 16:08:52 INFO juju.environs.sync sync.go:159 downloaded tools/juju-1.14.1-precise-i386.tgz (4081kB), uploading
downloaded tools/juju-1.14.1-precise-i386.tgz (4081kB), uploading
2013-10-01 16:08:52 INFO juju.environs.sync sync.go:160 download 4081kB, uploading
download 4081kB, uploading
2013-10-01 16:08:53 INFO juju.environs.sync sync.go:132 copying 1.14.1-quantal-amd64 from https://juju-dist.s3.amazonaws.com/tools/juju-1.14.1-quantal-amd64.tgz
copying 1.14.1-quantal-amd64 from https://juju-dist.s3.amazonaws.com/tools/juju-1.14.1-quantal-amd64.tgz
2013-10-01 16:08:53 INFO juju.environs.sync sync.go:146 copying tools/juju-1.14.1-quantal-amd64.tgz
copying tools/juju-1.14.1-quantal-amd64.tgz
2013-10-01 16:08:55 INFO juju.environs.sync sync.go:159 downloaded tools/juju-1.14.1-quantal-amd64.tgz (4212kB), uploading
downloaded tools/juju-1.14.1-quantal-amd64.tgz (4212kB), uploading
2013-10-01 16:08:55 INFO juju.environs.sync sync.go:160 download 4212kB, uploading
download 4212kB, uploading
2013-10-01 16:08:55 INFO juju.environs.sync sync.go:132 copying 1.14.1-quantal-i386 from https://juju-dist.s3.amazonaws.com/tools/juju-1.14.1-quantal-i386.tgz
copying 1.14.1-quantal-i386 from https://juju-dist.s3.amazonaws.com/tools/juju-1.14.1-quantal-i386.tgz
2013-10-01 16:08:55 INFO juju.environs.sync sync.go:146 copying tools/juju-1.14.1-quantal-i386.tgz
copying tools/juju-1.14.1-quantal-i386.tgz
2013-10-01 16:08:58 INFO juju.environs.sync sync.go:159 downloaded tools/juju-1.14.1-quantal-i386.tgz (4081kB), uploading
downloaded tools/juju-1.14.1-quantal-i386.tgz (4081kB), uploading
2013-10-01 16:08:58 INFO juju.environs.sync sync.go:160 download 4081kB, uploading
download 4081kB, uploading
2013-10-01 16:08:58 INFO juju.environs.sync sync.go:132 copying 1.14.1-raring-amd64 from https://juju-dist.s3.amazonaws.com/tools/juju-1.14.1-raring-amd64.tgz
copying 1.14.1-raring-amd64 from https://juju-dist.s3.amazonaws.com/tools/juju-1.14.1-raring-amd64.tgz
2013-10-01 16:08:58 INFO juju.environs.sync sync.go:146 copying tools/juju-1.14.1-raring-amd64.tgz
copying tools/juju-1.14.1-raring-amd64.tgz
2013-10-01 16:09:01 INFO juju.environs.sync sync.go:159 downloaded tools/juju-1.14.1-raring-amd64.tgz (4212kB), uploading
downloaded tools/juju-1.14.1-raring-amd64.tgz (4212kB), uploading
2013-10-01 16:09:01 INFO juju.environs.sync sync.go:160 download 4212kB, uploading
download 4212kB, uploading
2013-10-01 16:09:01 INFO juju.environs.sync sync.go:132 copying 1.14.1-raring-i386 from https://juju-dist.s3.amazonaws.com/tools/juju-1.14.1-raring-i386.tgz
copying 1.14.1-raring-i386 from https://juju-dist.s3.amazonaws.com/tools/juju-1.14.1-raring-i386.tgz
2013-10-01 16:09:01 INFO juju.environs.sync sync.go:146 copying tools/juju-1.14.1-raring-i386.tgz
copying tools/juju-1.14.1-raring-i386.tgz
2013-10-01 16:09:03 INFO juju.environs.sync sync.go:159 downloaded tools/juju-1.14.1-raring-i386.tgz (4081kB), uploading
downloaded tools/juju-1.14.1-raring-i386.tgz (4081kB), uploading
2013-10-01 16:09:03 INFO juju.environs.sync sync.go:160 download 4081kB, uploading
download 4081kB, uploading
2013-10-01 16:09:03 INFO juju.environs.sync sync.go:132 copying 1.14.1-saucy-amd64 from https://juju-dist.s3.amazonaws.com/tools/juju-1.14.1-saucy-amd64.tgz
copying 1.14.1-saucy-amd64 from https://juju-dist.s3.amazonaws.com/tools/juju-1.14.1-saucy-amd64.tgz
2013-10-01 16:09:03 INFO juju.environs.sync sync.go:146 copying tools/juju-1.14.1-saucy-amd64.tgz
copying tools/juju-1.14.1-saucy-amd64.tgz
2013-10-01 16:09:05 INFO juju.environs.sync sync.go:159 downloaded tools/juju-1.14.1-saucy-amd64.tgz (4212kB), uploading
downloaded tools/juju-1.14.1-saucy-amd64.tgz (4212kB), uploading
2013-10-01 16:09:05 INFO juju.environs.sync sync.go:160 download 4212kB, uploading
download 4212kB, uploading
2013-10-01 16:09:06 INFO juju.environs.sync sync.go:132 copying 1.14.1-saucy-armhf from https://juju-dist.s3.amazonaws.com/tools/juju-1.14.1-saucy-armhf.tgz
copying 1.14.1-saucy-armhf from https://juju-dist.s3.amazonaws.com/tools/juju-1.14.1-saucy-armhf.tgz
2013-10-01 16:09:06 INFO juju.environs.sync sync.go:146 copying tools/juju-1.14.1-saucy-armhf.tgz
copying tools/juju-1.14.1-saucy-armhf.tgz
2013-10-01 16:09:08 INFO juju.environs.sync sync.go:159 downloaded tools/juju-1.14.1-saucy-armhf.tgz (4240kB), uploading
downloaded tools/juju-1.14.1-saucy-armhf.tgz (4240kB), uploading
2013-10-01 16:09:08 INFO juju.environs.sync sync.go:160 download 4240kB, uploading
download 4240kB, uploading
2013-10-01 16:09:09 INFO juju.environs.sync sync.go:132 copying 1.14.1-saucy-i386 from https://juju-dist.s3.amazonaws.com/tools/juju-1.14.1-saucy-i386.tgz
copying 1.14.1-saucy-i386 from https://juju-dist.s3.amazonaws.com/tools/juju-1.14.1-saucy-i386.tgz
2013-10-01 16:09:09 INFO juju.environs.sync sync.go:146 copying tools/juju-1.14.1-saucy-i386.tgz
copying tools/juju-1.14.1-saucy-i386.tgz
2013-10-01 16:09:11 INFO juju.environs.sync sync.go:159 downloaded tools/juju-1.14.1-saucy-i386.tgz (4081kB), uploading
downloaded tools/juju-1.14.1-saucy-i386.tgz (4081kB), uploading
2013-10-01 16:09:11 INFO juju.environs.sync sync.go:160 download 4081kB, uploading
download 4081kB, uploading
2013-10-01 16:09:12 INFO juju.environs.sync sync.go:117 copied 9 tools
copied 9 tools
2013-10-01 16:09:12 INFO juju.environs.tools tools.go:82 filtering tools by released version
2013-10-01 16:09:12 INFO juju.environs.tools tools.go:29 reading tools with major version 1
2013-10-01 16:09:12 INFO juju.environs.tools tools.go:37 filtering tools by series: precise
2013-10-01 16:09:19 INFO juju.environs.tools tools.go:93 picked newest version: 1.14.1
2013-10-01 16:09:19 INFO juju.environs.boostrap bootstrap.go:57 bootstrapping environment "maas"
2013-10-01 16:09:19 INFO juju.environs.tools tools.go:29 reading tools with major version 1
2013-10-01 16:09:19 INFO juju.environs.tools tools.go:34 filtering tools by version: 1.14.1
2013-10-01 16:09:19 INFO juju.environs.tools tools.go:37 filtering tools by series: precise
2013-10-01 16:09:30 ERROR juju supercommand.go:282 command failed: cannot start bootstrap instance: cannot run instances: gomaasapi: got error back from server: 409 CONFLICT (No matching node is available.)
error: cannot start bootstrap instance: cannot run instances: gomaasapi: got error back from server: 409 CONFLICT (No matching node is available.)
ubuntu@peuchen:~$
ubuntu@peuchen:~$ juju bootstrap -v
2013-10-01 16:21:27 INFO juju.environs.tools tools.go:82 filtering tools by released version
2013-10-01 16:21:27 INFO juju.environs.tools tools.go:29 reading tools with major version 1
2013-10-01 16:21:27 INFO juju.environs.tools tools.go:37 filtering tools by series: precise
2013-10-01 16:21:34 INFO juju.environs.tools tools.go:93 picked newest version: 1.14.1
2013-10-01 16:21:34 ERROR juju supercommand.go:282 command failed: environment is already bootstrapped
error: environment is already bootstrapped
ubuntu@peuchen:~$ juju status
error: Unable to connect to environment "".
Please check your credentials or use 'juju bootstrap' to create a new environment.

Error details:
no instances found

ubuntu@peuchen:~$ dpkg -l |grep juju
ii juju-core 1.14.1-0ubuntu1~ctools0 Juju is devops distilled - client

This also presents some fun when doing a destroy-environment:

ubuntu@peuchen:~$ juju destroy-environment
WARNING: this command will destroy the "maas" environment (type: maas)
This includes all machines, services, data and other resources.

Continue [y/N]? y
error: gomaasapi: got error back from server: 409 CONFLICT (Node cannot be released in its current state ('Declared').)
ubuntu@peuchen:~$

Curtis Hovey (sinzui)
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
tags: added: maas
Curtis Hovey (sinzui)
tags: added: bootstrap destroy-environment
Revision history for this message
Tom Zhou (zhouqt) wrote :

Met this problem once on:
# dpkg -l | grep juju
ii juju-core 1.16.0-0ubuntu1~ctools1 Juju is devops distilled - client

After I ran
# juju destroy-environment
# juju bootstrap -v
This problem was gone and Juju worked again.

Curtis Hovey (sinzui)
tags: added: maas-provider
removed: maas
Ian Booth (wallyworld)
Changed in juju-core:
milestone: none → 1.18.0
tags: added: jenv
Changed in juju-core:
milestone: 1.20.0 → next-stable
Revision history for this message
Curtis Hovey (sinzui) wrote :

I am marking this fix released because I have not seen this kind of error in months.

Changed in juju-core:
milestone: next-stable → none
status: Triaged → Fix Released
Revision history for this message
Jake Foster (jakefoster93) wrote :

$ juju bootstrap -v
verbose is deprecated with the current meaning, use show-log
2014-07-07 13:46:18 INFO juju.environs open.go:156 environment info already exists; using New not Prepare
2014-07-07 13:46:18 ERROR juju supercommand.go:282 environment is already bootstrapped

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.