Looking at upgrade-juju, it queries the agent to get a list of available tools and then proceeds to choose. If the --version is specified when invoking upgrade, that specific version is searched.
The list of tools returned by the agent appears incorrect because:
1. it only includes tools for 1.21 and 1.22
2. it includes an entry for tools with version 0.0.0 and series "" and arch "" (obviously empty)
Looking at upgrade-juju, it queries the agent to get a list of available tools and then proceeds to choose. If the --version is specified when invoking upgrade, that specific version is searched.
The list of tools returned by the agent appears incorrect because:
1. it only includes tools for 1.21 and 1.22
2. it includes an entry for tools with version 0.0.0 and series "" and arch "" (obviously empty)
Previous logging on a custom built 1.25 agent does show that the metadata from simplestreams is incorrect. See https:/ /bugs.launchpad .net/juju- core/+bug/ 1507867/ comments/ 26