Upgrade

This document provides a high-level overview of processes that are involved during the Platform9 Edge Stack (PES) on-premises upgrade process. This upgrade process is very similar to the PMK Installation process and follows similar steps except for a few other upgrade specific processes.

Upgrade Process

The upgrade process is broken down into four main steps.

  1. Download & Install - The PES stack upgrade entails running the install.sh script, which upgrades the binaries and the associated components.

  2. DU upgrade - The DU upgrade is accomplished via the newly upgraded airctl using the upgrade-du command.

  3. HostAgent upgrade - This is actually a two-part process

    1. The first part is to clean up the (docker and rpm) caches of all existing hosts via the configure-hosts command.
    2. The second part upgrades the host agent software on ALL the hosts. (see details below)
  4. Cluster upgrade - This update is executed via an API upgrade on each cluster.

Download & Install

  • This is similar to the Installation, you can download a newer version and run install exactly the way you would do that during install. The install.sh script will prompt you to upgrade as required.
Bash
Copy

Upgrade DU

Run the configure-localhost command first to make sure that IPv4/IPv6 settings are configured, and the HAProxy configuration is initialized.

Bash
Copy

The next task after the installation is to upgrade the DU.

Bash
Copy

Configure Host and HostAgent Upgrade

Platform9 uses a two-step upgrade, the first step is to do configure-hosts to update any yum-repos or add docker images (this is being deprecated and moving to a centralized registry for images and a centralized yum-repo). This step is also needed if you want to change the DU Name to IP mapping.

Before running host upgrade, ensure the airct-config.yaml has the right file names set in parameters hostAgentRepo and dockerRepo.

To upgrade the nodes, run configure-hosts followed by upgrade-hosts. This will only upgrade nodes listed in the airctl-config.yaml.

Bash
Copy
Bash
Copy

Host Status

You can obtain the status of each host's kubernetes version and hostagent version before you proceed to the next step

Bash
Copy

Now you are ready to upgrade your cluster whenever you would like.

Upgrade Cluster

You can also upgrade the cluster upgrade via the Qbert API. There may be other specific considerations for upgrading the cluster, which can be found on the upgrade your cluster page.

API For Host Data

In the DU shell, users can obtain relevant data by querying the hostagent on the node by running REST API GET at http://localhost:8082/v1/hosts/<host uuid> and noting the host_agent section in the output. The version field represents the hostagent version that is currently running, while the status field has one of two values, either running_or _updating. The default status is _running_,while the updating state indicates that it has received the command and is updating and processing it. If the host reports offline, the hostagent is down or connectivity to the host is broken.

Bash
Copy

Additionally, users can upgrade the hostagent on the host using the REST API to invoke a PUT via http://localhost:8082/v1/hosts/<host uuid>/hostagent using a request body containing the name, version and URL of the node for the hostagent package.

Bash
Copy

Rollback

Considerations

  • Any cluster created on the DU after the DU upgrade will cease to communicate with the DU after the DU is rolled back. Such clusters will have to be destroyed. Nodes will have to be cleaned up and then connected to the rolled back DU before bootstrapping a fresh cluster.
  • Rollback was designed to be used shortly after a failed upgrade and is not intended as a general purpose backup/restore feature. This is because it saves and restores virtual machine and virtual network XML files, which are not very portable. The “backup” and “restore” commands, when used with pristine copies of the virtual disk (from the official release) are the recommended mechanism. A separate instruction guide will be provided for the backup and restore feature.

How to

  • Use these steps to stop and unconfigure the DU.

These commands may or may not fail, depending on the actual state of the failed upgraded DU.

Bash
Copy
  • To roll back to the previous DU, use this command.
Bash
Copy
  • To start the DU, use this command.
Bash
Copy
  • Do validations:
  • The Kubernetes nodes and clusters should show as connected.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard