Steps for upgrade of the Aria Config 8.14 to 8.17 on the Centos machine.
In this example, the salt-master and raas service is on the same node.
Postgres and Redis are not part of the Postgres.
Steps to upgrade Aria Config on Centos OS.
1. Make sure that you have a backup of the raas postgres database and snapshot or backup of raas machines.
2. Get the RHEL or CENTOS installation files from Broadcom
3. Backup raas configuration:mkdir -r /tmp/raasupgrade/backup/
cp -rp /etc/raas/raas /tmp/raasupgrade/backup/
4. Stop the RAAS servicesystemctl stop raas
5. Clean raas cache filesrm -rf ~raas/unpack/* && rm -rf ~raas/cache/* ;
6. Uninstall the RAAS
you can use package manager or RPM
like
dnf remove raas
or yum remove raas
or RPM
rpm -evv raas
7. Uninstall the SSEAPE plugin
(when salt run as OneDir ) salt-call --local pip.uninstall SSEAPE
(when salt run on python)pip3 uninstall SSEAPE
8. Install the new version or RAAS
using RPM rpm -ivh <path to raas-rpm>/raas-8.17.0.6.el8.x86_64.rpm
9. Restore the config files from backupcp -rp /tmp/raasupgrade/backup/raas /etc/raas/
*** be sure that all files were copied and permission are checked /etc/raas/raas.secconf and /etc/raas/raas
If needed chown -R raas:raas /etc/pki/raas
10. Now you can run RAAS db upgrade su - raas
raas upgrade
exit
11. Install the SSEAPE plugin
(when salt run as OneDir )salt-call --local pip.install /root/./sse-installer/salt/sse/eapi_plugin/files/SSEAPE-8.17.0.6-py3-none-any.whl
(when run salt classic/python) pip3 install <full path to file>/SSEAPE-8.17.0.6-py3-none-any.whl
12. Enable and restart raas
systemctl enable raas
13. Validate the config for raas and SSEAPE
you can generate the new defult config for RAAS service and SSEAPE plugin and review the changes.
for SSEAPE and eAPIeAPIMasterPaths.conf
(when run salt classic/python)sseapi-config --all > /etc/salt/master.d/raas-SSEAPE-conf.default
(when salt run as OneDir ) /opt/saltstack/salt/extras-3.10/bin/sseapi-config --all > /etc/salt/master.d/raas-SSEAPE-conf.default
for RAAS servicesu - raas
raas genconfig /path/to/default-raas-cfg.conf
su - raas -c "raas genconfig raas-service-config.txt"
results in /var/lib/raas/raas-service-config.txt
exit
14. Delete the snapshot or backup, only when you validate that all components are working fine and can communicate properly.