Choose what this site may use

This site uses strictly necessary cookies to work and to remember your privacy choices. With your permission it would also load content hosted by other services, such as videos, maps and fonts, which then receive your network address and device data. We do not sell or share your personal information and we run no advertising. Choose Accept all, Reject all or Customise. You can change your mind at any time through Privacy choices at the foot of every page.

  • Always on

    Needed for the site to work and to remember your privacy choices. Always on.

  • Remembers settings you choose, such as the light or dark display, in your browser.

  • Loads videos, maps and other content hosted by other services. Those services receive your address and device data.

Menu Close
In this section: Learn
Start
Guides
Domain packs
Participants
Security and privacy
Pilot kits
Operations
Ecosystem

Rollback

Source docs/ops/rollback.md

On this page
  1. Images only (the usual case)
  2. When the new release wrote records the old one refuses
  3. Static web sites
  4. Configuration changes

The stores are append-only and every release reads the files of the release before it, so going back is a change of images, not of data, as long as the new release wrote no record shape the old one cannot read.

Images only (the usual case)

  1. Revert the environment file’s images.tag and images.digests to the previous release; render; apply. Or, as an immediate step before the pull request: kubectl -n <ns> rollout undo statefulset/obsp-gateway (and the same for any other workload that changed), then bring the repository back in line.
  2. Watch readiness: each gateway pod replays its store on start.
  3. Check with the live harness and the health paths that the previous behaviour is back.

When the new release wrote records the old one refuses

The gateway refuses to start on a store line it cannot parse. Do not delete lines.

  1. Scale the service to zero.
  2. Keep the store as it is (it is evidence) and restore the last backup taken before the release into the volume with RESTORE_FORCE=yes (restore.md); the replaced file stays next to it as <file>.before-restore-<time>.
  3. Start the previous release. The records written between the backup and the rollback are in the kept file: list them, and ask the senders to replay (node agents keep their outbox until a batch is answered, so most are resent without action).
  4. Write an incident record (incident-response.md).

Static web sites

Swap releases.active and releases.previous (or the Terraform active_release and previous_release) and apply: static-sites.md.

Configuration changes

NetworkPolicies, Ingress and autoscaler changes are rolled back the same way: revert the environment file, render, apply. A volume is never shrunk and a StatefulSet’s volume claims are never deleted by a rollback (the claims are kept on delete and on scale-down).