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
SUMMARY
Add datacenter argument to vmware_vm_vm_drs_rule module
Code adjustments copy-pasted from vmware_vm_host_drs_rule module
Fixes#2101
ISSUE TYPE
Bugfix Pull Request
COMPONENT NAME
vmware_vm_vm_drs_rule
ADDITIONAL INFORMATION
Previously no datacenter could be provided. The result was that the module always tried to create/manage rules in the first cluster in vcenter that matches the name.
Now a datacenter name can be provided if nessessary.
Reviewed-by: Mario Lenz <[email protected]>
SUMMARY
the vmware_vm_vm_drs_rule has no argument to specify the target datacenter like for example the vmware_vm_host_drs_rule
this can lead to errors if the cluster_name is not unique within the vcenter.
ISSUE TYPE
COMPONENT NAME
vmware_vm_vm_drs_rule
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Target: vSphere 8.0.2
STEPS TO REPRODUCE
have a vcenter with multiple datacenters
have two clusters with the same name in different datacenters
create a vm_vm_drs_rule for each cluster
EXPECTED RESULTS
vm_vm_drs_rule rules get created
ACTUAL RESULTS
vm_vm_drs_rule for one of the clusters fail with message
Failed to find the virtual machine <<first_vm_name>> in the given cluster <<cluster_name>>
The text was updated successfully, but these errors were encountered: