Comment 1 for bug 1863179

Revision history for this message
Ian Booth (wallyworld) wrote :

I think we can make some UX improvements here.

There's also a distinct different is what's possible with cloud vs k8s. I assume you're talking about k8s? There error messages below seem tailored to cloud and should be reworked to take account of the fact that k8s needs docker images available. With cloud, you can just use an arbitrary agent binary directly.

The comments below pertain to cloud rather than k8s as I think there's also improvements there as well.

<snip>
$ juju upgrade-controller --dry-run --agent-stream=devel --agent-version=2.8.0
no prepackaged agent binaries available, using local agent binary 2.8.0.1
best version:
    2.8.0.1
upgrade to this version by running
    juju upgrade-controller
<snip>

Because there's no official Juju 2.8.0 binary in devel stream, it is saying that it will need to compile a copy from source (or finad a locally compiled binary) and upload that. The .1 at the end of the X.Y.Z version is the build number and signifies an unofficial build.

<snip>
$ juju upgrade-controller --dry-run --agent-stream=devel --agent-version=2.8.0.1
no prepackaged agent binaries available, using local agent binary 2.8.0.2
best version:
    2.8.0.2
upgrade to this version by running
    juju upgrade-controller
<snip>

Doing the above is not really kosher as providing an unofficial version to --agent-version doesn't really make sense. Juju should error here. It's adding 1 to the build number of the version it cannot find and is saying it will compile a local version.

<snip>
$ juju upgrade-controller --dry-run --agent-stream=devel --agent-version=2.8.0.2
no prepackaged agent binaries available, using local agent binary 2.8.0.3
best version:
    2.8.0.3
upgrade to this version by running
    juju upgrade-controller
<snip>

Ditto.

<snip>
$ juju upgrade-controller
no upgrades available
<snip>

There are no released versions in the stable stream past 2.7.1.

<snip>
$ juju upgrade-controller --dry-run --agent-stream=released --agent-version=2.7.2
no prepackaged agent binaries available, using local agent binary 2.7.2.1
best version:
    2.7.2.1
upgrade to this version by running
    juju upgrade-controller
<snip>

No released 2.7.2 version hence local compiled version would be used.