Upgrade Cloud with CloudBoot Servers (from 6.6 Edges)

  • The support status of Xen changes to End of Support in OnApp 6.5. We will no longer develop features or provide full support for Xen compute resources in OnApp clouds. That is why we recommend you migrate your VSs from Xen to KVM
  • CentOS 6 reached End of Life and is no longer supported. You may upgrade to CentOS 7.
  • To test the upgrade, you may first simulate the upgrade process on the test environment. For the instructions, refer to the Configuring Control Panel Environment for Simulation Purposes page. 

This guide explains how to upgrade OnApp Cloud 6.6 Edges to 6.6 for a cloud with static servers. Follow the procedure listed below in the provided order to upgrade your cloud. All the packages (Control Panel and Static compute resources) must belong to the same major version to ensure the best performance of your cloud.

On this page:

Upgrade Control Panel Server

To upgrade the Control Panel server, follow the procedure at Upgrade Guide for Control Panel Server

Upgrade CloudBoot Packages

Create a backup of the /tftpboot directory in case the storage packages rollback is needed.

To upgrade the CloudBoot, proceed with the steps from one to six (1-6) on Control Panel box:

  1. Upgrade the repo:

    # rpm -Uvh http://rpm.repo.onapp.com/repo/onapp-repo-6.6.noarch.rpm
  2.  Update the corresponding package(s):

    # yum update onapp-ramdisk-centos7-kvm onapp-ramdisk-centos7-default onapp-store-install

    After the packages installation, go to the Control Panel's Settings menu > Configuration and click the Save Configuration button.

  3. Run the script:

    # /onapp/onapp-store-install/onapp-store-install.sh

    Be aware that the disk-less nodes password is the root password for the CloudBoot compute resources. By default it is blank.

    When run in the interactive mode, enter the required information.

Upgrade CloudBoot Backup Servers

Make sure to update CloudBoot packages on your Control Panel server before proceeding to the upgrade of CloudBoot backup servers.

CloudBoot backup servers are CloudBoot KVM compute resources that can be used as backup servers. The CloudBoot backup server upgrade procedure is almost the same as the CloudBoot compute resource upgrade. Follow the instructions provided in this section to upgrade CloudBoot backup servers in your cloud.

Once you have upgraded the CloudBoot dependencies, you have to reboot your CloudBoot compute resource to update the Cloud Boot RPM. You do not need to perform any backup server upgrade operations using console.

To do so:

  1. Go to your Control Panel Settings > Compute Resources menu.

  2. Click the label of the CloudBoot compute resource the backup server is based on.

  3. On the compute resource details screen, click the Actions button, then click Reboot Compute resource.

  4. A new screen will open asking for confirmation before reboot:

    • Are you sure you want to reboot this compute resource? Confirm that you want the compute resource to reboot.

  5. When you're certain you want to proceed with the reboot, click the Reboot button.

  6. Repeat these steps for all CloudBoot backup servers in your cloud.

  7. Once all are rebooted, proceed to CloudBoot compute resources upgrade.

Upgrade CloudBoot Compute Resources

Depending on the infrastructure, scale and needs of your cloud we suggest the following methods of upgrading CloudBoot compute resources:

Simple Reboot

This method is the simplest method technically. It also ensures all tools are updated. However, it will result in some limited downtime
(its duration depends on how many virtual servers are running on each compute resource).

In case you have applied any custom configuration to your CloudBoot servers, it is recommended to recheck that this customization does not break new cloud boot image version. For this, reboot a compute resource and run Storage Health Check and Network Health Check. Make sure that vDisks hosted on a compute resource are redundant and healthy before rebooting a CloudBoot compute resource.

If you are using the auto healing functionality for Integrated Storage, make sure to disable it before an upgrade.

Simple Reboot

Follow the below procedure to upgrade the CloudBoot compute resources with reboot:

1. Upgrade CloudBoot Packages.

2. When the CloudBoot packages upgrade is complete, stop all virtual servers which reside on the CloudBoot compute resources.

3. Reboot all CloudBoot compute resources.

Once the compute resources are booted, the upgrade is complete. Before starting all Virtual Servers please ensure that the diagnostics page does not report any issue. In case of any issue, please click repair button to resolve it, then continue with starting Virtual Servers.

Note that virtual servers cannot be stopped simultaneously, but must be stopped in sequence. This can result in considerable downtime if there are a large number of virtual servers.

Migrate and Reboot

Use this procedure if you prefer migrating all virtual servers to another compute resource and conducting overall upgrade of your CloudBoot and Integrated Storage. Virtual servers that do not support hot migrate will have to be stopped.

Once you have upgraded the CloudBoot packages, you have to reboot your CloudBoot compute resources to update them.

To do so:

  1. Run the following command from the Control Panel server terminal to display the list of compute resources with their IP addresses. Make a note of the list of IPs:

    CP_host# liveUpdate listHVs

    If the command liveUpdate is not available, then it may be located in the sbin directory instead (cd /usr/local/sbin).

  2. Migrate all the virtual servers from the CloudBoot compute resource to another compute resource. Follow the instructions described in the Migrate Virtual Server section of the Admin guide to migrate virtual servers.

    Before you migrate, reboot, or start up virtual servers, please ensure that grub2.img is present on the destination compute resource in the /onapp/tools directory. To add the file to all compute resources, please run the following commands on the Control Panel server before the corresponding actions:

    cd /onapp/;wget http://templates.repo.onapp.com/Linux/grub2.img
    for i in `cat /onapp/configuration/dhcp/dhcpd.conf | grep fixed | sed 's/;//' | awk '{print $2}'`; do echo -n "$i -> "; scp /onapp/grub2.img $i:/onapp/tools/; done
  3. After that, go to your Control Panel Settings menu.

  4. Click the Compute Resources icon.

  5. Click the label of the CloudBoot compute resource you have migrated all VSs from.

  6. On the compute resource details screen, click the Actions button, then click Reboot Compute resource.

    Rebooting a compute resource assigned to a data store with a single replica (single-replica compute resource) or degraded virtual disks may result in data loss.

  7. A new screen will open asking for confirmation (via two check boxes) before reboot:

    • Stop all virtual servers that cannot be migrated to another compute resource? Check this box if you want VSs that cannot be migrated to be powered off. When a compute resource is scheduled for a reboot, OnApp will first attempt to hot migrate all VSs it hosts. If hot migration is not possible for a VS, OnApp will attempt to cold migrate that VS. With this box checked, if cold migration fails, the VS will be stopped so the reboot may proceed. If you don't check this box, OnApp will attempt to hot and then cold migrate all VSs hosted by the compute resource being rebooted – but will stop the migration process if any VS cannot be migrated.
    • Are you sure you want to reboot this compute resource? A simple confirmation to confirm that you want the compute resource to reboot.

      Before the reboot, please ensure that all vDisks are fully synced and redundant. If some of them are not fully synced, the virtual server, that is owner of a degraded (or non-redundant) vDisk, can loose access to the vDisk. It can be manifested as IO errors during writes or reads to/from the vDisk inside the virtual server.

  8. When you're certain you want to proceed with the reboot, click the Reboot button.

  9. Repeat these steps for all CloudBoot compute resources in your cloud.