Installation
Origin Manager (OM) is installed on a cluster of nodes by om-deploy. You run om-deploy from
one administration machine. It connects to every node over SSH, installs the packages from a
bundled offline repository, sets up the etcd cluster, pushes the configuration and starts the
services.
OM is officially supported on Red Hat Enterprise Linux 9. Other binary compatible distributions
are unofficially supported. OM is delivered as RPM packages, bundled in an offline installer named
origin-manager-installer-x.y.z.tar.gz, which contains:
install.sh: installsom-deployon the administration machine.repo: the local yum repository with all OM packages.
Packages per role
| Role | Packages | systemd unit |
|---|---|---|
etcd | etcd | etcd.service |
manager | origin-manager (also provides the om and om-admin tools, so they are only on nodes that have this role) | origin-manager.service |
scheduler | origin-scheduler | origin-scheduler.service |
recorder | origin-recorder, ew-vodingest | origin-recorder.service |
uploader | origin-uploader, ew-vodingest | origin-uploader.service |
om-deploy installs on each node only the packages for the roles that the node has in the
topology. A node can have several roles. ew-vodingest is versioned independently of OM. It needs
a license file on every recorder and uploader host, see ew-vodingest License.
The om-deploy package, installed on the administration machine, provides /usr/bin/om-deploy
and the example files topology.yaml.example and configuration.yaml.example in
/etc/edgeware/origin-manager/.
Install om-deploy
On the administration machine, extract the installer and run install.sh as root:
tar xzf origin-manager-installer-x.y.z.tar.gz
cd origin-manager-installer-x.y.z
./install.sh
Configuring local offline repo for el9 (/root/origin-manager-installer-x.y.z/repo/el9)
Installing om-deploy from the local repo (offline)
...
Done. om-deploy installed:
/usr/bin/om-deploy
install.sh works without network access. On an unsupported Red Hat major version it stops with
an error:
unsupported RHEL major version: '8' (need 9 or 10)
Known limitation: install.sh does not check which user runs it. An unprivileged user gets an
error at the first file that it cannot write, and the message does not say why:
./install.sh: line 26: /etc/yum.repos.d/origin-manager-local.repo: Permission denied
Check the installed version:
om-deploy --version
om-deploy x.y.z (commit <hash>, built <date>)
The om-deploy command
| Subcommand | What it does |
|---|---|
install | Installs packages, sets up etcd, pushes the configuration and starts the services |
configure | Pushes the topology and configuration again and restarts the OM services |
upgrade | Rolling upgrade of all nodes |
downgrade | Rolling downgrade to an earlier version |
service | Starts, stops, restarts or shows the status of the services |
uninstall | Stops the services, removes the packages and cleans up the nodes |
Every subcommand that contacts nodes accepts these flags:
| Flag | Default | Description |
|---|---|---|
--ssh-user | root | SSH user |
--ssh-key | ~/.ssh/id_rsa | SSH private key |
--ssh-port | 22 | SSH port |
--known-hosts | none | known_hosts file used to check host keys |
Without --known-hosts, om-deploy accepts any SSH host key. Always pass --known-hosts in
production. om-deploy prints the key that each host presented on standard error, so that you
can notice a changed key:
ssh: 192.0.2.11:22 host key ssh-ed25519 SHA256:<fingerprint>
More flags:
| Flag | Subcommands | Default | Description |
|---|---|---|---|
--topology | all | /etc/edgeware/origin-manager/topology.yaml | Topology file |
--config | install, configure, upgrade | /etc/edgeware/origin-manager/configuration.yaml | Configuration file to push |
--repo | install, upgrade, downgrade | repo | The repo directory of the installer |
--version | downgrade | none | Version to install (required) |
--role | service | all roles | Limit to one role: etcd, manager, scheduler, recorder or uploader |
--repo is a relative path by default, so run om-deploy from the extracted installer
directory or give an absolute path.
On success om-deploy prints one summary line on standard output, after the command has finished.
The ssh: lines and the warnings go to standard error, so on a terminal the summary line comes
last. The lines are:
| Command | Summary line |
|---|---|
install | install is complete |
configure | configure is complete |
upgrade | upgrade is complete. It names no version, because it installs the newest build in the offline repository |
downgrade --version 0.0.20 | downgrade to 0.0.20 is complete. It names the version that you gave |
uninstall | uninstall is complete |
service start | services started |
service stop | services stopped |
service restart | services restarted |
service start --role recorder | recorder services started. With --role, the line starts with the role: manager services restarted, recorder services stopped |
service status | No summary line. It prints one line for each unit, see Service Control |
For example:
om-deploy configure --known-hosts ~/.ssh/known_hosts
ssh: 192.0.2.11:22 host key ssh-ed25519 SHA256:<fingerprint>
ssh: 192.0.2.12:22 host key ssh-ed25519 SHA256:<fingerprint>
configure is complete
To keep the two streams apart, for example in a script, send them to different files:
om-deploy configure --known-hosts ~/.ssh/known_hosts > summary.txt 2> messages.txt
cat summary.txt
configure is complete
If uploader.storages names a storage system that is not defined in storage, om-deploy also
prints one warning line on standard error for each such name. The command still succeeds:
warning: upload storage system "nas-9" is not configured in storage
On failure om-deploy prints no summary line. It prints om-deploy: <reason> on standard error
and exits with status 1. Run without a subcommand, it prints the usage text and exits with
status 2. An unknown flag prints the flags of the subcommand and also exits with status 2.
Known limitation: om-deploy does not stop you from starting two commands at the same time.
Two om-deploy upgrade runs once collided in dnf on one node, and one of them failed. Run one
om-deploy command at a time.
Checks before a change
install, configure and upgrade check topology.yaml and configuration.yaml before they do
anything else. They use the checks that the services run when they start: the replication
factors, log_level, the Redis database numbers, the storage systems for the recorder and the
uploader, the rules for the Catch-up Buffer Managers and the syntax of uploader.ingest_script.
If a check fails, om-deploy stops at once. It changes nothing on any node or in etcd, and it
does not rewrite your files:
om-deploy: deploy: invalid configuration "/etc/edgeware/origin-manager/configuration.yaml": redis: cache_db/queue_db/result_db must differ (got 1/1/2)
The reasons that you can see are listed in Troubleshooting. The rules are described on the Configuration page.
When the checks have passed, the first change that these three commands make is to create the
user and the group edgeware on the nodes that lack them, see System User.
Checks after a restart
After install, configure, upgrade and downgrade, and after service start and
service restart, om-deploy waits 5 seconds and checks every OM unit that it started. etcd is
not checked. The summary line is printed only after this check has passed. If a unit is not
active, or if systemd restarted it in the meantime, om-deploy exits with status 1 and prints
up to the last three lines of the journal of that unit since om-deploy started it, without a
summary line. The lines are joined with a semicolon and a space and include the messages of systemd itself. If there
is no such line, or om-deploy cannot read the journal, it prints the state of the unit instead,
for example failed or activating:
om-deploy: 192.0.2.12 origin-uploader is not running: origin-uploader: uploader: ingest_script binary "/usr/bin/no-such-ingest": exec: "/usr/bin/no-such-ingest": stat /usr/bin/no-such-ingest: no such file or directory
Here systemd could not determine the user of the unit (217/USER), and the lines are its own
messages:
om-deploy: 192.0.2.12 origin-recorder is not running: origin-recorder.service: Failed to determine user credentials: No such process; origin-recorder.service: Main process exited, code=exited, status=217/USER; origin-recorder.service: Failed with result 'exit-code'.
The new configuration and topology are already pushed when this happens. Fix the cause and run the
command again. service stop and service status do not check the units.
Because of the wait, configure takes about 6 to 10 seconds with three nodes, and
service restart --role <role> takes about 5 to 6 seconds. The check has limits. A service that
stops more than 5 seconds after its start is not detected. A wrong ingest_script of a Catch-up
Buffer Manager is not detected either: the recorder starts, and the recordings fail.
Prerequisites
- Administration machine: Red Hat 9 (or compatible), where you run
install.shandom-deployas root.om-deploykeepssecret.keyat/etc/edgeware/origin-manager/secret.keyon this machine, and the path cannot be changed. As an ordinary user it stops with apermission deniederror. - Nodes: Red Hat 9 (or compatible) on every node in the topology. On any other OS
om-deploystops with anunsupported RHEL majorerror. - SSH access: the administration machine can connect to every node as the configured user
(default
root) with the configured key. - etcd:
om-deployinstalls etcd on the hosts in theetcdrole. Use at least three hosts. The client port (default 2379) and the peer port (default 2380) must be reachable between the nodes.om-deploycreates the etcd cluster only duringinstall, see Changing a Deployment. - MySQL: a MySQL (MariaDB/Galera) cluster that the OM nodes can reach. It is shared with
Convoy and is not installed by
om-deploy. - Redis: a Redis server that the OM nodes can reach, shared with Convoy and not installed
by
om-deploy. OM uses three databases on it: the cache, the work queue and the recording results. They must be different (defaults 0, 1 and 2). - Storage: the storage systems that recordings and uploads are written to, described in
configuration.yaml. The base directory (path) of every local storage system must exist and be writable by the system useredgewareon every recorder, uploader and scheduler node, and on a node where you runom-admin storage repair. The scheduler removes the files of deleted content, so on a scheduler node without the directory a deleted item stays in the list of pending deletes, see When the Cleanup Does Not Finish.om-deploydoes not create the directory andconfiguredoes not check it. An upload to a missing base directory fails withopen <path>: no such file or directory. A recording creates the missing directory and writes there, which is usually not what you want. See System User. - ew-vodingest license: every recorder and uploader host needs the license file
/etc/edgeware/ew-vodingest/license.json. Until you copy it there, every recording and upload fails. See ew-vodingest License. - Port 9090:
origin-managerlistens on port 9090 for the Account API, or on the port ofmanager.account_api_portwhen it is set. The port must be free on every node that has themanagerrole.
Directory Structure
| Path | Content |
|---|---|
/etc/edgeware/origin-manager/etcd_hosts | etcd endpoints, one per line, mode 0644. Written by om-deploy on every node that runs an OM service. Contains no secrets |
/etc/edgeware/origin-manager/secret.key | Key that decrypts stored passwords. Owner edgeware, mode 0600. Written to every node that runs an OM service |
/etc/edgeware/origin-manager/topology.yaml | Your topology file, on the administration machine |
/etc/edgeware/origin-manager/configuration.yaml | Your configuration file, on the administration machine |
/etc/edgeware/ew-vodingest/license.json | License of ew-vodingest, on every recorder and uploader node. You copy it there |
/usr/bin/ | Depends on the roles of the node: origin-manager with om and om-admin, origin-scheduler, origin-recorder, origin-uploader, etcd and etcdctl. om-deploy is only on the administration machine |
/usr/lib/systemd/system/ | The unit files |
/var/lib/etcd | etcd data. Owner edgeware, mode 0700 |
/etc/systemd/system/etcd.service.d/cluster.conf | etcd cluster settings written by om-deploy |
The OM services and etcd run as the system user edgeware, see System User.
The services do not read their settings from files. om-deploy pushes your two files to etcd
and the services read them there. At start, a service reads two files on its node: etcd_hosts
and secret.key. A service does not start without them.
Services write their logs to the system journal. See the Logging page.
During installation om-deploy copies the offline repository to /tmp/origin-manager-repo on
each node and writes /etc/yum.repos.d/origin-manager-local.repo.
System User
The OM services and etcd run as the nologin system user edgeware (group edgeware).
ew-vodingest uses the same account. Earlier builds ran the services as dynamic users, see
Upgrades.
om-deploy install, upgrade and configure create the user and the group on every node of the
topology where they are missing. That is every host that has an etcd, manager, scheduler,
recorder or uploader role, and each host is handled once, also when it has several roles. The
account is created before any package is installed and before any file is copied to a node. It
comes right after the checks of the two files. om-deploy runs the same
commands as the pre-install script of the OM packages, which also creates the account when it is
missing. An account that already exists is not changed. downgrade and service do not create
the account, and uninstall keeps it.
If om-deploy cannot create the account on a host, it stops with an error that names the host.
Nothing is installed or copied, and the hosts after it are not touched. The hosts before it keep
the account that was created. Fix the cause and run the command again. Here the node cannot be
reached over SSH:
om-deploy: deploy: create edgeware account on 192.0.2.12: ssh: dial 192.0.2.12:22: dial tcp 192.0.2.12:22: i/o timeout
The operating system picks the numeric user id and group id of a new account, so they can differ
from node to node. om-deploy does not check or align them. If a storage system is on a mount
that several nodes share, for example NFS, every node must write with the same numeric uid and
gid of edgeware. Make sure that they match on all of these nodes. This also applies to an
account that existed before om-deploy ran.
The base directory of every local storage system must exist on every recorder, uploader and
scheduler node, and edgeware must be able to write to it. om-deploy does not create it.
Topology
The topology file topology.yaml says which hosts run which role and how to reach MySQL and
Redis. Start from the example:
cp /etc/edgeware/origin-manager/topology.yaml.example \
/etc/edgeware/origin-manager/topology.yaml
Replace every <...> placeholder. A three-node example:
roles:
etcd:
hosts: [192.0.2.11, 192.0.2.12, 192.0.2.13]
manager:
hosts: [192.0.2.11]
scheduler:
hosts: [192.0.2.11]
recorder:
hosts: [192.0.2.12, 192.0.2.13]
uploader:
hosts: [192.0.2.12, 192.0.2.13]
database:
hosts: [db-1.example.invalid, db-2.example.invalid, db-3.example.invalid]
port: 3306
user: om_user
password: change-me
redis:
hosts: [redis-1.example.invalid]
port: 6379
password: change-me-too
The etcd, manager, scheduler, recorder and uploader roles are installed by
om-deploy. The database and redis roles only carry connection details. Every key is
described in the Configuration page.
List the OM nodes by IPv4 address. The scheduler finds itself among the hosts of the scheduler
role, in this order:
- A host that equals one of the IP addresses of its node.
- A host that is exactly equal to the output of
hostname.
The match is case-sensitive, so a short name does not match a fully qualified name, and names are
not resolved. The scheduler logs which step matched, as scheduler identity matched topology host
with match set to ip or hostname. If neither step matches, it logs
could not match any local address to a topology host; falling back to hostname and then
node is not a member of the scheduler set; will own no work. Such a scheduler starts no
recordings and no uploads. The scheduler finds itself once, when it starts. om-deploy configure
restarts it, so a changed host takes effect then.
om-deploy connects to every host name in the topology as a separate host. A host name needs its
own entry in the known_hosts file, with every host key type of the node. Without it om-deploy
stops with knownhosts: key is unknown or knownhosts: key mismatch:
ssh-keyscan scheduler-1.example.invalid >> ~/.ssh/known_hosts
Initial Setup
Prepare the administration machine: install
om-deploywithinstall.shand make sure it can reach all nodes over SSH.Create
topology.yamlas described in Topology.Create
configuration.yamlfromconfiguration.yaml.exampleand replace every<...>placeholder: storage systems, origin servers and Catch-up Buffer Managers. Enter passwords in plain text.om-deployencrypts them (see Secrets).Run the install from the extracted installer directory:
om-deploy install --known-hosts ~/.ssh/known_hostsWhen the install has finished,
om-deployprintsinstall is complete. Thessh:lines before it show the host keys and go to standard error: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> install is completeUse
--topology,--configand--repoif the files are not in their default places. The install takes about one to two minutes with three nodes, because it copies the offline repository to every node.om-deploy installdoes 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. If this fails, the command stops withom-deploy: deploy: create edgeware account on <host>: <cause>before it installs anything. - Copies the offline repository to each node and installs the role packages.
- Writes the etcd cluster settings, starts etcd on all etcd hosts and waits until the cluster is healthy.
- Encrypts the passwords, creates
secret.keyif needed, and copies the key to every node that runs an OM service. - Writes
etcd_hostson every node that runs an OM service. - Pushes
configuration.yamland the topology to etcd in one transaction. - Enables and restarts the services in role order:
origin-manager,origin-scheduler,origin-recorder,origin-uploader. Then it waits 5 seconds and checks that they are active, see Checks after a restart. - Prints
install is complete.
- Checks
On every recorder and uploader host, copy the
ew-vodingestlicense (see ew-vodingest License). On every recorder, uploader and scheduler host, make sure that the base directory of every local storage system exists and is writable byedgeware(see System User).Check that all units are active:
om-deploy service status192.0.2.11 etcd active 192.0.2.12 etcd active 192.0.2.13 etcd active 192.0.2.11 origin-manager active 192.0.2.11 origin-scheduler active 192.0.2.12 origin-recorder active 192.0.2.13 origin-recorder active 192.0.2.12 origin-uploader active 192.0.2.13 origin-uploader activeThe three columns (host, unit, state) are separated by tabs. The state is the output of
systemctl is-active. A unit that is not running showsinactive,failedorunknown. A unit that crashes and is restarted by systemd every 5 seconds showsactivating.If
om-deploycannot connect to a host,service statusprints the rows of the other hosts, prints one error line for each unreachable host and exits with status 1. Here192.0.2.10is listed in a role and cannot be reached:om-deploy: deploy: status on "192.0.2.10": ssh: dial 192.0.2.10:22: dial tcp 192.0.2.10:22: i/o timeoutCreate an account, to get an API key for the Account API (see the How-To Guides), and check that the API answers:
curl -s http://192.0.2.11:9090/openapi.yaml | head -3openapi: 3.0.3 info: title: Origin Manager — Account API
The install rewrites topology.yaml and configuration.yaml in place when it encrypts
passwords.
If a step fails, om-deploy stops at that step. Fix the problem and run the same command again.
ew-vodingest License
The recorder and the uploader run ew-vodingest for every task. ew-vodingest needs the license
file /etc/edgeware/ew-vodingest/license.json on the host where it runs. You get the file from
AgileTV, see Licensing.
The ew-vodingest package installs a placeholder file at this path. With the placeholder every
recording and every upload fails at once, and om-deploy does not warn about it. The recorder logs
the reason in the last_line field of recording failed:
{"level":"error","ts":"2026-11-11T05:52:03.486Z","msg":"recording failed","service":"origin-recorder","content_id":"37","storage_name":"nas-1","channel":"sports-1","window":180,"exit_code":1,"detail":"last log line has no \"status=ok\"","last_line":"2026-11-11T05:52:03Z FTL license check error: empty expiry"}
The uploader logs the same text in the last_line and ingest_log fields of ingest failed. If
the file is missing, the text is
FTL license check error: open /etc/edgeware/ew-vodingest/license.json: no such file or directory.
Copy your license to every recorder and uploader host. The file must be readable by edgeware
(mode 0644 works). You do not need to restart the OM services, because ew-vodingest starts anew
for every task:
scp license.json root@192.0.2.12:/etc/edgeware/ew-vodingest/license.json
scp license.json root@192.0.2.13:/etc/edgeware/ew-vodingest/license.json
You must copy the license again in these cases:
After
om-deploy uninstalland a newinstall. Removing the package saves your license aslicense.json.rpmsave, and the next install puts the placeholder back. A new.rpmsavereplaces an older one, so keep your own copy of the license file. To restore it:cp -p /etc/edgeware/ew-vodingest/license.json.rpmsave /etc/edgeware/ew-vodingest/license.jsonOn every host that gets a recorder or uploader role later (see Changing a Deployment).
installputs the placeholder there.
An upgrade to the same ew-vodingest version keeps the license file. downgrade does not touch the
ew-vodingest package.
Changing a Deployment
To change the settings, or to move a role between hosts that already have its packages, edit
topology.yaml and configuration.yaml and run:
om-deploy configure --known-hosts ~/.ssh/known_hosts
configure is complete
configure checks the files, creates the edgeware account on the nodes that lack it, encrypts new
passwords, writes etcd_hosts, pushes the files to etcd and restarts the OM services one host at a
time. It prints the summary line after it has checked that the services run, see
Checks after a restart. The ssh:
host key lines on standard error come before it. See the
Configuration page.
To add a role to a host, or a host to the cluster, change the topology and run install.
configure installs no packages. If a host gets a role that it does not have yet, configure
fails, and the cluster is left half changed: configure has already pushed the new topology to
etcd and restarted the services that come before the failing one in role order.
om-deploy: ssh: 192.0.2.11: "systemctl restart origin-recorder.service" failed: Process exited with status 5
Failed to restart origin-recorder.service: Unit origin-recorder.service not found.
For example, to add a recorder on 192.0.2.11:
recorder:
hosts: [192.0.2.11, 192.0.2.12, 192.0.2.13]
om-deploy install --known-hosts ~/.ssh/known_hosts
install is complete
install installs the missing packages, pushes the files again, leaves a running etcd alone and
restarts the OM services in role order. It takes about a minute or more. It puts the placeholder
license on a new recorder or uploader host, so copy your license there.
To remove a role from a host, edit the topology and run configure, and then stop the role on
that host yourself. configure does not stop it. The unit keeps running and stays enabled,
om-deploy service status no longer lists it, and a removed recorder or uploader keeps taking
tasks from the shared queues. A removed manager keeps answering the API. On that host run:
systemctl disable --now origin-recorder
dnf remove -y origin-recorder
If the host has neither a recorder nor an uploader left, also remove ew-vodingest and delete the
/etc/edgeware/ew-vodingest/license.json.rpmsave that the removal leaves.
The etcd role cannot be changed in a running cluster. om-deploy creates the etcd cluster
only during install. configure and upgrade do not add or remove members. If you list fewer
or other hosts in the etcd role, only the endpoints that the OM services connect to change:
etcd_hosts on every OM node and the topology in etcd then name only the hosts you listed, and the
cluster keeps its members. The OM services then depend on those endpoints alone. Do not edit the
etcd role of a running cluster.
Service Control
Use om-deploy service to control the services on the whole cluster:
om-deploy service status
om-deploy service stop
om-deploy service start
om-deploy service restart
om-deploy service restart --role recorder
service status prints one line for each unit, see Initial Setup, and no summary
line. The other commands print one summary line on standard output when they have finished:
om-deploy service restart
services restarted
With --role, the line starts with the role:
om-deploy service restart --role recorder
recorder services restarted
service stop prints services stopped and service start prints services started. The
ssh: host key lines on standard error come before the summary line. A command that fails prints
no summary line.
start and restart act in role order, with etcd first. stop acts in reverse order, so the
OM services are stopped before etcd. restart --role recorder restarts only the recorders.
start and restart check the OM units after the restart, see
Checks after a restart. restart restarts the etcd members one at a
time, and waits for each of them, so a running cluster keeps its quorum.
Known limitation: after service stop, service start cannot bring the cluster back.
service stop stops etcd on every host. service start starts the etcd members one after the
other and waits for each of them. A member is ready only when the cluster has a quorum, so the
first start does not finish. After about 90 seconds om-deploy stops with exit status 1 and
starts nothing else:
om-deploy: ssh: 192.0.2.11: "systemctl start etcd.service" failed: Process exited with status 1
Job for etcd.service failed because a timeout was exceeded.
See "systemctl status etcd.service" and "journalctl -xeu etcd.service" for details.
To bring the cluster back, start etcd on all etcd hosts without waiting, check that every endpoint is healthy, and then start the OM services:
On every etcd host run:
systemctl start --no-block etcdOn one etcd host, wait until every endpoint is healthy (about 2 seconds in the test):
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.626332msStart the OM services:
om-deploy service startservices started
On a node, the usual systemctl commands work on the unit of each role:
systemctl status origin-manager
systemctl restart origin-recorder
The units are etcd, origin-manager, origin-scheduler, origin-recorder and
origin-uploader. They restart automatically 5 seconds after a failure, for example after a crash
or after kill -KILL. A clean exit is not a failure. A service that you stop with kill, pkill
or systemctl kill exits normally, and systemd does not restart it. The role stays down and
service status shows inactive. Start it again with om-deploy service start --role <role>. It
prints <role> services started, for example recorder services started.
The services, including etcd, run as the system user edgeware, see System User.
Uninstall
To remove a deployment so that the nodes can be used again:
om-deploy uninstall --known-hosts ~/.ssh/known_hosts
uninstall is complete
uninstall stops and disables the services in reverse role order. It takes about 10 seconds with
three nodes. On each node of the topology it then removes:
- the role packages, including
ew-vodingeston recorder and uploader hosts /etc/edgeware/origin-manager, withetcd_hostsandsecret.key- the etcd data in
/var/lib/etcd(and in/var/lib/private/etcd, where builds that used dynamic users kept it),/etc/etcdand the etcd cluster settings - the copied repository in
/tmp/origin-manager-repoandorigin-manager-local.repo
It keeps:
- the user and the group
edgeware /etc/edgeware/ew-vodingest/license.json.rpmsave, which holds your license (only the newest copy)- the
om-deploypackage on the administration machine - all files on the storage systems, and the retained ingest logs in
/tmp - the data in the shared backend: the MySQL data (accounts, channels and content) and the keys that OM keeps in Redis (queue, statistics, results and cache). A new install uses the MySQL data again.
uninstall accepts what is already removed, so you can run it again. If a host cannot be reached,
it still cleans the other hosts, prints the first error, prints no uninstall is complete line
and exits with status 1. Each unreachable host adds about 15 seconds for every action, so the
command took 48 to 63 seconds in the test:
om-deploy: deploy: remove packages on 192.0.2.10: ssh: dial 192.0.2.10:22: dial tcp 192.0.2.10:22: i/o timeout
Known limitation: if the administration machine is also one of the nodes, uninstall deletes
your own files. It removes /etc/edgeware/origin-manager on every node, and on this machine that
holds your topology.yaml, configuration.yaml and secret.key. It also removes the example
files of the om-deploy package. Copy the three files before you run uninstall:
mkdir -p /root/om-backup
cp -p /etc/edgeware/origin-manager/topology.yaml \
/etc/edgeware/origin-manager/configuration.yaml \
/etc/edgeware/origin-manager/secret.key /root/om-backup/
Afterwards rpm -V om-deploy reports the two example files as missing:
missing c /etc/edgeware/origin-manager/configuration.yaml.example
missing c /etc/edgeware/origin-manager/topology.yaml.example
install.sh does not restore them (it prints Nothing to do.). dnf reinstall om-deploy does.
A second uninstall with the default paths fails, because the topology is gone:
om-deploy: deploy: read topology "/etc/edgeware/origin-manager/topology.yaml": open /etc/edgeware/origin-manager/topology.yaml: no such file or directory
Run a repeated uninstall with --topology /root/om-backup/topology.yaml. Before you install
again, put the three files back into /etc/edgeware/origin-manager/. A topology with encrypted
passwords needs its secret.key.
Secrets
Passwords are never stored as plain text in etcd. This covers the database and Redis passwords in
topology.yaml and the password of every storage system in configuration.yaml. A cluster
that was first installed with an older build that stored passwords as plain text can still hold
them in the etcd history, see Upgrades.
When you run install, configure or upgrade, om-deploy encrypts each plain text password
and rewrites your file in place. password becomes "<censored>" and a new encoded_password
holds the encrypted value, which starts with v1::
redis:
hosts: [redis-1.example.invalid]
port: 6379
password: "<censored>"
encoded_password: "v1:<ciphertext>"
The key is created on the administration machine, in /etc/edgeware/origin-manager/secret.key,
the first time a password is encrypted. It is copied to every node that runs an OM service
(nodes with only the etcd role do not get it), with owner edgeware and mode 0600, and it is
never stored in etcd. Back it up. If the key is lost, every password must be entered again.
The services read the key once, when they start, and keep it in memory. If you delete or replace the key file, running services are not affected, but the next restart fails:
origin-recorder: config: database secret: secret: read key "/etc/edgeware/origin-manager/secret.key": open /etc/edgeware/origin-manager/secret.key: no such file or directory
A key that edgeware cannot read fails in the same way with permission denied, for example a key
that belongs to root and has mode 0600. When you restore a backup, keep the owner and the mode
(edgeware:edgeware, 0600). cp -p as root keeps them. Or run
om-deploy configure, which copies the key from the administration machine again and sets owner
and mode.
To change a password, replace "<censored>" in the file with the new plain text value and run
om-deploy configure. To remove a password, clear both password and encoded_password. This
works for the Redis password and for storage passwords. The database password is required: the
topology is refused with om-deploy: deploy: topology database role has no password.
If the key on the administration machine is lost, replace every "<censored>" in
topology.yaml and configuration.yaml with the plain text password and run
om-deploy configure. It creates a new key and copies it to all nodes. Copies of the two files that
were encrypted with the old key cannot be used any more: they fail with
decrypt (auth failed or wrong key).
Known limitation: do not run install, configure or upgrade while the key is missing and
the files hold only encrypted passwords. The command then copies no key, pushes the configuration
and restarts every service. All of them stop at start, and the command reports the first one. This
was tested with configure. install and upgrade use the same key step and should behave the
same way:
om-deploy: 192.0.2.11 origin-manager is not running: origin-manager: config: database secret: secret: read key "/etc/edgeware/origin-manager/secret.key": open /etc/edgeware/origin-manager/secret.key: no such file or directory
Entering the passwords again and running configure repairs this.
Ingest command lines that contain URL passwords are logged with the password replaced by
xxxxx.
Security Notes
- etcd is set up with plain HTTP and without client authentication, and listens on all interfaces. Allow access to the etcd ports (2379 and 2380) only from the OM nodes and the administration machine.
- Without
--known-hosts,om-deploydoes not check SSH host keys. - The bundled repository is not signed (
gpgcheckis off). Use an installer tarball from a source you trust. - OM was tested on nodes that run SELinux in enforcing mode. OM ships no SELinux policy: the OM
services and etcd run unconfined (
unconfined_service_t), so SELinux does not restrict them. No denial was logged. To check your own nodes, runausearch -m avc,user_avc,selinux_err -ts today.
Troubleshooting
| Message | Cause and fix |
|---|---|
unsupported RHEL major version: '8' (need 9 or 10) | install.sh runs on a Red Hat 8 machine. Use a Red Hat 9 machine |
./install.sh: line 26: /etc/yum.repos.d/origin-manager-local.repo: Permission denied | install.sh was not run as root. Run it as root |
om-deploy: deploy: 192.0.2.12: unsupported RHEL major "8" | A node runs an unsupported Red Hat major version. Use a Red Hat 9 node |
om-deploy: deploy: topology has no etcd hosts | roles.etcd.hosts is empty. Add at least one host |
om-deploy: deploy: topology has no database hosts | roles.database.hosts is empty |
om-deploy: deploy: topology database role has no user | Set roles.database.user |
om-deploy: deploy: topology database role has no password | Set roles.database.password. The database password cannot be removed |
om-deploy: deploy: role "recorder" lists duplicate host "192.0.2.12" | A host is listed twice in one role. Remove the duplicate |
om-deploy: deploy: etcd client and peer ports must differ (both 2379) | Give client_port and peer_port different values |
om-deploy: deploy: invalid configuration "<file>": <reason> | configuration.yaml is not valid. Nothing was changed and the file was not rewritten. The reason is, for example, document is empty, document is not a mapping, log: invalid level "verbose": unrecognized level: "verbose", redis: cache_db/queue_db/result_db must differ (got 1/1/2), or one of the rules on the Configuration page. Fix the file and run the command again |
om-deploy: ssh: read key "/root/.ssh/id_rsa": ... | The SSH key does not exist. Pass --ssh-key |
om-deploy: deploy: create edgeware account on 192.0.2.12: ... | install, upgrade or configure could not create the user and the group edgeware on that host, and stopped before it installed or copied anything. The text after the host is the SSH error, for example ssh: dial 192.0.2.12:22: ... when the node cannot be reached, or ssh: 192.0.2.12: "<command>" failed: Process exited with status N followed by the output of that command. Fix the cause on that host and run the command again. See System User |
ssh: dial 192.0.2.12:22: ... | The node cannot be reached over SSH. The text follows a prefix such as om-deploy: deploy: create edgeware account on 192.0.2.12:. Check the host name, --ssh-port and the firewall |
knownhosts: key is unknown or knownhosts: key mismatch | The host is not in the known_hosts file, or the file has only some of its key types. A host name needs its own entry. Add all host keys with ssh-keyscan <host> >> ~/.ssh/known_hosts |
om-deploy: ssh: 192.0.2.12: "<command>" failed: Process exited with status N | The command failed on the node. The lines after the message are the output of the command. Read them and fix the cause on that node |
Unit origin-recorder.service not found | A role was added to the host with configure. Use om-deploy install to add roles, see Changing a Deployment |
om-deploy: 192.0.2.12 origin-uploader is not running: ... | The unit was not active 5 seconds after the restart. The text after the colon is up to the last three lines of the journal of the unit since the start, joined with a semicolon and a space, or the state of the unit when there is no line. Fix the cause and run the command again. Read more with journalctl -u origin-uploader -n 50 on that host |
Job for etcd.service failed because a timeout was exceeded (after service start) | service start after service stop. Follow the steps in Service Control |
om-deploy: deploy: etcd cluster not healthy: ... | etcd did not form a cluster within about a minute. Check systemctl status etcd on the etcd hosts and the ports between them |
om-deploy configure does not finish and prints only JSON lines with the message retrying of unary invoker failed and the error etcdserver: request timed out | etcd has no quorum: fewer than a majority of the etcd hosts run. configure has no time limit and no om-deploy: message. Stop the command, run systemctl start --no-block etcd on the stopped etcd hosts, and run it again |
om-deploy: deploy: read topology "<file>": open <file>: no such file or directory | The topology file does not exist. After uninstall on an administration machine that is also a node, use the copy you made, see Uninstall |
secret: read key "/etc/edgeware/origin-manager/secret.key": ... (in the log of every OM service) | The key file is missing (no such file or directory) or edgeware cannot read it (permission denied, for example when it belongs to root with mode 0600). See Secrets |
FTL license check error: empty expiry (in last_line of recording failed and ingest failed) | The ew-vodingest license is still the placeholder. Copy the license file, see ew-vodingest License |
FTL license check error: open /etc/edgeware/ew-vodingest/license.json: no such file or directory | The license file is missing on that host. Copy it |
node is not a member of the scheduler set; will own no work (in the log of origin-scheduler) | The scheduler does not find its node in the scheduler role. List the node by IPv4 address, or by the exact output of hostname, then run om-deploy configure. See Topology |