This section describes how to upgrade from Abiquo 4.4.x or above to the current Abiquo version. Please contact Abiquo Support for further information.
Abiquo YUM repositories are no longer open, please contact Abiquo Support to obtain your credentials
This upgrade process starts from Abiquo 4.4 or above. To upgrade from earlier versions, please contact Abiquo Support
1. Prepare branding upgrade
See Changes to branding for instructions on how to upgrade branding for the following versions:
- 4.5
- 4.6
- 4.6.1
- 4.7.0
In Abiquo 5.0, the new UI will require new branding. See Abiquo Branding Guide
2. Before the upgrade
Before you begin, remember to:
- Stop services
- Remember to stop the following services on the Monitoring server: abiquo-delorean, abiquo-emmett, kairosdb, cassandra
- Check for queued jobs or conversions
- Perform a full backup
Known issue: Before the release of version 5.2.0, you must back up the `/etc/nginx/nginx.conf` of each Remote Services server where you have a configuration of the WebMKS feature enabled. The update will replace the content of the nginx.conf file with the default parameters. This issue has been documented in issue 13509.
See Prepare to Upgrade Abiquo for further details.
3. Upgrade packages on ALL servers
Check that you have the repository URL and credentials
To upgrade to a version with a patch number of zero, for example, version 5.0.0, version 5.1.0
OR To upgrade to a version with patch number that is not zero, for example, version 5.1.1, version 5.1.2
Optionally add your username and password to the Abiquo repos
yum-config-manager --save --setopt=abiquo-*.username=MYUSERNAME yum-config-manager --save --setopt=abiquo-*.password=MYPASSWORD
Don't forget to use a backslash to escape any shell special characters. For more details, see https://www.oreilly.com/library/view/learning-the-bash/1565923472/ch01s09.html
Update Abiquo packages:
yum clean all && yum makecache && yum update 'abiquo-*'
The Abiquo services must run as the tomcat user (not root), so set the required permissions and enforce the use of the package configuration files.
If you have a MONOLITHIC SERVER do all of the following steps on the Monolithic serverOn Abiquo Server and Remote Services
chown -R tomcat /opt/abiquo
On the Remote Services with Appliance Manager and the V2V Server (i.e. servers that mount the NFS repository)
chown -R tomcat /opt/vm_repository chmod -R a+r /opt/vm_repository
On the V2V server, check the /etc/sysconfig/abiquo/ec2-api-tools file exists.
The file must contain the following configuration. If the file does not exist, create it and add this configuration.For CentOS 7EC2_HOME=/opt/aws
4. Update the Abiquo databases
- Ensure your hostname is in your DNS or in your /etc/hosts file
To upgrade the Abiquo API databases, run the command below on the Server appliance:
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.
To upgrade the Abiquo Watchtower database, run the command below on the monitoring appliance:
watchtower-db [-h DB hostname] [-P DB port] [-u user] [-p password] update
- Reporting changes: To upgrade the Abiquo Reports database for the upgrade to Abiquo 4.7.x+, contact Abiquo Support for the file and procedure.
5. Upgrade additional elements
Start with your original version and perform the steps to the final version.
By default, you will find the upgrade scripts (e.g. for Redis definitions) on the Abiquo Server under the folder: /usr/share/doc/abiquo-redis/redis/
For each upgrade step, run the Redis database script to remove old VSM definitions, which can be found in the 4.2.3 subfolder
On Remote Services server:
# cd /usr/share/doc/abiquo-redis/redis/ # bash ./4.2.3/00-old-vsm-definitions.sh
6. Configure Abiquo after the upgrade
Before you start the Abiquo tomcat server, add Abiquo Configuration Properties to the abiquo.properties file. By default abiquo.properties is found in the /opt/abiquo/config/ folder. See Changes to Abiquo Configuration Properties
Configure the user interface. The default UI location in Abiquo 4.x is /var/www/html/ui.
Optional: Add custom labels and translations in the lang_xx_XX_custom.json files in the lang folder
Add custom configuration to client-config-custom.json. See Configure Abiquo UI
If your API is not in the same domain as the UI, set the API endpoint pointing to your Abiquo API server:{ "config.endpoint": "http://myAPIserver/api" }
7. Start Abiquo server and services
Bring up the server and restart the HTTP daemon to refresh the user interface files.
service abiquo-tomcat start service httpd restart
- Start the tomcat server on remote services
- Start the monitoring services.
First start the cassandra service
sudo service cassandra start
- Wait about 5 minutes until the service is up and running
Start the KairosDB service
sudo service kairosdb start
Wait about 1 minute until the service is up and running
Start the other services in this order
sudo service abiquo-emmett start sudo service abiquo-delorean start