This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Upgrades

Upgrading Origin Manager to newer versions

    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

    1. Read the known limitations and the compatible product versions of the new version on the Releases page.

    2. Make sure that topology.yaml and configuration.yaml on 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 --topology and --config. Without the files om-deploy stops 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 directory
      
      mkdir -p /etc/edgeware/origin-manager
      cp -p /etc/origin-manager/topology.yaml /etc/origin-manager/configuration.yaml \
         /etc/edgeware/origin-manager/
      
    3. 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.json
      
    4. Back up secret.key from /etc/edgeware/origin-manager/. The upgrade reuses the key and never replaces an existing one. cp -p keeps the owner and the mode:

      cp -p /etc/edgeware/origin-manager/secret.key secret.key.bak
      

      A build from before password encryption has no key yet, and cp fails with cannot 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, and upgrade uses the same key step. Enter the plain text passwords again first, see Secrets.

    5. 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 health
      
      192.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.626332ms
      

      Every endpoint must report is healthy. om-deploy upgrade does 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 with deploy: etcd cluster not healthy when 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

    1. Extract the new installer on the administration machine:

      tar xzf origin-manager-installer-x.y.z.tar.gz
      cd origin-manager-installer-x.y.z
      
    2. Install the new om-deploy:

      ./install.sh
      
    3. Run the upgrade from the extracted directory:

      om-deploy upgrade --known-hosts ~/.ssh/known_hosts
      

      On success the command prints the ssh: lines that show the host keys, on standard error, and then upgrade is complete on 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 complete
      

      The line names no version, because upgrade installs the newest build in the offline repository. Use --topology, --config and --repo if 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.

    4. Check that all units are active:

      om-deploy service status
      
    5. Check the version. om-deploy --version shows only the version of om-deploy on the administration machine. It does not show what runs on the nodes:

      om-deploy --version
      
      om-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 version field of the starting line in the log of a service:

      rpm -q origin-manager
      journalctl -u origin-manager -o cat | grep '"msg":"starting"' | tail -n 1
      
      origin-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:

    1. Checks topology.yaml and configuration.yaml, see Checks before a change.
    2. Creates the user and the group edgeware on every node where they are missing, see System User. An existing account is not changed. If this fails for a host, the command stops with om-deploy: deploy: create edgeware account on <host>: <cause>, before it changes a package.
    3. Copies the new offline repository to each node and upgrades the role packages. No service is restarted yet.
    4. Encrypts new plain text passwords in your files and copies the key to the nodes, see Secrets.
    5. Pushes the topology and the configuration to etcd.
    6. Restarts etcd one node at a time, and waits until the cluster is healthy again before it restarts the next node.
    7. Restarts the OM services one host at a time, in role order: origin-manager, origin-scheduler, origin-recorder, origin-uploader.
    8. 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.
    9. 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 manager host 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 in error.
    • The upgrade stops at the first error. Fix the problem and run om-deploy upgrade again. 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_hosts and 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:

    1. 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.
    2. Restarts the OM services in role order.
    3. Waits 5 seconds and checks that every restarted OM unit is active.
    4. 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.key and 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:

    1. 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 etcd
      
    2. Wait until etcdctl endpoint health reports every endpoint healthy, and then do the same on the next etcd host.

    3. When all etcd hosts are done, run om-deploy upgrade again. When it has finished, it prints upgrade 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 50
      
    • Check that /etc/edgeware/origin-manager/etcd_hosts exists on the node and lists etcd endpoints that can be reached.

    • Check that /etc/edgeware/origin-manager/secret.key exists on the node, belongs to edgeware and has mode 0600. A key that edgeware cannot read, for example one that belongs to root with mode 0600 because it was restored from a backup with a plain cp, makes the service fail at its next restart with permission denied. om-deploy configure sets owner and mode again.

    The upgrade stops with an etcd health error (deploy: etcd cluster not healthy):

    • Run systemctl status etcd on 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:

    The upgrade stops with om-deploy: deploy: create edgeware account on <host>: <cause>:

    • om-deploy could not create the user and the group edgeware on 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.yaml as 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 50 on that host, and run the upgrade again.