Upgrading FlightHub 2 On-Premises

Notes

This chapter applies only to upgrading V2.0 and later versions to a higher version. It does not apply to upgrading V1.7.1 and earlier versions to V2.0.

Please note the following constraints before upgrading:

  • Rolling upgrade with no service interruption: Cluster services remain available during the upgrade, but brief fluctuations lasting a few seconds may occur.
  • Only upgrades to higher versions are supported; downgrades are not supported.
  • Do not power off servers or restart nodes during the upgrade, as this may interrupt the upgrade or leave the cluster in an abnormal state.
  • On-demand upgrade: The system automatically determines which upgrade stages are required based on the actual contents of the upgrade package. No manual selection is needed.

Pre-Upgrade Assessment

Before upgrading, assess your upgrade needs based on the following:

  • System status: If the current services are running normally and you do not need new features, you can continue using the existing version.
  • License validity: Confirm that the license is still within its upgrade service validity period. If it has expired, first upgrade the license as described in “Increasing the Number of Simultaneously Online Devices / License Upgrade”, then download the license and the installation package for the new version.

Upgrade Procedure

1. Log In to the AIO Admin Console

2. Select an Upgrade Mode

1) Full Upgrade

Applicable scenarios:

  • Upgrading across multiple versions.
  • Example of upgrading across versions: From V1.5.x to V1.7.0. These version numbers are used only to illustrate the upgrade method.
  • All services need to be updated, so the upgrade takes longer.

Example installation package:

XXX-v1.7.0-full.tar.gz

2) Incremental Upgrade

Applicable scenarios:

  • Upgrading between adjacent versions.
  • Example of upgrading between adjacent versions: From V1.6.x to V1.7.0. These version numbers are used only to illustrate the upgrade method.
  • Only changed services are upgraded, so the upgrade takes less time and the package is smaller.

Restrictions:

  • Incremental upgrades are supported only between adjacent versions.
  • Example: V1.6.x can be incrementally upgraded to V1.7.0.
  • Example: V1.5.x cannot be incrementally upgraded directly to V1.7.0.

The upgrade restrictions are shown below (the following version numbers are examples only):

Example installation package:

XXX-v1.6_to_v1.7.0-patch.tar.gz

4. Perform the Upgrade

After confirming the upgrade mode and upgrade path, click “Upgrade” to start the upgrade process.

The upgrade process consists of the following stages. Environment Check and Update Package Copy are fixed stages in every upgrade. FlightHub Management Console, Cluster Infrastructure Update, and Service Update appear dynamically depending on the actual contents of the upgrade package. The stage progress bar at the top of the page is generated from the actual stages of the current upgrade and highlights the current stage in real time.

Environment Check → Update Package Copy → [FlightHub Management Console] → [Cluster Infrastructure Update] → [Service Update] → Complete

The upgrade sequence is fixed by the system and cannot be adjusted.

1) Environment Check

The system checks upgrade prerequisites such as disk space and system status on each node. If no issues are found, the upgrade starts automatically.

2) Update Package Copy

The system distributes the upgrade materials to all nodes in the cluster.

3) FlightHub Management Console (AIO)

The FlightHub Management Console service is updated. Services remain available during the update.

4) Cluster Infrastructure Update

The cluster infrastructure (K3s) is updated. This is the only stage orchestrated at the individual-node level:

  • Master nodes are updated one at a time: Because of the etcd majority (quorum) requirement, only one Master node is updated at a time. The next Master node is updated only after the cluster returns to normal.
  • Worker nodes are updated in parallel: Worker nodes do not participate in etcd, so all of them are updated in parallel.
  • Worker node updates begin only after all Master nodes have been updated and have returned to normal.

The page lists the role, status, and version change of each node:

Node statuses are as follows:

StatusDescription
PendingThe update has not started.
UpdatingThe node is being updated.
CompletedThe node was updated successfully.
Update FailedThe node update failed.
Update Failed · RemovedWorker nodes only. The node was automatically removed from the cluster after the update failed, and the upgrade process continues.

5) Service Update

Service components such as FlightHub, Terra, 4G, and Baidu Maps are updated in sequence.

The components actually updated depend on the upgrade package contents and the current deployment. For example, if the Terra modeling service is not deployed, the Terra update stage does not appear.

6) Complete

After all stages succeed, the page shows “Update Complete” and the current version, and the cluster returns to normal operation. Click “Back to FlightHub Management Page” to exit the upgrade process.

If any Worker nodes were removed during the upgrade, the result page also shows the number of removed nodes and provides a “Go to Cluster Management” entry point. For details, see “Worker Node Update Failure” below.

Handling Failures

The upgrade follows a stop-on-failure policy: Except for Worker nodes, a failure in any stage stops the upgrade and leaves the failure page displayed so that operations and maintenance personnel can decide what to do next.

Available Actions After a Failure

The actions available on the failure page depend on the stage that failed:

Failed stageRetryDiagnoseView LogsRoll BackBack to Management Page
Environment CheckSupportedSupportedSupported—Supported
Update Package CopySupportedSupportedSupported—Supported
FlightHub Management Console (AIO)SupportedSupportedSupportedSupported—
Cluster Infrastructure Update · MasterSupportedSupportedSupportedSupported—
Cluster Infrastructure Update · WorkerThe node is removed automatically. The failure page is not shown, and the upgrade process continues.
Service UpdateSupportedSupportedSupportedSupported—

Action descriptions:

  • Retry: Resumes from the stage that failed. Completed stages are not rolled back.
  • Diagnose: Collects logs from each node, analyzes the root cause of the failure, and shows the root cause and recommended actions on the current page.
  • View Logs: Opens “Node Task Logs”, where you can view each node's execution logs for this upgrade for troubleshooting or submission to after-sales support.
  • Roll Back: Rolls back all upgrade steps that have been performed and restores the cluster to the pre-upgrade version.
  • Back to Management Page: Exits the upgrade process and returns to the FlightHub Management page.

If Environment Check or Update Package Copy fails, the system has not yet made any changes to the cluster, so no rollback is needed and you can exit directly. If FlightHub Management Console, Cluster Infrastructure Update, or Service Update fails, changes have already been made, so rollback is available.

Diagnosis

The failure page does not show error details initially. After you click “Diagnose”, the system collects logs from each node and analyzes the root cause, then shows the Root Cause and Recommendations on the page.

Examples of common root causes and recommended actions:

Failed stageExample root causeRecommended actions
Environment CheckThe /var/lib partition on node-2 has 2.1G free, which is less than the 10G required for the upgrade.Free up disk space on the node (for example, remove old images and logs), then click Retry; or expand the disk first.
Update Package CopyThe network connection to node-4 was interrupted, and the upgrade package transfer failed at 40%.Check the network connectivity and SSH service of node-4. After they are restored, click Retry (resumable transfer is supported).
FlightHub Management Console (AIO)The aio-web container failed to start because of a database connection timeout.Check whether the system-be-mysql Pod is ready and whether the database connection configuration is correct, then retry. If you cannot locate the cause, roll back.
Cluster Infrastructure Update · MasterThe embedded etcd on node-2 did not return to normal within the timeout after k3s was restarted.Check the etcd logs on node-2 to confirm whether data is corrupted. A Master node failure carries a higher risk. We recommend rolling back all upgrade steps performed before troubleshooting.
Service UpdateThe terra-core container failed to start because the schema migration for the new version was not completed.Check the terra-core startup logs and the migration Job status, then retry after fixing the issue. If data has already been changed, a rollback is required.

Worker Node Update Failure

Worker nodes do not participate in etcd or the cluster control plane, and a failure on one node does not affect the others. Therefore, a Worker node failure does not stop the overall upgrade:

  1. The system automatically removes the failed Worker node from the cluster.
  2. The upgrade continues to completion using the remaining nodes.
  3. After the upgrade finishes, the result page shows the number of removed nodes.

The cluster can run normally after a node is removed. After troubleshooting and fixing the node, click “Go to Cluster Management” and add it back to the cluster as described in “Node Management”.

Master Node Update Failure

Master nodes host etcd and the cluster control plane, so an update failure carries a higher risk. We recommend selecting “Roll Back” on the failure page to restore the entire cluster to the pre-upgrade version before investigating the cause. Other Master nodes that were successfully updated are rolled back as well, and the failed node returns to normal after the rollback.

Rollback

After you click “Roll Back” on the failure page, the system rolls back all upgrade steps that have been performed and restores the cluster to the pre-upgrade version.

  • The rollback covers all stages completed in this upgrade, not only the stage that failed.
  • After the rollback is complete, the cluster returns to its pre-upgrade state and this upgrade is canceled.

Rollback Failure

The rollback itself can also fail, for example if a storage snapshot cannot be restored or the cluster infrastructure version cannot be reverted. In this case, the page shows “Rollback Failed”, and the cluster may remain in an intermediate upgrade state without being restored to the pre-upgrade version.

First click “View Logs” to investigate the cause, then click “Roll Back Again” to trigger another rollback. If recovery still fails, contact DJI Support.

View Logs

The upgrade failure page, the Worker node removal result page, and the rollback failure page all provide access to logs. Click “View Logs” to open “Node Task Logs” and view each node's execution logs for this upgrade.

If troubleshooting is difficult, capture the diagnosis results on the failure page and the relevant logs, and submit them to after-sales support.

Upgrade Interruption and Recovery

The upgrade task status is persisted on the server. If you leave the page or the network is interrupted during the upgrade, reopening the upgrade page automatically restores it to the current stage. You do not need to start over.