Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Add golden PS property in StoragePoolVirtualMachineTemplatePrimaryDataStoreTOTemplateObjectTO class.
  2. DeploymentPlanningManager class:
    New method planGoldenDeployment return DeployDestination for Golden image deployment.
    Change method findSuitablePoolsForVolumes to find suitables pool based on 3 type: golden, normal and up to all.
  3. DeployDestination class:
    New property DeployDestination goldenDest link to golden deployment of parent image.
  4. VolumeOrchestrator class:
    Change prepare method to check VM DeployDestination have a golden deployment, if yes we will clone from template on that golden deployment.
  5. VolumeService class:
    New method CreateBaseImage
  6. XenServerStorageProcessor class:
    New method copy_vhd_from_pool_to_pool to move a cloned ROOT volume from golden PS to ROOT PS.
  7. vmopsSnapshot plugin:
    2 new plugin: setVhdParent and copy_vhd_from_pool_to_pool



  8. In case of migrate volume, currently Xen Server will merge VHD chain of VM volume and migrate it to a new primary storage. In this case, we can simply move child image to new storage repository by calling plugin copy_vhd_from_pool_to_pool. This plugin is reference to OpenStack Xen Server plugin.

  9. In case of snapshot volume, it still follow CloudStack normal process.
  10. Migrate VM: must find a suitable host for live-migrate VM, if host can not access golden PS, so it will be add to avoid list. (e.g: golden PS is local storage)
  11. Taking VM snapshot: still follow CloudStack normal process. Because VM snapshot automatically exploits the capabilities of the underlying storage repository in which the VM's disk images are stored, so it will reside on ROOT PS.

Web API changes

  • No new Apis are added
  • Add new parameter enableGoldenPs to API createStoragePoolupdateStoragePoolregisterTemplateupdateTemplate.
  • New parameter enableGoldenPs is added to listStoragePoolslistTemplates response.

...