...
Excerpt |
---|
|
Upgrade or update your Abiquo hybrid cloud platform. |
Table of contents
This section describes how to upgrade from Abiquo 5.2.0 or above to an Abiquo 5.4.x version. Please contact Abiquo Support for further information.
Warning |
---|
This is a non-official upgrade document from which you can easily cut and paste the commands for each to prepare your own upgrade document. Abiquo YUM repositories are no longer open, please contact Abiquo Support to obtain your credentials This upgrade process starts from Abiquo 5.4.0 or above. To upgrade from earlier versions, please see Upgrade Abiquo from 4.7 to 5.2.x |
Warning |
---|
|
The upgrade will overwrite lang_en_US.json. If you have customized labels or translations, back them up before the upgrade and restore them afterwards accordingly. The upgrade will overwrite the SAML login configuration for multiple IdPs. If you use SAML with multiple IdPs, back up the configuration files before the upgrade and add the multiple IdPs afterwards accordingly. See Restore SAML security beans after upgrade
|
Warning |
---|
The upgrade to Abiquo 5.3 includes a migration to provider ID as the identifier of a deployed VM. See Provider ID as VM identifier upgrade Prepare the provider ID migration before your upgrade. See Create a test VM and run PIM planner on a database dump |
Prevent cloud users from performing VM operations
In the UI in the Infrastructure view, select each physical machine and click Disable
Using the API, set the state of each physical machine to DISABLED
...
API Servers
On each API Server do these steps. If you have a separate DB server, do the DB upgrade steps on that server.
...
Additional API and UI upgrade steps
Add translations for new UI labels to lang_xx_XX_custom.json. See Abiquo UI client language configuration
Optionally add new configuration to client-config-custom.json. See Configure Abiquo UI
In your UI configuration, check that the API endpoint is pointing to your Abiquo API server:
Code Block |
---|
{
"config.endpoint": "http://<API_IP_ADDRESS>/api"
} |
Add new API properties to the abiquo.properties file found in the /opt/abiquo/config/ folder. See Changes to Abiquo Configuration Properties
If you are using SAML with multiple IDPs, restore the configuration as described at Restore SAML security beans after upgrade.
...
Remote Services Servers
On each Remote Services Server do these steps
Expand |
---|
title | Remote Services Server upgrade procedure |
---|
|
Code Block |
---|
# Log in as root
sudo su -
# On V2V servers, check for active conversions
# ps aux | grep v2v
# ps aux | grep mechadora
# Back up the /opt/abiquo folder
tar cvfz /opt/abiquo.tgz-$(date +%Y%m%d_%H%M%S) /opt/abiquo
# Back up Redis
redis-cli save
cp -a /var/lib/redis /var/lib/redis-$(date +%Y%m%d_%H%M%S)
# Stop services
systemctl stop abiquo-tomcat
# Prepare yum repository
yum-config-manager --enable abiquo-base
yum-config-manager --enable abiquo-updates
# Perform update
yum clean all && yum makecache
yum update 'abiquo-*'
# PIM STEPS
# If your upgrade passes through Abiquo 5.3:
# 1. Upgrade ALL your servers to the PIM STEP and STOP
# 2. On the API Server, run the PIM planner
# 3. On the RS Servers run the PIM migration
# 4. Update the database for PIM
# 3. Run the PIM migration
# Install the PIM tools
yum install abiquo-pim-tools
# Move the PIM migraton plan to the PIM tools folder
mv migration_plan.data pim-tools
# Obtain the datacenter-id of the Remote Services server from the value of the abiquo.datacenter.id property in the abiquo.properties file.
# e.g. abiquo.datacenter.id=abq_dc1
# Run the PIM migrator in dry-run mode and save the output to a file
java -jar /opt/abiquo/pim-tools/pimmigrator.jar -dc=abq_dc1 -redishost=localhost -plan=migration-plan.data -noseed -output=update_DC1.sql | tee pimmigrator_dry_run_DC1.log
# Check the output file for errors or warnings
# Run the PIM migrator in update mode, by setting the "no dry run" option to true.
java -jar /opt/abiquo/pim-tools/pimmigrator.jar -nodry -dc=abq_dc1 -redishost=localhost -plan=migration-plan.data -noseed -output=update_DC1.sql | tee pimmigrator_DC1.log
# Copy the SQL file from the Remote Services server to the Abiquo database server.
scp update_DC1.sql root@<DATABASE_SERVER_IP>:~/
scp update_DC2.sql root@<DATABASE_SERVER_IP>:~/
...
# Go the Abiquo database (API) server and run the PIM update
# POST PIM STEPS
# Post upgrade steps for RS
chown -R tomcat /opt/abiquo
chown -R tomcat /opt/vm_repository
chmod -R a+r /opt/vm_repository
cd /usr/share/doc/abiquo-redis/redis/
bash ./4.2.3/00-old-vsm-definitions.sh
|
Additional RS upgrade steps Add new RS properties to the abiquo.properties file found in the /opt/abiquo/config/ folder. See Changes to Abiquo Configuration Properties
|
...
Monitoring Servers
On each Watchtower Moniitoring Server do these steps
...
Start Abiquo server and services
Start all servers in the correct order.
Expand |
---|
title | Start Abiquo servers procedure |
---|
|
Code Block |
---|
# After you have run the provider ID migration
# and the POST PIM STEPS
# On API Server
service httpd restart
service abiquo-tomcat start
# On Remote Services including V2V
service abiquo-tomcat start
# On the Monitoring Server, start the Cassandra service
sudo service cassandra start
# WAIT about 5 minutes until Cassandra is up and running
# Start the KairosDB service
sudo service kairosdb start
# Start the other services in this order
sudo service abiquo-emmett start
sudo service abiquo-delorean start |
|
...
To upgrade the Abiquo Reports Server for the upgrade to Abiquo 5.3.x, contact Abiquo Support for more information.
The Abiquo Reports Server now runs with JasperReports v7.8.0