Upgrade Guide for Cloud with CloudBoot Servers (5.5 to 6.1)

This guide presents the complete walk-through on how to upgrade OnApp Cloud 5.5 to 6.1 for the cloud configuration where all servers are CloudBoot except for the Control Panel server. Please follow the complete procedure of the upgrade process. All the packages (Control Panel, CloudBoot, and compute resources) must belong to the same major version to ensure the best performance of your cloud.

If you do not complete an upgrade procedure, you may face issues with standard functions such as VS creation, VS migration etc.

Upgrade Control Panel Server

Follow the procedure at Upgrade Guide (5.5 to 6.1) to upgrade your Control Panel server. 

Upgrade CloudBoot Packages

  • Create a backup of the /tftpboot directory in case the storage packages rollback is needed.
  • Power off Windows virtual servers before proceeding to the following procedures.

To upgrade the OnApp Storage packages:

  1. Upgrade the repo:

    CP_host# rpm -Uvh http://rpm.repo.onapp.com/repo/onapp-repo-6.1.noarch.rpm
  2. Update the onapp-store-install package:

    # yum update onapp-store-install
  3. Update the following packages:

    # yum update onapp-ramdisk-tools
    # yum update onapp-ramdisk-centos6-xen
    # yum update onapp-ramdisk-centos6-kvm
    # yum update onapp-ramdisk-centos7-kvm
    # yum update onapp-ramdisk-centos7-default
  4. Install the following new package:

    # yum install onapp-ramdisk-centos7-xen

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


  5. Increase the Dom0 RAM for each Xen CloudBoot compute resource at least to 3 GB from the Control Panel UI.
  6. Power off all the virtual servers that run on a Xen compute resource.

  7. Run the script:

    CP_host# /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).

Migrate and Reboot

For Xen only the cold migrate option is available.

This method involves migrating all virtual servers off each CloudBoot compute resource in turn.
The compute resource can then be safely rebooted, picking up the upgraded Integrated Storage and CloudBoot packages. 
Virtual servers that do not support hot migrate will have to be stopped.

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.

For more information about upgrade scenarios, refer to the OnApp IS Upgrade Paths 5.5 to 6.1 or 6.0 to 6.1.

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 a 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 clik 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.

Local Read Policy

Enabling Local Read on a compute zone ensures that the locally stored copy of the data will always be used for reads. This significantly reduces read latency and improves overall storage performance by reducing load on the SAN network. However, in order to use this policy every compute resource must have sufficient physical drives to be able to store the number of stripes specified in the data store. For example, in a 2R4S data store there must be at least 4 physical disks on the compute resource to use local read.

Changes to Local Read Policy Enforcement

Originally, when this policy was introduced OnApp did not enforce the requirement for the minimum number of drives. Consequently, some users who set the policy having insufficient drives may see the following error message:

Fatal: OnApp::Actions::Fatal Storage API Call failed: {"result"=>"FAILURE", "error"=>"Local reads have been enabled on the zone - members required per host: 4, required hosts: 2, available hosts: 0"}

The solution is to either add additional drives to that compute resource and then add them to the data store or to disable read local.