Task:
Shutdown and restart the Podman containerized services.
Notes:
- Containerized AAP 2.5 runs the component services as Podman-based containers on a RHEL host VM.
- The VM has the ansible-core installed, the admin user created, and the inventory file used for the installation was run using the "containerized growth topology" (all-in-one).
- The administrative user account was created before the AAP installation, and it was added to the sudoers.
- The administrative user account performing the stop/start/restart must be using a SSH login. Rootless Podman is not supported.
- The administrative user account performing the stop/start/restart must be the same user/account that ran the installation/upgrade.
- The external PostgreSQL db x_pg_host variables. are set-up for the gateways, controllers, hubs, and edas.
- The hub_shared_data_path is a NFS share on this host vm (e.g. hub_shared_data_path="aaphost.mindwatering.net:/nfsshare/aap/hub"
In this example, we have the following set-up:
VM Host: aaphost.mindwatering.net
User: aapadmin
Although not directly needed for this example, the following are the containerized host services:
[automationgateway]
aapg1.mindwatering.net
aapg2.mindwatering.net
[automationcontroller]
aapc1.mindwatering.net
aapc2.mindwatering.net
[execution_nodes]
aape1.mindwatering.net
aape2.mindwatering.net
[automationhub]
aaph1.mindwatering.net
aaph2.mindwatering.net
[automationeda]
aape1.mindwatering.net
aape2.mindwatering.net
(PostgreSQL database)
appdb.mindwatering.net
Steps:
1. SSH into the host VM:
$ ssh aapadmin@aaphost.mindwatering.net
2. Shutdown services
As the admin user, run the following systemd service commands:
a. List running services:
$ systemctl --user list-units --type=service --no-pager
b. Stop services:
$ systemctl --user stop automation-gateway*
$ systemctl --user stop automation-eda*
$ systemctl --user stop automation-controller*
$ systemctl --user stop automation-hub*
$ systemctl --user stop redis-*
$ systemctl --user stop receptor
$ systemctl --user stop postgresql
c. Confirm all AAP services stopped:
$ systemctl --user list-units --type=service --no-pager
3. Start services
As the admin user, run the following systemd service commands:
$ systemctl --user list-units --type=service --no-pager
$ systemctl --user start postgresql
$ systemctl --user start receptor
$ systemctl --user start redis-* --all
$ systemctl --user start automation-hub* --all
$ systemctl --user start automation-controller* --all
$ systemctl --user start automation-eda* --all
$ systemctl --user start automation-gateway* --all
$ systemctl --user list-units --type=service --no-pager
Other Systemd Options:
- Restart services
Run the following systemd service commands:
$ systemctl --user list-units --type=service --no-pager
$ systemctl --user restart postgresql
$ systemctl --user restart receptor
$ systemctl --user restart redis-* --all
$ systemctl --user restart automation-hub* --all
$ systemctl --user restart automation-controller* --all
$ systemctl --user restart automation-eda* --all
$ systemctl --user restart automation-gateway* --all
$ systemctl --user list-units --type=service --no-pager
- Disable Services:
$ systemctl --user disable automation-controller-rsyslog.service
$ systemctl --user disable automation-controller-task.service
$ systemctl --user disable automation-controller-web.service
$ systemctl --user disable automation-eda-activation-worker-1.service
$ systemctl --user disable automation-eda-activation-worker-2.service
$ systemctl --user disable automation-eda-api.service
$ systemctl --user disable automation-eda-daphne.service
$ systemctl --user disable automation-eda-scheduler.service
$ systemctl --user disable automation-eda-web.service
$ systemctl --user disable automation-eda-worker-1.service
$ systemctl --user disable automation-eda-worker-2.service
$ systemctl --user disable automation-gateway-proxy.service
$ systemctl --user disable automation-gateway.service
$ systemctl --user disable automation-hub-api.service
$ systemctl --user disable automation-hub-content.service
$ systemctl --user disable automation-hub-web.service
$ systemctl --user disable automation-hub-worker-1.service
$ systemctl --user disable automation-hub-worker-2.service
$ systemctl --user disable redis-unix
$ systemctl --user disable redis-tcp
$ systemctl --user disable receptor
$ systemctl --user disable postgresql
- Enable Services:
$ systemctl --user enable automation-controller-rsyslog.service
$ systemctl --user enable automation-controller-task.service
$ systemctl --user enable automation-controller-web.service
$ systemctl --user enable automation-eda-activation-worker-1.service
$ systemctl --user enable automation-eda-activation-worker-2.service
$ systemctl --user enable automation-eda-api.service
$ systemctl --user enable automation-eda-daphne.service
$ systemctl --user enable automation-eda-scheduler.service
$ systemctl --user enable automation-eda-web.service
$ systemctl --user enable automation-eda-worker-1.service
$ systemctl --user enable automation-eda-worker-2.service
$ systemctl --user enable automation-gateway-proxy.service
$ systemctl --user enable automation-gateway.service
$ systemctl --user enable automation-hub-api.service
$ systemctl --user enable automation-hub-content.service
$ systemctl --user enable automation-hub-web.service
$ systemctl --user enable automation-hub-worker-1.service
$ systemctl --user enable automation-hub-worker-2.service
previous page
|