Skip to content

Allow storage vmotion to change disk type #880

Open
@aspeer06

Description

@aspeer06
SUMMARY

Allow a storage vmotion to modify the disk type. This would help alleviate fallout from the thicklazyzero bug.
ansible version: 2.9.18

ISSUE TYPE

Modify community.vmware.vmware_vmotion to accept a disk provisioning type of thin, thick, or thickeagerzeroed

COMPONENT NAME

vmware_vmotion.py

ADDITIONAL INFORMATION

It would be nice to be able to script changing thin disks to thick or vice versa after the fact using ansible instead of spawning off to a mess of powercli

- name: Perform storage vMotion of of virtual machine
  community.vmware.vmware_vmotion:
    hostname: '{{ vcenter_hostname }}'
    username: '{{ vcenter_username }}'
    password: '{{ vcenter_password }}'
    vm_name: 'vm_name_as_per_vcenter'
    destination_datastore: 'destination_datastore_as_per_vcenter'
    type: thickeagerzeroed
  delegate_to: localhost

Metadata

Metadata

Assignees

No one assigned

    Labels

    cloudmodulemoduleneeds_infoThis issue requires further information. Please answer any outstanding questionsneeds_templateThis issue/PR has an incomplete description. Please fill in the proposed template correctlyneeds_triageNeeds a first human triage before being processed.pluginsplugin (any type)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions