Versions Compared

Key

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

...

Copying ISO to Primary Storage

 As secondary storage is less guaranteed to be highly available, we need to bring the generated ISO to Primary Storage. 
To do this we: 

  • extend DataObjectType with CONFIG_DRIVE.

  • Add copyConfigDriveToPrimaryStorage method to the StorageProcessor interface.
    Returning the path on primary storage in the response.

  • Implement added method in all StorageProcessors

  • Extend StorageSubsystemCommandHandlerBase.execute(CopyCommand cmd) to support DataObjectType.CONFIG_DRIVE

  • Add ConfigDriveObject class and ConfigDriveInfo interface.

  • Extend storage system to support calling copyAsync passing a ConfigDriveObject.

  • Add a service method to send the copyAsync, and wait until iso until ISO is ready.

Call the new service method, after generating the ISO.
And as part of prepare migration, to make sure the ISO is available on the target host.

...

At VM start the config drive ISO is attached on 2nd cdrom cd rom drive of the user instance, such that any other iso image (e.g. boot image or vmware tools) gets mounted on 1st cd/dvd drive.
This means existing functionality of supporting 1 cdrom cd rom drive is still available.

...