Upgrade Abiquo
- 1 1. Introduction
- 2 2. Warnings and notices
- 3 3. Prevent cloud users from performing VM operations
- 4 4. Check for operations in progress on the platform
- 5 5. Stop platform services
- 6 6. Back up the main platform elements
- 7 7. Make snapshots and backups of all platform servers
- 8 8. Remove Docker and unmount shared folders
- 9 9. Prepare yum repositories for 6.2 or 6.2.x
- 10 10. Upgrade packages on ALL servers
- 11 11. Run the guest password migrator
- 12 12. Upgrade MariaDB for Abiquo 6.2.0
- 13 13. Update the Abiquo databases
- 14 14. Upgrade additional elements
- 15 15. Configure Abiquo after the upgrade
- 16 16. Start Abiquo server and services
These instructions are still being updated for the Abiquo 6.2 upgrade
1. Introduction
This section describes how to upgrade from Abiquo 6.1.x to an Abiquo 6.2.x version.
To upgrade from earlier versions, first see:
For your convenience, we have also prepared the following concise upgrade document that groups the commands by servers.
However, we encourage you to use the current Upgrade Abiquo document as your main reference:
Please contact Abiquo Support for further information.
Major version upgrade table
From version | To version | Upgrade type | Notes |
---|---|---|---|
6.1.x | 6.2.x | Major | Follow the process in this document (or at Upgrade Abiquo 6.1.x to 6.2.x distributed by servers
|
Minor version upgrade table
From version | To version | Upgrade type | Notes |
---|---|---|---|
6.1.0 | 6.1.1 | Standard | |
6.1.1 | 6.1.2 | Standard + Guacamole | See Standard Abiquo minor or patch version update |
6.1.2 | 6.1.3 | Standard | |
6.1.3 | 6.1.4 | Standard |
2. Warnings and notices
Before you begin, contact Abiquo Platform and Customer Success department to obtain your credentials for Abiquo YUM repositories.
Major upgrade
The upgrade to Abiquo 6.2.0 is a major upgrade with upgrades of third-party software packages that are critical platform dependencies
You must make snapshots of ALL servers before you start the upgrade
The upgrade will overwrite
lang_en_US_labels.json
. Back up your customized labels or translations before the upgrade, and restore them afterwards.
SAML upgrade
The upgrade will overwrite the SAML login configuration for multiple IdPs. Back up the configuration files before the upgrade, and add the multiple IdPs again afterwards. See Restore SAML security beans after upgrade.
For Abiquo 6.0.0+, you must configure the SAML maximum authentication age property or SAML will not initialize
3. 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
4. Check for operations in progress on the platform
Before you shut down the platform servers, check that no operations are in progress.
Check that the Abiquo RabbitMQ queues are empty on the Abiquo Monolithic Server, Abiquo Server or Datanode server
The number of messages in all queues must be 0.
# rabbitmqctl list_queues messages name
# rabbitmqctl list_queues messages name Listing queues ... 0 abiquo.am.notifications 0 abiquo.bpm.notifications 0 abiquo.datacenter.requests.ADatacenter.bpm 0 abiquo.datacenter.requests.ADatacenter.virtualfactory 0 abiquo.ha.tasks 0 abiquo.nodecollector.notifications 0 abiquo.pcrsync.messages 0 abiquo.pcrsync.parking-expect-no-consumers 0 abiquo.scheduler.fast.requests 0 abiquo.scheduler.requests 0 abiquo.scheduler.slow.requests 0 abiquo.tracer.traces 0 abiquo.virtualfactory.notifications 0 abiquo.virtualmachines.definitionsyncs 0 abiquo.vsm.eventsynk ...done.
On the V2V Server, check for any active conversions by checking for the V2V or Mechadora processes
$ ps aux | grep v2v $ ps aux | grep mechadora
When user VM operations are blocked and all of the above checks show that no tasks are running, it is safe to halt the platform.
5. Stop platform services
This section describes how to stop platform services on all servers.
To stop platform services:
Stop the API on the API server or monolithic server
Stop the UI on the API server or monolithic server or dedicated UI server
Stop RabbitMQ on the API server or dedicated datanode server
Stop remote services server
V2V Server
You do not need to stop anything because the BPM remote service is run on-demand onlyStop monitoring server
On the monitoring server, check if Cassandra is really dead
Get the process number for Cassandra (the first number in the output of the previous command), and kill it. In this example, Cassandra is process 12345.
All processes on platform servers should now be halted.
6. Back up the main platform elements
To perform a basic backup of the platform, run the following backups:
7. Make snapshots and backups of all platform servers
This is a major upgrade, so we recommend that you make a snapshot and/or a full backup of your platform servers.
8. Remove Docker and unmount shared folders
On your RS server(s) uninstall Docker
If you have multiple instances of the NARS Remote Service in your datacenter, check on your RS servers for an NFS shared folder for the NARS results (with the Abiquo configuration property
abiquo.nars.async.fileresults.path
):Unmount the shared folder. You will remount it after the upgrade
9. Prepare yum repositories for 6.2 or 6.2.x
Check that you have the repository URL and credentials
On all Abiquo Servers, such as Abiquo API, Remote Services, Watchtower monitoring.
Install release package
To upgrade to a version with a patch number of zero, for example, version 6.2.0
Remove the previous version Abiquo release packages.
Find the
abiquo-release-ee
package for your version in the list of available versionsInstall the release package.
For Abiquo 6.2.0, the command would be similar to the following:For Abiquo 6.2.1, the release package would be in the format:
For major versions, disable the updates repo.
Prepare yum repositories for 6.2.x (minor version)
Check that you have the repository URL and credentials
To upgrade to the latest version with a patch number that is not zero, for example, version 6.2.x, enable both repositories:
Optionally, add your username and password to the Abiquo repos
Don't forget to use a backslash to escape any shell special characters. For more details, see Learning the bash Shell, Second Edition
Clean yum and make cache
If you did not make snapshots of all servers already, then you could do this now.
10. Upgrade packages on ALL servers
These instructions are for monolithic, distributed, and HA environments.
Update all packages.
The MariaDB update requires a manual install. But first download and run the
gpmigrator
toolIf you earlier unmounted shared folders from your Remote Services server, mount this folder again (and any other folders!)
The Abiquo services must run as the
tomcat
user (notroot
), 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
On the remote services with appliance manager and the V2V server (i.e. servers that mount the NFS 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 7
11. Run the guest password migrator
Download and install the
gpmigrator
packageRun the tool to migrate the guest passwords of the current VMs to a new column that will be added in 6.2.0.
The tool requires access to the
kinton
database and to the API RedisUsage:
For example:
Save the
guestpasswords.sql
file (or whatever you called it) to run after you update the Abiquo database
12. Upgrade MariaDB for Abiquo 6.2.0
On all database servers, including the Watchtower server, upgrade MariaDB
13. Update the Abiquo databases
Check that your hostname is in your DNS or in your /etc/hosts file
Upgrade the Abiquo API databases
If the database update fails with a message similar to the following:
Clear the checksums and run the update again
For Abiquo 6.2.0, run the
gpmigrator
SQL file output (with the appropriate user and credentials)To upgrade the Abiquo Watchtower database, for the monitoring appliance, run the command below:
14. Upgrade additional elements
For Abiquo 6.2.0+, update the database connector configurations
On the Abiquo API Server, edit
/opt/abiquo/tomcat/conf/Catalina/localhost/api.xml
The latest version of the file should contain new options as shown below.
Update the file and/or variables marked with${}
for your environment.If you have a DB cluster, change the
datasource.url
to point to your Galera cluster.
This will not affect the multi-master configuration of the clusterOn the Watchtower server, edit the
emmett.conf
anddelorean.conf
files at:From the connection details, remove
jdbc:mysql:
and replace withjdbc:mariadb:
Add your Galera configuration if your monitoring DB is in a cluster
15. Configure Abiquo after the upgrade
Before you start the Abiquo tomcat server, add Abiquo configuration properties to the
abiquo.properties
file.
By default theabiquo.properties
file is found in the/opt/abiquo/config/
folder.
See Changes to Abiquo configuration propertiesConfigure the user interface. The default UI location is
/var/www/html/ui
.
Optional: Add custom labels and translations in thelang_xx_XX_custom.json
files in the lang folder
Add custom configuration toclient-config-custom.json
. See Configure Abiquo UI and Changes to UI configuration
If your API is not in the same domain as the UI, set the API endpoint pointing to your Abiquo API server:SAML: If you are using SAML with multiple IDPs, restore the configuration as described at Restore SAML security beans after upgrade.
Abiquo 6.2.0 updates Java and other packages, so restore your certificates. To do this, you can follow the steps at Update certificates in your Abiquo environment.
16. Start Abiquo server and services
To start the Abiquo platform servers and services, do these steps:
On Abiquo server or datanode, restart RabbitMQ
On the Abiquo server, restart the HTTP daemon to refresh the user interface files, and bring up the Tomcat server.
On the Remote services server, start the Tomcat server
On the Monitoring server: start the Cassandra service
WAIT about 5 minutes until the service is up and running
Start the KairosDB service
Start the other services in this order
On the V2V server: restart the Tomcat server:
Finally, in Abiquo, UI
Re-enable the physical machines!
In Abiquo 6.2.0, to activate the cost usage reports, regenerate billing
After the upgrade, to prevent glitches in the UI, clear your browser cache
Copyright © 2006-2024, Abiquo Holdings SL. All rights reserved