Upgrade Distributed API and DB server to v5.2
These steps are for a Distributed API Server with the database on the API server.
Abiquo will upgrade to new versions of RabbitMQ and MySQL that require a manual upgrade path of dependencies.
These steps are for a server that contains RabbitMQ AND MySQL
Remove the Erlang and Galera packages.
yum remove erlang* galera yum clean all && yum makecache
Install new RabbitMQ and MariaDB server
yum install rabbitmq-server MariaDB-server
Before you confirm, check that the packages will be installed from the abiquo-base repository
- rabbitmq-server: 3.8.2.1
- MariaDB-server: 10.4.10.1
Upgrade Abiquo to 5.2.x
yum update
Before you confirm, check the following packages will be installed from the abiquo-base repository:
- jdk: 11.0.6u10
- redis: 5.0.7.1
After the update, check versions
Enable and start the new services
systemctl enable mariadb systemctl enable rabbitmq-server systemctl start mariadb systemctl start rabbitmq-server
Upgrade MySQL
mysql_upgrade
The mysql_upgrade step may detect errors that trigger messages such as the following:
kinton_accounting.ACCOUNT_PERIOD_USAGE_VW Error : Column count of mysql.proc is wrong. Expected 21, found 20. Created with MariaDB 100129, now running 100410. Please use mysql_upgrade to fix this error
These messages are expected and this same mysql_upgrade process will automatically fix these errors in its next stages.
Check that the mysql_upgrade process completes correctly.
Check that your hostname is in your DNS or in your /etc/hosts file
Upgrade the Abiquo API databases
abiquo-db [-h DB hostname] [-P DB port] [-u user] [-p password] update
If the liquibase update fails with a message similar to the following:
Liquibase update Failed: Validation Failed:
1 change sets check sum
src/X.X.X-XX/kinton-X.X.X.xml::ABICLOUDPREMIUM-XXXX-XxxxxxxxXXxXxxxxxxXxxxxx::XXXXXXXXX is now: 7:ee2fa6e058ec76c7abf801567898917d
For more information, use the --logLevel flagDo the following steps
Clear the database checksums
abiquo-db clearCheckSums
- Retry the above abiquo-db update command.
Change file owners to tomcat user
chown -R tomcat /opt/abiquo
Copyright © 2006-2024, Abiquo Holdings SL. All rights reserved