upgrade-model should default to using controller version
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
I have a controller I bootstrapped with 2.8-rc1. I was able to upgrade the controller to 2.8-rc2 with juju upgrade-controller --agent-stream proposed.
However, Juju doesn't seem to be able to automatically upgrade the model hosted in that controller:
[agnew(~)] juju upgrade-model
best version:
2.8.1.3647
ERROR model cannot be upgraded to 2.8.1.3647 while the controller is 2.8-rc2: upgrade 'controller' model first
[agnew(~)] juju upgrade-model --agent-stream proposed
best version:
2.9-beta1.3650
ERROR model cannot be upgraded to 2.9-beta1.3650 while the controller is 2.8-rc2: upgrade 'controller' model first
[agnew(~)] _
However:
[agnew(~)] juju upgrade-model --agent-version 2.8-rc2
best version:
2.8-rc2
started upgrade to 2.8-rc2
[agnew(~)] _
This seems like something Juju should be able to work out for itself.
Changed in juju: | |
milestone: | 2.8.1 → 2.8.2 |
summary: |
- k8s model upgrade rc1 to rc2 on rc2 LXD controller requires --agent- - version + upgrade-model should default to using controller version |
tags: | added: upgrade-juju |
Changed in juju: | |
milestone: | 2.8.2 → 2.8.3 |
Changed in juju: | |
milestone: | 2.8.4 → none |
I just bootstrapped a fresh rc1 controller with the rc2 client to test something else, and now I can't upgrade at all:
[agnew(~)] juju upgrade-controller --agent-stream proposed
best version:
2.8-rc2
started upgrade to 2.8-rc2
[agnew(~)] juju status -m controller
Model Controller Cloud/Region Version SLA Timestamp
controller betabeta localhost/localhost 2.8-rc2 unsupported 10:29:38+12:00
Machine State DNS Inst id Series AZ Message
0 started 10.9.8.197 juju-ffacfd-0 bionic Running
[agnew(~)] juju upgrade-model --agent-version 2.8-rc2
ERROR no matching agent versions available
[agnew(~)] _
I wondered if the local streams needed a prod, but:
[agnew(~)] juju upgrade-model --agent-stream proposed
best version:
2.9-beta1.3650
ERROR model cannot be upgraded to 2.9-beta1.3650 while the controller is 2.8-rc2: upgrade 'controller' model first
[agnew(~)] juju upgrade-model --agent-version 2.8-rc2
ERROR no matching agent versions available
[agnew(~)] _
However, this worked:
[agnew(~)] juju upgrade-model --agent-version 2.8-rc2 --agent-stream proposed
best version:
2.8-rc2
started upgrade to 2.8-rc2
[agnew(~)] _
Weird that it worked without it on my previous controller.