default-series choice is inconsistent
Bug #1308966 reported by
Roger Peppe
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
Medium
|
Unassigned |
Bug Description
When I bootstrap from trusty with --upload-tools, it uploads tools
for the latest LTS series as reported by distro-info --lts.
On the bootstrap machine, distro-info does not exist, so
it falls back to using precise, so new instances are started
with series precise, for which we don't have tools.
At least two possible fixes:
1) make sure that distro-info is installed on juju nodes.
2) make environs/config calculate the default-series only
once, on the client machine at bootstrap time.
On balance I'm in favour of 2), but that means that
resolveCharmURL in cmd/juju becomes awkward to do.
Changed in juju-core: | |
assignee: | nobody → John A Meinel (jameinel) |
status: | Triaged → In Progress |
Changed in juju-core: | |
assignee: | John A Meinel (jameinel) → nobody |
Changed in juju-core: | |
milestone: | 1.20.0 → next-stable |
tags: | added: series |
Changed in juju-core: | |
importance: | High → Medium |
milestone: | next-stable → none |
To post a comment you must log in.
I'm not sure where distro-info is coming into play when determining what machines should be deployed.
It is supposed to always deploy a machine based on the series of the charm.
So doing "juju deploy mysql" will do a lookup in the charm store (via the API Server) for what series "mysql" should use, and that should return precise/trusty based on what versions of charms are available.
At which point, the juju client finishes its request to deploy exactly either cs:trusty/mysql or cs:precise/mysql.
Now *that* may fail because tools aren't available, or it might be that we then do some other lookup as to whether we even know what that means.
Or perhaps this bug isn't about a charm, but instead only affects the "ensure- state-availabil ity" code since that doesn't actually have a charm that it is deploying.