Site icon Chris Colotti's Blog

How To: Upgrade vCloud Director in Detail – Part 1

This outlines the steps for performing an “End-to-End” upgrade of a vCloud deployment. “End-to-End” for the purpose of this guide refers to all aspects of the installation from the vCloud Director cells all the way to the deployed virtual machines running inside the vCloud. What this document will not cover is the specific click through steps on certain components, as those are documented in their respective installation guides or release notes. What this will cover are the dependencies, additional steps and considerations needed to maintain the proper working condition of the system at certain stages in the upgrade process and facilitate a smoother process. It is recommended that there are “planned” pause periods between phases to allow for validation and user testing before moving onto the next phase. Although all phases could be completed in a “Big Bang” approach this may add risk and troubleshooting difficulty.

IMPORTANT NOTE: Some of these upgrades may be disruptive to end users, and will require that they do not have system access for a brief period. This is unavoidable, and precautions should be taken for informing users. Running virtual machines will remain available in most cases. This will also NOT address the process for migrating from an Oracle-based vCloud Director Database to MS SQL Server, the process which is currently not supported.

Installation References

The following publications contain information on upgrading each individual component discussed in this document.

Support and Assistance

Contact VMware Global Support for any assistance and always reference the available Knowledge Base Articles and product installation guides

High Level Process Outline

The upgrade has been divided into four major phases as shown in the order below. After completion of any phase, a customer can “park” indefinitely until they chose to move on.

Table 1 – Upgrade Phases

Phase Steps

I

Upgrade vCloud Director Cells from 1.0.1 to 1.5Upgrade vShield Manager and deployed vShield Edges from 1.0 to 5.0

Upgrade Chargeback from 1.6.1 to 2.0Optional)

Upgrade the Oracle Database versions

II

Upgrade vCenter Server from 4.x to 5.0Upgrade vCenter Orchestrator 4.x to 5.0

III

Upgrade ESXi hosts from 4.x to 5.0

IV

Upgrade VMFS-3 to VMFS-5Upgrade vNetwork Distributed Switches

Update vCloud Director configuration

Upgrade vApp hardware levels to HW8

Upgrade VMware Tools

Each of these phases will be addressed with considerations in separate sections in this document. In testing the upgrade process and considering potential variations in the order of steps, the methodology presented here provided the most stable and phased approach to an upgrade. For example, a customer could elect to only perform Phase I and II and wait on any vCenter or ESXi upgrades and subsequent changes until they wanted the additional functionality. The choice of when to proceed further can be left up to the customer to decide, and they are not left in a state of instability.

There has been a question of upgrading vCenter and ESX first. The downside with upgrading ESX and vCenter before vCloud Director is that the vCloud Director 1.0.1 agent simply will NOT install on an ESXi 5 host. This means if you start the upgrade process with ESX first you will be forced into upgrading vCloud Director planned or unplanned. This may not be the best option for customers that want a truly phased methodical and systematic approach. However, in our tests we observed that upgrading vCenter only to version 5 did not adversely affect vCloud Director in any noticeable way other than Custom Roles are modified and may need to be updated.

Additionally, some customers have mentioned they want to upgrade to vCloud Director specifically for Oracle 11gR2 support or Microsoft SQL Server support, and want to wait on upgrading the vSphere end until they can test it elsewhere. The main point is once you start with vSphere first you will be forced to continue all the way through and have no real phased approach.

Upgrade Checklist

VMware vSphere

Table 2 – VMware vSphere Checklist

Done Requirement
Have the HA capacity of at least N+2 in your provider clusters to maintain N+1 availability during the ESX host upgrades
Have Access to new hardware in case additional hosts are needed to maintain HA levels

Software

Table 3 – Software Checklist

Done Requirement
VMware vCloud Director VMware Cloud Director 1.5 Build #464915Supported OS and database(Red Hat Enterprise Linux 5 64-bit and Oracle 11g)
VMware vCenter Chargeback 1.6.2 Build #472877
VMware vShield Manager 5.0 Upgrade Package File Build #473791
VMware vSphere Installation files for vCenter and ESXi using VMware Update Manager.
  • vSphere vCenter Build #456005
  • vSphere ESXi Build #469512 (ISO Image)
vShield Edge 5.0 license keys
vCloud Director license keys
vSphere 5.0 license keys
Cell Management Tool for vCloud Director 1.0http://kb.vmware.com/kb/1033575
If vCenter Heartbeat is used for vCenter, vSphere vCenter HeartBeat 6.4 is required to upgrade before vCenter – Also add new KB that will cover upgrading to vCenter 5.0 that is protected by vCenter HeartBeat

Service Accounts

Be sure to have all the service accounts available with passwords that were used for the original installation. The following table is a reference table of accounts that could have been used during installation and their mapping. Your customer’s use of service accounts may be different, and the key is to understand for each component what account was used, as this can affect the upgrade functionality. In the test lab each component was given their own unique service account in Active Directory (AD) to test the connectivity to other components. Some customers may NOT have used service accounts depending on the installation, but many of the new security features especially in vShield Manager will require them. The table below lists the most common access requirements and the level of access they will need. If these are not in place, they should be created prior to upgrading.

 

Table 4 – Suggested Service Accounts Used

Access Required

Components that require Domain Service Accounts

vCloud Director

vCloud Connector

vCenter and Update Manager

vCenter Chargeback

vShield Manager

vCenter Role

Admin

Admin

N/A

Admin for Install then

Read Only Plus Storage Views

Admin

Local System Access

N/A

N/A

Log on as a Service

Log on as a Service

N/A

AD / LDAP Access

Read Only Access to AD

N/A

N/A

Read Only Access to AD

N/A

vCenter Database

N/A

N/A

DBA/DBO

Read Only

N/A

vCloud Database

RESOURCE, DBA,

N/A

N/A

Read Only

N/A

CONNECT, ETC

Assumptions

This section also assumes that customer’s will have multiple vCloud Director Cells front-ended by a load balancer in a production-like environment. This also assumes that the transfer folder location was mapped to an NFS share as part of the multi-Cell Requirement. It is also assumed before starting this upgrade that all functions of vCloud Director are working properly. Two key functions would be the ability to deploy a new vApp as well as deploy a NAT Routed network with a vShield Edge.

 

Personnel Resources Needed

Phase I Impact

This phase of the upgrade will cause downtime the following components will be affected by this step in the upgrade process.

Phase I Advantages

The following is a list of advantages of upgrading to vCloud Director 1.5; however, not all new features will be available upon completing just Phase I. This is not meant to be an exhaustive list, only major items that customers have expressed as their reason to upgrade to 1.5.

 

Upgrading VMware vCloud Director Cells

The basic upgrade instructions are located in the VMware vCloud Installation Guides and are as simple as copying over the installer file and running it. However, the upgrade to vCloud Director 1.5 does update the database schema. You will also need to use the Cell Management tool to quiesce all the cells in the installation prior to upgrading.

Back Out Plan for the vCloud Director Cells

At this point it could be possible to roll back the upgrade, but this has NOT been tested as of yet and would need to be done before ANY new items are deployed in vCloud Director as those objects would be in the new database table structure. If a decision is to be made to roll back it needs to be done at this point so the database backup could be restored, and vCloud Director 1.5 uninstalled and 1.0.1 re-installed. Once you continue to move forward it becomes increasingly difficult to roll back due the additional functions in vShield Edge and the separate vShield Manager database. Additionally once users are back on the system and new objects are deployed there is no point of return at all (without object loss and much manual cleanup of existing vCenter objects no longer recognized by vCD, which still aren’t guaranteed to function properly).

There appears to be a few possible options to assist in rolling back the upgrade:

If both the snapshot and the backup are taken, one should be able to restore the database and revert/delete the snapshot. If items are deployed between the time of the backup for validation and testing there could be some items to clean up as those objects would not have been in the original backup.

Important Considerations and Requirements:

vCloud Director Connectivity to Hosts

VMware vCloud Director should update the host agent on all connected hosts. You should check the connected hosts in vCloud Director to ensure they are still showing available and “Prepared”. The vCloud Director 1.5 agent is different than the previous version and once installed should remain when you get to the ESXi Upgrade steps

Validation Steps to Perform After Cells Are Upgraded

The following two simple steps should be performed to ensure that functions are still working before moving to the next major step. These are basic but will ensure that there is a baseline of functionality as you move forward.

  1. Deploy a new vApp
  2. Create a NAT routed network (either a routed Organization Network or Fence a vApp that is deployed)

If either of these steps fail, stop here and troubleshoot the issue before moving on.

  1. Rolling Back the Upgrade

If you decide you want to roll back at this point you can restore the database backup and revert/delete the snapshot. It should be understood that as you progress you will get closer to the point of no return for Phase I.

Upgrading the vShield Manager

Upgrading the vShield Manager utilizes the UPGRADE package file. Do NOT deploy a new vShield Manager or all the information in the local MySQL database containing deployed vShield Edge devices will be lost.

WARNING!!! – Do NOT attempt to redeploy the latest version of the vShield Edge Appliance. Removing the existing vShield Manager Appliance will break all connections, and management to any deployed vShield Edge devices resulting in errors. Once a vShield Manager is deployed you should upgrade it in place to the latest supported versions to ensure the local database remains intact. It may be possible to restore a configuration to a newly deployed vShield Manager using the FTP backup taken, but that has not been tested for this document.

Back Out Plan for vShield Edge Devices

The feeling among many folks is that once you have committed to upgrading the deployed vShield Edge devices you are past the point of no return. Trying to back out at this point could result in data loss and possible corruption of vShield Edge networks and devices. Again, once users are back on the system there is definitely no going back as new objects will all be created using the new products.

However there are two options for providing a method of rollback it is up to each individual to decide the best method

Procedures

Figure 1 – vShield Manager Backup Option

Figure 2 – vShield Manager Update Screen

Figure 3 – vShield Manager Update Install Screen

Figure 4 – vShield Manager Update Steps Screen

Figure 5 – vShield Manager Updated Build Screen

Figure 6 – vShield Licensing Updates

Validation Steps to Perform After vShield Manager is Upgraded

Do not perform this step until you have seen that the update from vCloud Director has populated the vCenter connection in vShield Manager. If you do not wait long enough you will get errors when trying to deploy or reset networks.

The following two simple steps should be performed to ensure that functions are still working before moving to the next major step. These are basic but will ensure that there is a baseline of functionality as you move forward.

  1. Deploy a new vApp
  2. Create a NAT routed network

Rolling Back vShield Manager

If you decide at this point to roll back the installation you can revert/delete the snapshot. You should not need to restore the database from FTP backup. Again, if you continue past this point you are essentially past the point of no return.

Upgrade Deployed vShield Edge Devices

Be sure to wait at least 5-10 minutes after upgrading the vShield Manager for it to report back to vCloud Director that it is updated. There is a documented issue in the release notes here:

http://www.vmware.com/support/vcd/doc/rel_notes_vcloud_director_15.html#installissues

System administrators will need to upgrade any Org Network-based vShield Edges. Org Admins can upgrade any vApp Network vShield Edges, OR the System admins can upgrade them. It is recommended that at least for the Org Networks, users remain off the system and the load balancer remain redirected to the maintenance page until the process is completed.

Figure 7 – vShield Edge Versions

Figure 8 – vShield Edge Updating Deployed Edge

 

Figure 9 – Ping Test During vShield Edge Update

 

Figure 10 – New vShield Edge Version

Upgrading Oracle Database

Since vCloud Director supported on additional versions of Oracle 11g, customers can choose at this point to upgrade the Oracle database server as well. This will also require that the vCloud Cells are not connected to the database, resulting in an outage in most cases and you will need to use the maintenance pages again.

Migrating vCloud Director Database from Oracle to MS SQL Server

This is currently not supported and a SQL Server installation will require a clean database installation and a rerun of the vCloud Director configuration script. There may be unsupported ways of accomplishing this, but the customer would do this at their own risk.

Upgrading vCenter Chargeback

As with all other sections of this document, we will only address vCloud-specific issues when upgrading Chargeback to version 1.6.2. Follow all current documentation for upgrading vCenter Chargeback.

Rolling Back vCenter Chargeback

As with the previous components care should be take to allow a possible back out plan. There are two options for providing a method of rollback it is up to each individual to decide the best method

Considerations

Phase I Completion Verification Checklist

Done Requirement
FSTAB entry changed for new path for NFS Mount
vCloud Director Cells start properly on server reboot
Updated Service Account used for vCloud Director to vShield Manager
Updated Role-based access in vShield Manager
Users can still log into their respective organizations
Load Balancer is properly directing traffic
Verify Host Connectivity
Validate a vApp can be deployed
Validate a new vShield Edge can be deployed
Remove all snapshots of the vCloud Cells and vShield Manager virtual machines
Exit mobile version