add-unit deploys wrong agent version after controller is upgraded

Bug #1705628 reported by Menno Finlay-Smits
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Unassigned
2.2
Fix Released
High
Eric Claude Jones

Bug Description

When add-unit is used after the controller has been upgraded, the new unit uses the tools version of the controller, not the model agent version.

To reproduce:

* bootstrap a controller with 2.1
* deploy "ubuntu" in the default model
* use `juju upgrade-juju -m controller ...` to upgrade the controller to 2.2
* juju add-unit ubuntu
* wait
* the new machine for ubuntu/1 is running 2.2, not 2.1.x as per the model version

I tested with 2.1.2 and 2.2.3 (tip of current 2.2 branch).

Tags: upgrade-juju
Changed in juju:
milestone: none → 2.3-alpha1
Revision history for this message
John A Meinel (jameinel) wrote :

new machines created in a model should be trying to create agents according to *that model's* target 'agent version', not the controller's 'agent version'.

Changed in juju:
status: New → Triaged
Revision history for this message
Ian Booth (wallyworld) wrote :
Revision history for this message
William Grant (wgrant) wrote :

Is there a way to fix existing affected models? We can't upgrade the whole model because it thinks the previous upgrade hasn't completed, as the agent versions don't all match.

Changed in juju:
milestone: 2.3-beta1 → 2.3-beta2
Revision history for this message
Anastasia (anastasia-macmood) wrote :

I suspect that the fix for this has been already ported into 2.3 (develop) as part of one of the larger merges we have undertaken recently.

Changed in juju:
status: Triaged → Fix Committed
Changed in juju:
milestone: 2.3-beta2 → 2.3-beta1
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.