...
- Migration support
- Existing CloudStack Deployments - Existing cloudstack deployments with clusters from multiple DCs/vCenters require consolidation of clusters into single DC.
- Following are options multiple DC's in a zone
- Decide a DC as the final DC that contains all clusters.
- Move all clusters to the chosen DC.
- For each cluster create cluster with same name in target DC.
- Edit the field 'cloud'.'cluster'.'name' in database to reflect new DC name in cluster name.
- Edit the field 'cloud'.'cluster_details'.'url' in database to reflect new DC name in cluster name.
Options to migrate VM across datacenters - Cold migrate each of the instance to this new cluster in chosen DC.
- Hot migrate the VMs by using disconnecting all hosts from source cluster followed by deletion of source cluster from source DC and adding all hosts to cluster in target DC.
- Hot migrate the VMs after suspending the VMs. Need to power on (mean resume) VMs after migration is complete. This needs the virtual disks of VM to be placed on shared storage before triggering the migration operation.
- Pre-requisite checker tool - This tool should go through existing CloudStack deployment and VMware deployment to check if pre-requisites prerequisites are met. Following are list of pre-requisites before going to prerequisites would be convered during upgrade to new version of product with this feature built-in,
- A CloudStack zone should encompass only 1 VMware DC
- The VMware DC encompassed by CloudStack zone should not be shared by multiple CloudStack deployments.
Guidelines of CloudStack version upgrade - Migration would be offline operation before CloudStack version upgrade operation.
Prerequisite checker tool would be run as part of CloudStack upgrade - Choice of migration procedure is option (2) - migration of host across DC by disconnecting from cluster in source DC, followed by connecting it to target cluster in another DC. Following are detailed steps,
- Handle the case of clusters from multiple vCenter
- Investigation pendingTo be investigated.
- Handle the case of clusters from single vCenter but different DCs
- Handle the case of deployment using distributed virtual switch (Nexus 1000v or vDS)
- Deploy Nexus 1000v or vDS on target DC with same credentials (user/password)
- Ensure if 'cloud'.'virtual_supervisor_module' table has the new IP of Nexus 1000v VSM instance.
- Create all dvPortgroups required by VMs on the host that is moving across DCs. Make sure all properties of dvPortGroups are in sync, e.g. shaping policy should be same as that of original dvPortGroup in source DC. External switch configuration for trunking/routes is assumed to be taken care of by admin.
- Decide a DC as the final DC that contains all clusters.
- Create a cluster, in target DC, with same properties as that of original cluster
- Unmanage the cluster in CloudStack
- Disconnect each host in source cluster
- Remove each host from source cluster
- Add each host to target cluster
- Create all custom properties
- Each VM will have custom properties like cloud.nic.mask. This will be lost during above migration operations. Hence need to re-create after adding to target cluster
- Each template (user VM and system VM templates) will have custom properties like cloud.uuid. This need to be restored.
- Add the target cluster to CloudStack
- Make sure that guid field of 'cloud'.'host' table has the valid reference because when host is added to target cluster, it will acquire new unique reference.
- Investigation pending for migration of primary/secondary datastore across DCs.
Pre-requisite checker should run successfully before CloudStack upgrade operation.- Make sure the field 'cloud'.'cluster'.'name' in database reflect new DC name in cluster name.
- Make sure the field 'cloud'.'cluster_details'.'url' in database reflect new DC name in cluster name
Run CloudStack version upgrade to complete the upgrade- .
Assumptions
- Sharing of resources (datastores, virtual switches like vDS, N1kv and ASA1kv etc.) with other entity (cloudstack or non-cloudstack entity) is not allowed.
- Cloudstack zone doesn't contain multiple hypervisors. A cloudstack zone will have only 1 hypervisor.
...
- Mapping of Nexus VSM instance with zone
- Bring in new APIs to support associate / dis-associate a Nexus VSM instance with a zone
- While adding a cluster, let user choose which Nexus VSM to be used for virtual network orchestration. Actually Nexus VSM doesn't care about the cluster but it manages host. So to make the operation valid, it required (a pre-requisite) that all hosts in a cluster should be part of single Nexus VSM instance.
- Allow multiple Nexus VSM instances to be associated with single cloudstack zone.
- Architecture
- While adding a cluster, if N1kv instance is specified, update table cloud.virtual_supervisor_module and cloud.zone_vsm_map to assocaite N1kv VSM instance with zone
- Allow multiple N1kv VSM instances to be added to zone.
- Avoid cascaded removal of VSM instance upon cluster deletion as the association is now at zone level.
- Change cleanup code of N1kv VSM instances as cleanup should happen automatically with zone removal instead of cluster removal earlier.
- Constraint checks
- Only N1kv VSM of the associated DC can be added to a zone.
- N1kv's vCenter server connection's properties would need to be checked to retrieve the association of N1kv with a vCenter and a DC. Compare the retrieved vCenter IP and DC name with vCenter IP and DC name of current zone
- DB changes
- 'cloud'.'cluster_vsm_map' would be removed.
- 'cloud'.'zone_vsm_map' would be added. Also a zone can be associated with more than 1 VSM instances.
- Columns in this table are id, zone_id & vsm_id where id is Primary key of this table.
- Foreign key vsm_id from virtual_supervisor_module table.
- Implement Dao & VO classes for this table.
- Zone level Cisco ASA 1000v instance.
- CloudStack should be able to add/manage following DC level resources in scope of zone.
- Distributed virtual switches for zone wide virtual networks.
- Nexus 1000v DVS
- VMware DVS - this is already realized by zone wide traffic labels.
- UI Flow
- Support add/removal of Nexus 1000v device to a zone
- Support add/removal of ASA 1000v to a zone.
- Track relationship between resources (DC <->
DVS - vDS <> N1kv <-> ASA etc.) in cloudstack database. Use custom property over vDS to ensure it's associated with single CloudStack deployment.
{"serverDuration": 191, "requestCorrelationId": "45fc4b9538416530"}