upgrade-juju can't find a released-style version in the proposed stream

Bug #1742342 reported by Christian Muirhead
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Low
Unassigned

Bug Description

The release process (at least for an agent-only release) puts the prepared agent bundle into the proposed stream, so that it can try upgrading to the new version. Unfortunately that doesn't work for a release with a final release version number (like 2.2.9) - the upgrade-juju command can't see the 2.2.9 binaries despite them being in the stream.

I thought this was because environs/tools.PreferredStream considered 2.2.9 to be a released version number so it would only look in the released stream. Reading the code now I can see that was wrong - it prefers the environment's selected agent stream if that's set and not "released", and in the job output I can see that the controller was bootstrapped with agent-stream=proposed. So I'm not sure why this is happening.

A possible fix would be to add an --agent-stream option to upgrade-juju - that would mean that we search that stream (and any lower-risk ones) for candidates.

See http://ci.jujucharms.com/job/release-juju-verify-upgrade/53/console

John A Meinel (jameinel)
Changed in juju:
milestone: 2.3.2 → 2.3.3
Changed in juju:
milestone: 2.3.3 → none
Revision history for this message
Heather Lanigan (hmlanigan) wrote :

Between filing this bug and 2.8.0, juju has added --agent-stream to upgrade-juju and upgrade-controller.

However there is still an issue. juju is able to verify the version and start the upgrade. Then the upgrade worker uses the model-config agent-stream to download and fails if not also set to proposed.

Side note: if you upgrade to say 2.8.1 proposed, you cannot currently then upgrade to 2.8.1 released. Version checks use the version, not a (version, stream) tuple. In the rare case we spin a new candidate, the user would be left on the first one.

Harry Pidcock (hpidcock)
Changed in juju:
assignee: nobody → Harry Pidcock (hpidcock)
milestone: none → 2.8.3
John A Meinel (jameinel)
Changed in juju:
assignee: Harry Pidcock (hpidcock) → nobody
Pen Gale (pengale)
Changed in juju:
milestone: 2.8.4 → 2.9-beta1
Changed in juju:
milestone: 2.9-beta1 → 2.9-rc1
Pen Gale (pengale)
Changed in juju:
importance: High → Medium
milestone: 2.9-rc1 → none
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: Medium → Low
tags: added: expirebugs-bot
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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