Skip to main content

Upgrades

Upgrade managers before movers because managers assign jobs and manage the database schema. Each deployment method enforces this order:

DeploymentHow the order is kept
kolla-ansiblekolla-ansible upgrade with the service's playbook stops every manager, then starts them on the new release one at a time, and waits for each to answer before the next. Then it replaces the movers one at a time, including those on manager hosts. Then it replaces all compute agents together. On a host in two groups, each step touches only its own component.
HelmEach mover pod and each compute agent waits until every manager runs its release or a newer one before starting (mover.awaitManagers and compute.awaitManagers, on by default).
JujuUnits restart in order when the charms are refreshed. Refresh ferry-compute right after ferry: it runs the version ferry names.

API requests fail while no manager runs, and no new job starts. A mover that stops during an upgrade returns its jobs, and another mover resumes each one from the data already uploaded.

Before you upgrade​

  1. Read the release notes. They list the database migrations a release carries, separately from its other changes. They also say when an upgrade needs a quiet window, with no job claimed or running, and when both regions of a protection group must be upgraded in the same window.
  2. Back up the service's database. Managers apply migrations at startup. These migrations are not reversed automatically. A release that carries a migration cannot be rolled back by changing the version alone. To go back, stop every manager, restore the database backup and run the previous version.
  3. Stop every manager before the first one starts on a release that carries a migration. A manager of the previous release cannot read the migrated schema. kolla-ansible upgrade does this, and kolla-ansible deploy does not, because it replaces the managers one at a time. On Helm, scale the manager Deployment to zero before helm upgrade. On Juju, the charm starts a stopped manager again at the unit's next hook, so refresh in a quiet window: until its unit is refreshed, a manager runs the previous release and the requests it receives fail.
  4. Pull the images first on kolla-ansible (kolla-ansible pull). deploy and upgrade start whatever image is present. If you change the version without a pull, the old release keeps running and nothing reports it.

After you upgrade​

  • Check that GET /readyz on each manager reports the new version.
  • Check mover availability in System health and versions through GET /v1/movers.
  • Confirm that plans retain their next scheduled runs.
  • Review manager logs for new errors.

Upgrading kolla-ansible itself​

The role and playbook are linked into kolla-ansible's installation directory, which pip replaces on a kolla-ansible upgrade. Run install.sh from the service's deploy/kolla directory again afterwards.