The lun list for host details returned by the host module has not been implemented yet. Unfortunately the only valid information returned for a host is in these fields:
id: The system ID given to the host name: The name of the host. description: Description about the host. fc_host_initiators: Details of the FC initiators associated with the host iscsi_host_initiators: Details of the ISCSI initiators associated with the host os_type: Operating system running on the host. type: HostTypeEnum of the host.
The extra fields with the hash value are being returned based on the mechanism used to get information from the underlying Python SDK.
As a possible workaround here are a couple of options that I found…
You could use the gather facts and volumes modules to get a list of volumes and then interrogate each for the list of attached hosts.
Another option is the use the Unity Python SDK directly (storops). This is the same SDK used by the ansible modules. Using it directly would let you traverse the model it contains one more level further down compared to the Ansible host module and then you would have the LUN name and other data.
I have discussed this with our product manager and we will hopefully see the additional functionality included in a release soon.
bmcfeeters
1 Rookie
•
72 Posts
1
February 11th, 2021 12:00
Hi Resnik066,
The lun list for host details returned by the host module has not been implemented yet. Unfortunately the only valid information returned for a host is in these fields:
id: The system ID given to the host
name: The name of the host.
description: Description about the host.
fc_host_initiators: Details of the FC initiators associated with the host
iscsi_host_initiators: Details of the ISCSI initiators associated with the host
os_type: Operating system running on the host.
type: HostTypeEnum of the host.
The extra fields with the hash value are being returned based on the mechanism used to get information from the underlying Python SDK.
As a possible workaround here are a couple of options that I found…
I have discussed this with our product manager and we will hopefully see the additional functionality included in a release soon.
thanks
Bryan
Resnik066
9 Posts
0
February 16th, 2021 09:00
Thanks for the clarification, I hope this funtionality is added on new releases.