vRLCM Raas upgrade Failed with info as below:
Sep 24 09:22:29 raas-node-fqdn raas[4740]: [4740] WARNING: file already exists but should not: /var/lib/raas/unpack/_MEIYRpgAE/zmq/backend/cython/message.cpython-39-x86_64-linux-gnu.so
Sep 24 09:22:29 raas-node-fqdn raas[4740]: [4740] WARNING: file already exists but should not: /var/lib/raas/unpack/_MEIYRpgAE/zmq/backend/cython/socket.cpython-39-x86_64-linux-gnu.so
Sep 24 09:22:29 raas-node-fqdn raas[4740]: [4740] WARNING: file already exists but should not: /var/lib/raas/unpack/_MEIYRpgAE/zmq/backend/cython/utils.cpython-39-x86_64-linux-gnu.so
Sep 24 09:22:29 raas-node-fqdn raas[4740]: [4740] WARNING: file already exists but should not: /var/lib/raas/unpack/_MEIYRpgAE/zmq/devices/monitoredqueue.cpython-39-x86_64-linux-gnu.so
Sep 24 09:22:30 raas-node-fqdn raas[4740]: cryptography/hazmat/bindings/openssl/binding.py:173: CryptographyDeprecationWarning: OpenSSL version 1.0.2 is no longer supported by the OpenSSL >
Sep 24 09:22:30 raas-node-fqdn raas[4740]: warnings.warn(
Sep 24 09:22:33 raas-node-fqdn raas[4740]: 2024-09-24 09:22:33 UTC,656 [org_id:None][var.lib.raas.unpack._MEIYRpgAE.raas.mods.db.init ][CRITICAL:216 ][MainProcess:4742] Bi>
Sep 24 09:22:33 raas-node-fqdn raas[4740]: Bigret "sql" failed to load. RaaS cannot continue: RaaS cannot continue: host is required for the database driver.. Did you put PostgreSQL creden>
Sep 24 09:22:35 raas-node-fqdn systemd[1]: raas.service: Main process exited, code=exited, status=1/FAILURE
Sep 24 09:22:35 raas-node-fqdn systemd[1]: raas.service: Failed with result 'exit-code'.
RAAS Appliance, Aria Config Appliance
It is happening during the upgrade, the info about DB connection is lost by raas config file.
Example config file: /etc/raas/raas
sql:
dialect: postgresql
driver: psycopg2
host:
port:
pool_size: 10
pool_timeout: 10
pool_recycle: 3600
chunksize_yield_per_small_table: 1000
chunksize_yield_per_big_table: 5000
ssl: false
ssl_opts: {}
To resolve this issue, please follow steps from below:
1. Update the DB missing info parameters,
2. Or revert to pre-upgrade snapshot, then make a backup of entire raas config directory by:
like:
sql:
dialect: postgresql
driver: psycopg2
host: localhost
port: 5432
d. Then upgrade Raas database manually and start the raas service
e. Upgrade raas database:
su - raas -c "raas upgrade"
f. Start the RAAS service
systemctl start raas
When you complete those steps RAAS will start properly and you need run LCM inventory sync for RAAS information, then proceed with the post upgrade steps, like install SSEAPE plugin on salt-masters and update RAAS config with the new features.