juju deploy ignores model default-series
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Nate Finch |
Bug Description
When deploying a non-multi-series charm, the juju deploy command
will take the default series from the charmstore, not from the
model default-series as specified and documented in the code.
For example, when the default series is set to "precise", it
should not deploy to trusty unless there's no "precise" version
of the charm, but that's what it does:
% juju set-environment 'default-
% juju deploy wordpress
Added charm "cs:trusty/
Deploying charm "cs:trusty/
%
To fix this, I think the deploy logic needs to call Resolve twice
for non-multi-series charms - first to work out that there
is a charm that can be resolved to and that it's not multi-series;
secondly to work out if the charm URL can be resolved with
the default series (if not, then it can fall back to the first result).
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 2.0-beta1 |
tags: | added: deploy juju-release-support |
Changed in juju-core: | |
milestone: | 2.0-beta1 → 2.0-beta2 |
Changed in juju-core: | |
milestone: | 2.0-beta2 → 2.0-beta3 |
Changed in juju-core: | |
milestone: | 2.0-beta3 → 2.0-beta4 |
tags: | added: 2.0-count |
Changed in juju-core: | |
milestone: | 2.0-beta4 → 2.0.0 |
tags: | added: regression |
Changed in juju-core: | |
milestone: | 2.0.0 → 2.0-beta7 |
tags: | added: rc1 |
Changed in juju-core: | |
assignee: | nobody → Nate Finch (natefinch) |
status: | Triaged → In Progress |
Changed in juju-core: | |
milestone: | 2.0-beta7 → 2.0-beta8 |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
affects: | juju-core → juju |
Changed in juju: | |
milestone: | 2.0-beta8 → none |
milestone: | none → 2.0-beta8 |
I've also seen that it ignores specifying the series on the command line:
$ juju deploy trusty/ubuntu
Added charm "cs:ubuntu-0" to the model.
Deploying charm "cs:ubuntu-0" with the default charm metadata series "xenial".