You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to import a storage domain on a host I'm rebuilding.
When running the ansible playbook, it doesn't appear to be even attempting it as the error is referencing a missing name parameter for add.
Domain imports successfully or at least gives an error relevant to importing a storage domain rather than adding.
I'm able to import through the oVirt UI without issues
TASK [Import storage domain] *************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ovirtsdk4.Error: Fault reason is "Incomplete parameters". Fault detail is "StorageDomain [name] required for add". HTTP response code is 400.
fatal: [hostname.domain.local -> localhost]: FAILED! => {"changed": false, "msg": "Fault reason is \"Incomplete parameters\". Fault detail is \"StorageDomain [name] required for add\". HTTP response code is 400."}
Adding a name parameter, caused it to fail at import (as there is an existing domain present).
TASK [Import storage domain] ******************************************************************
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 "[Error in creating a Storage Domain. The selected storage path is not empty (probably contains another Storage Domain). Either remove the existing Storage Domain from this path, or change the Storage path).]". HTTP response code is 400.
fatal: [hostname.domain.local -> localhost]: FAILED! => {"changed": false, "msg": "Fault reason is \"Operation Failed\". Fault detail is \"[Error in creating a Storage Domain. The selected storage path is not empty (probably contains another Storage Domain). Either remove the existing Storage Domain from this path, or change the Storage path).]\". HTTP response code is 400."}
The text was updated successfully, but these errors were encountered:
SUMMARY
Hi, I'm trying to import a storage domain on a host I'm rebuilding.
When running the ansible playbook, it doesn't appear to be even attempting it as the error is referencing a missing name parameter for add.
COMPONENT NAME
ovirt_storage_domain: Import existing storage domain.
Running;
STEPS TO REPRODUCE
Attempt to import a storage domain.
Here is the existing directory I'm trying to import as storage domain.
Here's the play;
EXPECTED RESULTS
Domain imports successfully or at least gives an error relevant to importing a storage domain rather than adding.
I'm able to import through the oVirt UI without issues
ACTUAL RESULTS
Task fails referencing a missing parameter for Add.
Documentation references that name isn't required for state imported.
https://docs.ansible.com/ansible/latest/collections/ovirt/ovirt/ovirt_storage_domain_module.html#parameter-name
Adding a name parameter, caused it to fail at import (as there is an existing domain present).
The text was updated successfully, but these errors were encountered: