Comment 1 for bug 1879573

Revision history for this message
Paul Collins (pjdc) wrote : Re: k8s model upgrade rc1 to rc2 on rc2 LXD controller requires --agent-version

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.