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

Upload local image to disk and attach it to a VM does not work. #360

Open
mmartinv opened this issue Oct 11, 2021 · 0 comments
Open

Upload local image to disk and attach it to a VM does not work. #360

mmartinv opened this issue Oct 11, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@mmartinv
Copy link
Contributor

mmartinv commented Oct 11, 2021

SUMMARY

Upload local image to disk and attach it to a VM does not work.
This is reproducible by using ovirt-engine 4.4.9.1-1.el8 version

COMPONENT NAME

ovirt_disk

STEPS TO REPRODUCE

Create a VM, upload a local image to a disk and attach it to the VM as described at the official documentation:

# Upload local image to disk and attach it to vm:
# Since Ansible 2.3
- ovirt.ovirt.ovirt_disk:
    auth: "{{ ovirt_auth }}"
    name: mydisk
    vm_name: myvm
    interface: virtio
    bootable: true
    size: 10GiB
    format: cow
    image_path: /path/to/mydisk.qcow2
    storage_domain: data
EXPECTED RESULTS

The local image is correctly uploaded to the disk and attached to the VM

ACTUAL RESULTS
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ovirtsdk4.Error: Fault reason is "Operation Failed". Fault detail is "[Cannot attach Virtual Disk: Disk is locked. Please try again later.]". HTTP response code is 409.
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Fault reason is \"Operation Failed\". Fault detail is \"[Cannot attach Virtual Disk: Disk is locked. Please try again later.]\". HTTP response code is 409."}
@mmartinv mmartinv added the bug Something isn't working label Oct 11, 2021
@mnecas mnecas assigned barpavel and unassigned mnecas Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants