MAAS environment bootstrapped, but not really.
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-
copying 1.14.1-
2013-10-01 16:08:43 INFO juju.environs.sync sync.go:146 copying tools/juju-
copying tools/juju-
2013-10-01 16:08:50 INFO juju.environs.sync sync.go:159 downloaded tools/juju-
downloaded tools/juju-
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:/
copying 1.14.1-precise-i386 from https:/
2013-10-01 16:08:50 INFO juju.environs.sync sync.go:146 copying tools/juju-
copying tools/juju-
2013-10-01 16:08:52 INFO juju.environs.sync sync.go:159 downloaded tools/juju-
downloaded tools/juju-
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-
copying 1.14.1-
2013-10-01 16:08:53 INFO juju.environs.sync sync.go:146 copying tools/juju-
copying tools/juju-
2013-10-01 16:08:55 INFO juju.environs.sync sync.go:159 downloaded tools/juju-
downloaded tools/juju-
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:/
copying 1.14.1-quantal-i386 from https:/
2013-10-01 16:08:55 INFO juju.environs.sync sync.go:146 copying tools/juju-
copying tools/juju-
2013-10-01 16:08:58 INFO juju.environs.sync sync.go:159 downloaded tools/juju-
downloaded tools/juju-
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:/
copying 1.14.1-raring-amd64 from https:/
2013-10-01 16:08:58 INFO juju.environs.sync sync.go:146 copying tools/juju-
copying tools/juju-
2013-10-01 16:09:01 INFO juju.environs.sync sync.go:159 downloaded tools/juju-
downloaded tools/juju-
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:/
copying 1.14.1-raring-i386 from https:/
2013-10-01 16:09:01 INFO juju.environs.sync sync.go:146 copying tools/juju-
copying tools/juju-
2013-10-01 16:09:03 INFO juju.environs.sync sync.go:159 downloaded tools/juju-
downloaded tools/juju-
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:/
copying 1.14.1-saucy-amd64 from https:/
2013-10-01 16:09:03 INFO juju.environs.sync sync.go:146 copying tools/juju-
copying tools/juju-
2013-10-01 16:09:05 INFO juju.environs.sync sync.go:159 downloaded tools/juju-
downloaded tools/juju-
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:/
copying 1.14.1-saucy-armhf from https:/
2013-10-01 16:09:06 INFO juju.environs.sync sync.go:146 copying tools/juju-
copying tools/juju-
2013-10-01 16:09:08 INFO juju.environs.sync sync.go:159 downloaded tools/juju-
downloaded tools/juju-
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:/
copying 1.14.1-saucy-i386 from https:/
2013-10-01 16:09:09 INFO juju.environs.sync sync.go:146 copying tools/juju-
copying tools/juju-
2013-10-01 16:09:11 INFO juju.environs.sync sync.go:159 downloaded tools/juju-
downloaded tools/juju-
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.
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-
This also presents some fun when doing a destroy-
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:~$
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: maas |
tags: | added: bootstrap destroy-environment |
tags: |
added: maas-provider removed: maas |
Changed in juju-core: | |
milestone: | none → 1.18.0 |
tags: | added: jenv |
Changed in juju-core: | |
milestone: | 1.20.0 → next-stable |
Met this problem once on: 0ubuntu1~ ctools1 Juju is devops distilled - client
# dpkg -l | grep juju
ii juju-core 1.16.0-
After I ran
# juju destroy-environment
# juju bootstrap -v
This problem was gone and Juju worked again.