Charm channel isn't used on upgrade-charm

Bug #1804669 reported by Simon Richardson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Eric Claude Jones

Bug Description

Relates to lp:1560520

When using upgrade charm and you don't provide a channel, we fallback to charmrepo.ResolveWithChannel, which attempts to find you the best channel. This can lead to some unexpected results when it determines the best channel.

The application state has the charm channel ("cs-channel") so we could thread that information when doing upgrade charm.

Workaround is to pass the channel to the upgrade-charm command.

Changed in juju:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.5-rc1
Changed in juju:
milestone: 2.5-rc1 → 2.5.1
Changed in juju:
milestone: 2.5.1 → 2.5-rc1
Revision history for this message
Eric Claude Jones (ecjones) wrote :

Hi Simon,

Are the unexpected results the same as the issue described in lp:1560520, that is, the upgrade command pulls from the stable channel (or best channel) by default when no channel is specified? Like lp:1560520, are we saying that this behavior happens regardless of the channel that was originally used to deploy the charm? If so, then based on your information I guess the proper reproduction steps should be:

1) Deploy a charm from the charm store using a channel other than "stable" (the charm should have later entries in stable)
2) Upgrade the charm without specifying a channel
3) You should see the charm get upgraded from the stable channel and not the original channel from which the charm was deployed

Expected behavior

The upgrade command should, by default when no channel is specified, use the same channel from which the charm was originally deployed.

Does all this sound correct?

Revision history for this message
Simon Richardson (simonrichardson) wrote :

Hi Eric,

> are we saying that this behavior happens regardless of the channel that was originally used to deploy the charm?

Indeed, it seems that we don't honour the channel we deployed the charm with and therefore can end up in a confusing state for the operator.

The information you've provided is correct.

Revision history for this message
Eric Claude Jones (ecjones) wrote :
Changed in juju:
assignee: nobody → Eric Claude Jones (ecjones)
status: Triaged → In Progress
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.