Upgrade Process
om-deploy upgrade upgrades all nodes of the cluster from a new offline installer. It is a
rolling upgrade: the nodes are not all stopped at the same time, and etcd keeps its quorum.
Before You Start
Read the known limitations and the compatible product versions of the new version on the Releases page.
Make sure that
topology.yamlandconfiguration.yamlon the administration machine are the files that you want the cluster to run, and that they are in/etc/edgeware/origin-manager/. The upgrade pushes both to etcd and replaces what is stored there. An earlier build kept the two files in/etc/origin-manager/. If yours are still there, copy them first, or pass--topologyand--config. Without the filesom-deploystops at once and changes nothing:om-deploy: deploy: read topology "/etc/edgeware/origin-manager/topology.yaml": open /etc/edgeware/origin-manager/topology.yaml: no such file or directorymkdir -p /etc/edgeware/origin-manager cp -p /etc/origin-manager/topology.yaml /etc/origin-manager/configuration.yaml \ /etc/edgeware/origin-manager/Save a copy of the configuration and of the topology that are currently stored in etcd. The topology holds the encrypted passwords, so keep it together with the key:
ETCDCTL_API=3 etcdctl --endpoints=192.0.2.11:2379 \ get /origin/config --print-value-only > config-backup.json ETCDCTL_API=3 etcdctl --endpoints=192.0.2.11:2379 \ get /origin/topology --print-value-only > topology-backup.jsonBack up
secret.keyfrom/etc/edgeware/origin-manager/. The upgrade reuses the key and never replaces an existing one.cp -pkeeps the owner and the mode:cp -p /etc/edgeware/origin-manager/secret.key secret.key.bakA build from before password encryption has no key yet, and
cpfails withcannot stat '/etc/edgeware/origin-manager/secret.key'. See Upgrading from an Older Build.If the passwords are already encrypted and you cannot find the key, do not start the upgrade with the encrypted files. The command copies no key to the nodes and the services fail at their start. This was tested with
configure, andupgradeuses the same key step. Enter the plain text passwords again first, see Secrets.Make sure that the nodes can be reached over SSH and that etcd is healthy:
ETCDCTL_API=3 etcdctl --endpoints=192.0.2.11:2379,192.0.2.12:2379,192.0.2.13:2379 endpoint health192.0.2.11:2379 is healthy: successfully committed proposal: took = 3.143315ms 192.0.2.12:2379 is healthy: successfully committed proposal: took = 6.997611ms 192.0.2.13:2379 is healthy: successfully committed proposal: took = 6.626332msEvery endpoint must report
is healthy.om-deploy upgradedoes not check the cluster before it starts. After it restarts an etcd member it waits for the cluster to be healthy again, and it stops withdeploy: etcd cluster not healthywhen that does not happen.
If the cluster runs build 0.0.20 or earlier, read Dynamic Users and the etcd Data before you start. The first etcd restart fails unless you move the etcd data.
If a storage system is an FTP server and its path starts with /, and the server is not
chrooted, check the home directory of the FTP user before you start. The path of an FTP storage
system is now relative to the login directory of the FTP user, so /data and data are the same.
Uploads and the cleanup of deleted content used to read /data as a path from the root of the
server, and files in that old directory are no longer found. See
Storage Systems.
Standard Upgrade
Extract the new installer on the administration machine:
tar xzf origin-manager-installer-x.y.z.tar.gz cd origin-manager-installer-x.y.zInstall the new
om-deploy:./install.shRun the upgrade from the extracted directory:
om-deploy upgrade --known-hosts ~/.ssh/known_hostsOn success the command prints the
ssh:lines that show the host keys, on standard error, and thenupgrade is completeon standard output:ssh: 192.0.2.11:22 host key ssh-ed25519 SHA256:<fingerprint> ssh: 192.0.2.12:22 host key ssh-ed25519 SHA256:<fingerprint> ssh: 192.0.2.13:22 host key ssh-ed25519 SHA256:<fingerprint> upgrade is completeThe line names no version, because
upgradeinstalls the newest build in the offline repository. Use--topology,--configand--repoif the files are not in their default places, and the--ssh-*flags if you do not use the default SSH settings. The upgrade takes about a minute or more with three nodes. Most of the time goes to copying the offline repository to every node and installing the packages.Check that all units are active:
om-deploy service statusCheck the version.
om-deploy --versionshows only the version ofom-deployon the administration machine. It does not show what runs on the nodes:om-deploy --versionom-deploy x.y.z (commit <hash>, built <date>)To check a node, ask the package manager for the packages of its roles, or read the
versionfield of thestartingline in the log of a service:rpm -q origin-manager journalctl -u origin-manager -o cat | grep '"msg":"starting"' | tail -n 1origin-manager-x.y.z-el9.x86_64 {"level":"info","ts":"2026-11-11T12:35:16.013Z","msg":"starting","service":"origin-manager","version":"x.y.z (commit <hash>, built <date>)"}
What the Upgrade Does
om-deploy upgrade does the following, in order:
- Checks
topology.yamlandconfiguration.yaml, see Checks before a change. - Creates the user and the group
edgewareon every node where they are missing, see System User. An existing account is not changed. If this fails for a host, the command stops withom-deploy: deploy: create edgeware account on <host>: <cause>, before it changes a package. - Copies the new offline repository to each node and upgrades the role packages. No service is restarted yet.
- Encrypts new plain text passwords in your files and copies the key to the nodes, see Secrets.
- Pushes the topology and the configuration to etcd.
- Restarts etcd one node at a time, and waits until the cluster is healthy again before it restarts the next node.
- Restarts the OM services one host at a time, in role order:
origin-manager,origin-scheduler,origin-recorder,origin-uploader. - Waits 5 seconds and checks that every restarted OM unit is active. If one is not, the command
stops with
om-deploy: <host> <unit> is not running: <last journal lines>, see Checks after a restart. - Prints
upgrade is complete.
The files are checked before anything else: before the repository is copied and before a package is changed. If a check fails, the command stops with an error, and no node and no etcd value is touched:
om-deploy: deploy: invalid configuration "/etc/edgeware/origin-manager/configuration.yaml": uploader: minimum_replication_factor (3) exceeds replication_factor (2)
Rolling Behavior
- etcd is restarted node by node, so quorum is kept as long as the cluster was healthy when the upgrade started.
- The OM services are restarted host by host. If a role has several hosts, the others keep
running while one restarts. A role with a single host is unavailable while it restarts. With
one
managerhost the Account API is not available for a short time (about 0.1 seconds in the test). - A recorder or uploader that is stopped gives its running ingest process a grace period
(
termination_delay_seconds, 60 seconds by default) to clean up before it is killed. In the test the ingest program of a recording ended at once and the recorder stopped in under a second. An uploader that was copying files to the storage systems needed 12 to 22 seconds. Expect a restart of these roles to take up to about 75 seconds when a task is running. - The task that was interrupted goes back to the queue. It starts again 19 to 35 seconds later,
possibly on another host. A catch-up recording whose start is close to the end of the buffer can
fall out of the buffer while it waits. The Catch-up Buffer Manager then answers
Code 416, both copies fail within milliseconds and the recording ends inerror. - The upgrade stops at the first error. Fix the problem and run
om-deploy upgradeagain. Before you run it again, check that etcd is healthy (see step 5 of Before You Start). When a restart step has failed, the packages, the key,etcd_hostsand the etcd contents are already changed, and a rerun does not check the cluster first.
Known limitation: an upload that is interrupted while it copies the files to the storage
systems leaves a partial file named .om-put-<hex> in the directory of the content on that storage
system. In the test the file was about 700 MB. The upload runs again and ends done, and the file
stays beside the finished files until you delete the content.
Rolling Back
To go back to an earlier version, run om-deploy downgrade with the version to install:
om-deploy downgrade --version x.y.z --known-hosts ~/.ssh/known_hosts
On success the command prints one line that names the version that you asked for. The ssh: host
key lines go to standard error, before it:
downgrade to x.y.z is complete
With --version 0.0.20 the line is downgrade to 0.0.20 is complete.
The RPMs of that version must be in the offline repository. Use the --repo directory of the
installer that came with that version, or add its RPMs to the repository you use. If the version
is missing, the command prints no summary line and fails after about 20 seconds, because the
repository is copied to the nodes first:
om-deploy: ssh: 192.0.2.11: "dnf downgrade -y --disablerepo='*' --enablerepo='origin-manager-local' origin-manager-9.9.9" failed: Process exited with status 1
Origin Manager (local) 2.9 MB/s | 3.0 kB 00:00
No package origin-manager-9.9.9 available.
Error: No packages marked for downgrade.
— version "9.9.9" may not be retained in the offline repo; supply the archived RPMs for that version
The downgrade:
- Copies the repository to the nodes and downgrades the OM role packages on every node that runs an OM service. The packages are pinned to the version that you asked for.
- Restarts the OM services in role order.
- Waits 5 seconds and checks that every restarted OM unit is active.
- Prints
downgrade to x.y.z is complete.
It does not touch etcd, the ew-vodingest package, or the configuration and topology stored in
etcd. If you also need the previous configuration, restore the earlier configuration.yaml and
run om-deploy configure.
Upgrading from an Older Build
This section applies when you upgrade a cluster that was installed with an older build. Two things differ in older builds:
- Builds from before password encryption (tested with OM 0.0.12) have no
secret.keyand store passwords as plain text. See Passwords and the Key. - Every build up to 0.0.20 ran the services as dynamic users, also the builds that already encrypt passwords. See Dynamic Users and the etcd Data.
An upgrade from OM 0.0.12, which has both differences, was tested.
Passwords and the Key
A build from before password encryption has no secret.key. The upgrade then creates the key,
encrypts the plain text passwords in topology.yaml and configuration.yaml, and copies the key
to the nodes. It rewrites the two files in place, in whatever directory they are. Back up the key
after the upgrade.
The old build stored the database and Redis passwords as plain text in etcd. etcd keeps its old revisions, so after the upgrade an earlier revision of the topology still holds them. Anyone who can reach the etcd client port can read it. In the test, revision 2 held both passwords:
ETCDCTL_API=3 etcdctl --endpoints=192.0.2.11:2379 get /origin/topology --rev 2
The old revisions stay until etcd is compacted. After such an upgrade, compact and defragment etcd (see the etcd documentation), and change the database and Redis passwords. This procedure was not tested.
Dynamic Users and the etcd Data
Older builds ran the services as systemd dynamic users. The new builds run every service, including
etcd, as the system user edgeware, see
System User.
Known limitation: etcd does not start after the upgrade. The old build kept the etcd data in
/var/lib/private/etcd, with /var/lib/etcd as a link to it. The new unit needs a real directory
/var/lib/etcd, and on Red Hat 9 (systemd 252) systemd cannot move the data there. The first etcd
restart fails, and om-deploy upgrade stops:
om-deploy: ssh: 192.0.2.11: "systemctl restart etcd.service" failed: Process exited with status 1
Job for etcd.service failed because the control process exited with error code.
See "systemctl status etcd.service" and "journalctl -xeu etcd.service" for details.
The log of the unit (journalctl -u etcd) shows why:
etcd.service: Failed to set up special execution directory in /var/lib: Permission denied
etcd.service: Failed at step STATE_DIRECTORY spawning /usr/bin/etcd: Permission denied
At that point the packages are upgraded, a new key is installed and the OM units still run the old binaries. Running the upgrade again fails in the same way. Move the etcd data on every etcd host, one host at a time, and keep the data:
On the etcd host run:
systemctl stop etcd rm /var/lib/etcd mv /var/lib/private/etcd /var/lib/etcd chown -R edgeware:edgeware /var/lib/etcd chmod 700 /var/lib/etcd systemctl reset-failed etcd systemctl start etcdWait until
etcdctl endpoint healthreports every endpoint healthy, and then do the same on the next etcd host.When all etcd hosts are done, run
om-deploy upgradeagain. When it has finished, it printsupgrade is complete.
Configuration Directory Moved
The configuration directory of OM is /etc/edgeware/origin-manager. A node that was installed
with an earlier build that used /etc/origin-manager keeps that directory after the upgrade, but
it is no longer read. When the upgrade has finished and om-deploy service status shows all
units active, remove it on each node where it holds nothing that you need:
rm -rf /etc/origin-manager
On the administration machine, move your files first. If you ran the upgrade with
--topology and --config from /etc/origin-manager/, the upgrade encrypted the passwords in
those files. They are now the only copies that match the new key, and rm -rf deletes them. After
that om-deploy service status fails until the files are in /etc/edgeware/origin-manager/:
mv /etc/origin-manager/topology.yaml /etc/origin-manager/configuration.yaml \
/etc/edgeware/origin-manager/
om-deploy upgrade writes etcd_hosts and secret.key to the new directory.
Common Upgrade Issues
A service does not start after the upgrade:
Look at the log of the unit that failed:
journalctl -u origin-manager -n 50Check that
/etc/edgeware/origin-manager/etcd_hostsexists on the node and lists etcd endpoints that can be reached.Check that
/etc/edgeware/origin-manager/secret.keyexists on the node, belongs toedgewareand has mode 0600. A key thatedgewarecannot read, for example one that belongs torootwith mode 0600 because it was restored from a backup with a plaincp, makes the service fail at its next restart withpermission denied.om-deploy configuresets owner and mode again.
The upgrade stops with an etcd health error (deploy: etcd cluster not healthy):
- Run
systemctl status etcdon the etcd hosts and make sure that at least a majority of them are running, then run the upgrade again.
The upgrade stops with "systemctl restart etcd.service" failed:
- You upgrade from a build that ran the services as dynamic users (0.0.20 or earlier). Move the etcd data as described in Dynamic Users and the etcd Data.
The upgrade stops with om-deploy: deploy: create edgeware account on <host>: <cause>:
om-deploycould not create the user and the groupedgewareon that host, for example because the node cannot be reached over SSH. No package was changed and nothing was copied. Fix the cause on that host and run the upgrade again. See System User.
The upgrade stops with an invalid configuration error:
- Fix
configuration.yamlas the message says and run the upgrade again. Nothing was changed on any node or in etcd.
The upgrade stops with om-deploy: <host> <unit> is not running:
- The unit was not active 5 seconds after its restart. The rest of the line is up to the last
three lines of its journal since the restart, joined with a semicolon and a space. Fix the cause, for example with
journalctl -u <unit> -n 50on that host, and run the upgrade again.