Closed mdhowle closed 2 weeks ago
This is a v3 API bug as the same results happen with direct v3 REST API calls
This is an existing bug in v3 which needs to be fixed from Prism Central v3 API team. Closing this for now since its not the ansible provider bug.
Is this bug being tracked upstream? Do I need to open a ticket with Nutanix?
Yes there is bug logged with engineering team for this two v3 apis. I expect the fix to come with v4 API.
Thanks for the update!
Describe the bug When using ntnx_clusters_info and applying a filter of
name: CLUSTERNAME
, all clusters are returned when only CLUSTERNAME should be returnedSimilarly, when using ntnx_hosts_info and applying a filter of
cluster_name: CLUSTERNAME
, all hosts are returned when only hosts in the CLUSTERNAME cluster should be returned.However, ntnx_vms_info with a filter
cluster_name: CLUSTERNAME
, returns only those VMs hosted within the CLUSTERNAME cluster.To Reproduce Steps to reproduce the behavior:
ansible-playbook -i localhost, -c local playbook.yml
Expected behavior For ntnx_clusters_info, it should only return the one cluster that matched the cluster name given in the filter.
For ntnx_hosts_info, it should return a list of hosts that matched the cluster name given in the filter.
Additional context This may be similar to #374 with a different module and using custom_filter.
This occurs in both nutanix.ncp versions 1.9.0 and 1.9.1