Inline Software Upgrade¶
Aviatrix software is released frequently every 6 - 8 weeks.
When upgrading a controller software, all gateways are upgraded with the new software at the same time. This is done by controller pushing new software to gateways directly and automatically once requested.
We strongly recommend that you take a backup before you start the upgrade process. Please follow the directions here.
How to upgrade software¶
Upgrades are done from the Controller UI. To check for an available update and perform an upgrade, follow these steps:
Follow the directions listed below in this document to update your IAM policies in all accounts, before starting the upgrade process
Login to your Controller
Expand Settings navigation menu item
Click Dry Run to make sure controller and gateway are in contact and allowed to download our software from our release server. If the Dry Run is unsuccessful, you may want to check controller/gateway security groups, VPC DNS settings to make sure their outbound traffic to Internet is allowed.
Click Upgrade to the latest to upgrade your software to the latest version
- If upgrading from a release<3.3.x: Please upgrade to the next immediate release by entering the right version in “Upgrade to custom release” - the correct order is: 2.5, 2.6, 2.7, 3.0, 3.1, 3.2, 3.3
- Upgrading from a release>=3.3.x: Aviatrix Controller will enforce incremental upgrades, so please click on “Upgrade to the Latest”. You might have to go through multiple upgrades before you reach the latest release. Follow the directions in next note when you upgrade to release 4.0
- If upgrading from a release<4.0: Once you upgrade to 4.0, please go to “Aviatrix Console > Troubleshoot > Diagnostics > Services” and click on “Restart Cloudxd” - please click on it only one time, wait for a minute, close your browser and start a new https connection to Aviatrix Console. This is only needed if your controller is based on 14.04 AMI. This will not be required for later AMI’s.
Take a backup by following instructions documented here.
If you are using terraform, please use the appropriate branch from https://github.com/AviatrixSystems/terraform-provider-aviatrix. For more information please go to https://github.com/AviatrixSystems/terraform-provider-aviatrix#controller-version
To reduce issues related to upgrade, starting version 3.3, the controller will let you upgrade only to the next maintenance release. For example, from 3.3.x, you can only upgrade to 3.4 first and can then upgrade again to get to 3.5. If you are running a version earlier than 3.3, please upgrade to next higher version first and repeat till you get to 3.3, using the “Upgrade to a Custom Release” function. If you are running version 3.3 or later, you can upgrade using the “Upgrade to the Latest” method as mentioned above – but note that you might have to upgrade multiple times to get to the latest release.
- Example: A controller running 3.1 can go to the latest release(lets say, 3.5) using the following steps:
- Backup. Upgrade to 3.2 using “Upgrade to a Custom Release”
- Backup. Upgrade to 3.3 using “Upgrade to a Custom Release”
- Backup. Upgrade to 3.4 using “Upgrade to the Latest”
- Backup. Upgrade to 3.5 using “Upgrade to the Latest”
If you have been provided a custom release version, please enter that version into the Release Version field and click Upgrade to a custom release button.
Inline and hitless software upgrade¶
Aviatrix software upgrade happens inline without taking down the controller.
In addition, gateway upgrades are hitless. That is, all gateway encrypted tunnels stay up during the upgrade process. There is no packet loss when upgrading the software.
Upgrade impact on OpenVPN® users¶
Most upgrades do not impact connected OpenVPN® users. In some cases, OpenVPN® service needs to be restarted as part of software upgrade, for example, upgrade to a new SSL version for security patch. In these cases, connected OpenVPN® users will be disconnected and will need to connect again.
When a release affects OpenVPN® users, the Release Note will make a note of it. Make sure you read Release Notes before applying an upgrade.
OpenVPN is a registered trademark of OpenVPN Inc.
How to update AWS-IAM-Policy¶
Please also keep your AWS IAM Policies updated to the latest (preferably before upgrading controller software).
Step 01: Login to your AWS GUI console
Step 02: Go to IAM service
A. Update “aviatrix-assume-role-policy”:¶
Step 03: Click “Policies” and search for the policy “aviatrix-assume-role-policy”
If you have not created “aviatrix-assume-role-policy”, please see here.
Step 04: Click Edit Policy
Step 05: Click tab “JSON”
Step 06: Update Policy: copy and paste the policy text from this link and then click button “Review policy” and button “Save changes”.
B. Update “aviatrix-app-policy”:¶
Step 07: Click “Policies” and search for the policy “aviatrix-app-policy”
If you have not created “aviatrix-app-policy”, please see here.
Step 08: Click Edit Policy
Step 09: Click tab “JSON”
Step 10: Update Policy: copy and paste the policy provided by this link and then click button “Review policy” and button “Save changes”.
Please also update the AWS-IAM-Policy for all Secondary Access Accounts.