Misleading error when agent-version doesn't match juju version on bootstrap
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Won't Fix
|
Low
|
Unassigned |
Bug Description
When the agent-version specified in environments.yaml does not match the juju client version, it simply says "Juju cannot bootstrap because no tools are available for your environment.
You may want to use the 'agent-
This is wrong. There are tools available for the environment, but Juju doesn't want to use them. Setting agent-metadata-url cannot possibly change this.
Instead, it should say something like 'Juju cannot bootstrap because environment agent-version "1.23.2" is not in the 1.24 series'.
$ juju --version
1.24.5-vivid-amd64
$ juju bootstrap -e awsx --show-log
2015-09-04 16:41:53 INFO juju.cmd supercommand.go:37 running juju [1.24.5-vivid-amd64 gc]
2015-09-04 16:41:53 INFO juju.provider.ec2 provider.go:49 opening environment "awsx"
2015-09-04 16:41:54 INFO juju.network network.go:194 setting prefer-ipv6 to false
Bootstrapping environment "awsx"
2015-09-04 16:41:57 INFO juju.environs.tools tools.go:86 reading tools with major.minor version 1.24
2015-09-04 16:41:57 INFO juju.environs.tools tools.go:94 filtering tools by version: 1.23.2
Bootstrap failed, destroying environment
2015-09-04 16:41:57 INFO juju.provider.
2015-09-04 16:41:58 ERROR juju.cmd supercommand.go:430 failed to bootstrap environment: Juju cannot bootstrap because no tools are available for your environment.
You may want to use the 'agent-
$ $HOME/canonical
1.23.2-vivid-amd64
$ $HOME/canonical
2015-09-04 16:52:11 INFO juju.cmd supercommand.go:37 running juju [1.23.2-vivid-amd64 gc]
2015-09-04 16:52:12 INFO juju.provider.ec2 provider.go:49 opening environment "awsx"
2015-09-04 16:52:12 INFO juju.network network.go:194 setting prefer-ipv6 to false
Bootstrapping environment "awsx"
2015-09-04 16:52:15 INFO juju.environs.tools tools.go:86 reading tools with major.minor version 1.23
2015-09-04 16:52:15 INFO juju.environs.tools tools.go:94 filtering tools by version: 1.23.2
Starting new instance for initial state server
Launching instance
...
tags: | added: simplestreams |
Changed in juju-core: | |
status: | Triaged → Won't Fix |
Why is this won't fix?