Closed mainline-automation closed 11 months ago
You'll need to mention another parameter as below (where volumename is actual volume's name for which you want hosts) because objectname is mandatory for vdiskhostmap.
So, playbook task would like below:
- name: Collect information for specific vdiskhostmap
ibm.storage_virtualize.ibm_svc_info:
clustername: "{{ clustername }}"
gather_subset: vdiskhostmap
objectname: volume0
username: xxxxx
password: xxxxxxx
Definitely, an improvement area is, to declare task as failed and show failure message when objectname is required but not provided. We'll work on that.
@mainline-automation , I hope this resolves your issues. Please let us know if this there is anything else required, otherwise this issue will be closed by Friday 22nd December, 2023.
Thank you. Would be good to have an error message beyond null but that resolves it.
@mainline-automation, the fix (to enforce mandatory parameter) is identified. It will be available in the next release (i.e. ibm.storage_virtualize 2.3.0) in March 2024.
SUMMARY
Using ibm_svc_info with the vdiskhostmap subset returns null as the only response
ISSUE TYPE
COMPONENT NAME
ibm_svc_info.py
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
RHEL 9.2 IBM Storwize V7000 model 724, version 8.5.0.9 Ansible Automation Platform 2.4
STEPS TO REPRODUCE
Run ibm_svc_info using vdiskhostmap as the subset
EXPECTED RESULTS
I would expect to get something other than null about vdisks host mappings
ACTUAL RESULTS