Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for converting disks #600

Open
spameier opened this issue Oct 12, 2022 · 0 comments · May be fixed by #601
Open

Add support for converting disks #600

spameier opened this issue Oct 12, 2022 · 0 comments · May be fixed by #601
Labels
enhancement New feature or request

Comments

@spameier
Copy link

SUMMARY

The module ovirt_disk should be extended to support the conversion of disk from raw to qcow2 or vice-versa. This is possible in the latest oVirt version according to the API docs.

COMPONENT NAME

ovirt_disk

ADDITIONAL INFORMATION

The parameter format is already present but is only used when uploading files AFAIK. If this parameter is provided the module should check the format of the disk and if it's not in the desired format convert it by issuing a call to convert.

    - name: List disks
      ovirt_disk_info:
        pattern: vm_names=vm01
      register: disks
    - set_fact:
        disks: "{{ disks.ovirt_disks | map(attribute='id') }}" # extract disk ids
    - name: Configure Disks
      ovirt_disk:
        id: "{{ item }}"
        format: cow
      loop: "{{ disks }}"
  collections:
    - ovirt.ovirt
@spameier spameier added the enhancement New feature or request label Oct 12, 2022
@mnecas mnecas linked a pull request Oct 12, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant