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
but this /ovirt-engine/api/storagedomains/<id> endpoint does not show it.
We have to go through another endpoint to retrieve it : /ovirt-engine/api/datacenters/<id>/storagedomains and the ovirt.ovirt.ovirt_datacenter_info module does not show it like this endpoint.
VERSION
oVirt engine 4.3 and 4.4
Latest SDK Python (pip package)
Latest ovirt.ovirt collection
Ansible-core 2.12 (pip package)
Python 3.10
STEPS TO REPRODUCE
status attribute does not exist:
- name: "Fetch the datacenter name associated with {{ cluster }} cluster."ovirt.ovirt.ovirt_datacenter_info:
auth: "{{ ovirt_auth }}"pattern: "Clusters.name = {{ cluster }}"register: result_ovirt_datacenter_info
- name: Retrieve information about storage domainsovirt.ovirt.ovirt_storage_domain_info:
auth: "{{ ovirt_auth }}"pattern: "datacenter={{ result_ovirt_datacenter_info.ovirt_datacenters[0].name }}"fetch_nested: trueregister: result_ovirt_storage_domain_info
- ansible.builtin.debug:
var: result_ovirt_storage_domain_info.ovirt_storage_domains| selectattr('status', 'defined')| selectattr('status', 'equalto', 'active')
SUMMARY
Retrieve
status
attribute of Storage Domain.I need to know if a storage domain is under maintenance or not:
status
attribute contains the information sought.The
ovirt.ovirt.ovirt_storage_domain_info
module does not show thestatus
attribute.COMPONENT NAME
ovirt.ovirt.ovirt_storage_domain_info module
ADDITIONAL INFORMATION
The API document describes an endpoint to retrieve this information:
but this
/ovirt-engine/api/storagedomains/<id>
endpoint does not show it.We have to go through another endpoint to retrieve it :
/ovirt-engine/api/datacenters/<id>/storagedomains
and theovirt.ovirt.ovirt_datacenter_info
module does not show it like this endpoint.VERSION
STEPS TO REPRODUCE
status
attribute does not exist:status
attribute is present:EXPECTED RESULTS
Retrieve the
status
attribute of a Storage Domain as described in the API documentation.The text was updated successfully, but these errors were encountered: