Juju 2.9.1 Release Candidate Notes

The Juju team is proud to release Juju 2.9.1 candidate. We aim to be your preferred tool for writing operators, software that manages software, whether your hosting infrastructure is Kubernetes, in the cloud or on-premises.

Because this is a release candidate, you’ll need to upgrade any existing controllers with --agent-stream=proposed:
juju upgrade-controller <controller> --agent-stream=proposed

Bootstrapping a new controller is done in a similar way:

juju bootstrap <cloud> --config agent-stream=proposed

This release candidate includes important fixes

  • LP #1926595 - libjuju unable to connect to websocket on juju 2.9 k8s controller (Juju fix included in this release but will still require additional libjuju changes coming soon)
  • LP #1925735 - model migration for podspec charms - agents lost after migration
  • LP #1925734 - model migration for k8s - migration time out with sidecar charms
  • LP #1925803 - 2.9 fails to refresh --switch between different charm sources
  • LP #1928282 - incorrect k8s service address
  • LP #1910810 - juju destroy-model --force times out when trying to remove k8s model

Additional bugs fixed can be found in the milestone page.

Known Issues

Model upgrades with sidecar charms

Models which contain k8s sidecar charms cannot be upgraded from 2.9.0. This will not be an issue from this 2.9.1 release onwards, but any such workloads running on 2.9.0 will need to be redeployed.

Upgrade Notes

libjuju Python Upgrade Steps

Juju is about to release a new version of our Python library to support the new Kubernetes proxy mechanism added in 2.9.0. This allows users to bootstrap to Kubernetes clusters that may not have a native means of exposing the Juju controller to clients.

To facilitate this Juju proxy’s through the Kubernetes api to talk with the controller. To allow these changes in Juju to work in the Python library a small RBAC change has to be made in Kubernetes if you are upgrading a controller from 2.9.0 to 2.9.1. This step does not have to be done for any other case.

  1. Firstly identify the name of the controller namespace in kubernetes. This can be done running kubectl get ns and looking for the namespaces that matches “controller-”

  2. Once the namespace is found you will need to create an updated changes.yaml file with the following content.

- apiGroups:
  - ""
  - pods
  - list
  - get
  - watch
- apiGroups:
  - ""
  - services
  - get
- apiGroups:
  - ""
  - pods/portforward
  - create
  - get
  1. Apply the changes.yaml to the proxy role used by juju using the namespace identified in the first step.
kubectl patch role controller-proxy  -p "$(cat changes.yaml)" -n <controller-namespace>

How do I install Juju?

The best way to get a specific release of Juju is to install the snap from the appropriate channel. snap info juju will give you a list of the current channels and the versions published in them. For the latest stable release of Juju:

sudo snap install juju --classic --channel=2.9/candidate

The Juju CLI is available for a variety of platforms, including Windows and macOS. Refer to the installation documentation for details.

How do I upgrade?

There are three binaries that make up a Juju deployment - the client, the server and the agents. To upgrade a running system:

Upgrade the client

Make sure you have the version of the Juju CLI that you want running across the system (controller and agents in any deployed models). If you installed the Juju snap, it will automatically be updated daily from the channel you selected, but you might want to sudo snap switch juju --channel=2.9/candidate for example, to get a particular version. To get the latest binary from your channel:

snap refresh juju --channel=2.9/candidate

Upgrading the Juju client through other channels

Check version

Make sure that you’re using the Juju version you want.

juju version

What to do if Juju reports an old version

Backing up

The controller state can be saved to allow for recovery in case the upgrade process encounters a serious error.

juju create-backup

Upgrade a Juju server

You can see which servers your client knows about, and their versions, with this command:

juju controllers
Controller  ...  Version
azure*      ...  2.8.3  
jaas        ...  2.7.6  

You can instruct a server to upgrade itself to the latest version:

juju upgrade-controller <controller> --agent-stream=proposed

How to upgrade the controller

Upgrade deployed agents

Each running model includes a set of Juju agents which manage the communication between your charms and the Juju server. Your model agents remain at the same version until you ask to upgrade them.

juju upgrade-model <model>

How to upgrade your model(s)

Further instructions

For detailed information about the upgrade process please see:

Feedback Appreciated!

Let us know how you’re using Juju! Please ask questions on discourse.charmhub.io, tweet us @juju_devops with the hashtag #juju_devops, and chat with us at #juju on Freenode.