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
When there's a problem with the domain membership of a host, the module always reports a change but doesn't do anything (lines 160ff).
We ran into this issue when we accidentally removed the computer account of an existing ESXi host. Our playbook reported changing the AD membership over and over again which was a bit weird. After all, after the first change I'd expect an OK on all later runs.
Join an ESXi host to AD, remove the computer account and run the task to join AD several times. It always reports changed but nothing happens.
EXPECTED RESULTS
I'm not sure... there are so many different problems that can occur (clientTrustBroken, inconsistentTrust, noServers, serverTrustBroken or even otherProblem or unknown) that it's probably impossible to deal with them. Maybe the module should simply fail in these cases with an appropriate error message. Something like "The ESXi host seems to be an AD member but reports an unkown problem". This would make it pretty obvious that manual troubleshooting is needed.
ACTUAL RESULTS
The module reports a change but doesn't do anything.
The text was updated successfully, but these errors were encountered:
SUMMARY
When there's a problem with the domain membership of a host, the module always reports a
change
but doesn't do anything (lines 160ff).We ran into this issue when we accidentally removed the computer account of an existing ESXi host. Our playbook reported changing the AD membership over and over again which was a bit weird. After all, after the first change I'd expect an
OK
on all later runs.ISSUE TYPE
COMPONENT NAME
vmware_host_active_directory
ANSIBLE VERSION
CONFIGURATION
STEPS TO REPRODUCE
Join an ESXi host to AD, remove the computer account and run the task to join AD several times. It always reports
changed
but nothing happens.EXPECTED RESULTS
I'm not sure... there are so many different problems that can occur (
clientTrustBroken
,inconsistentTrust
,noServers
,serverTrustBroken
or evenotherProblem
orunknown
) that it's probably impossible to deal with them. Maybe the module should simply fail in these cases with an appropriate error message. Something like "The ESXi host seems to be an AD member but reports anunkown
problem". This would make it pretty obvious that manual troubleshooting is needed.ACTUAL RESULTS
The module reports a change but doesn't do anything.
The text was updated successfully, but these errors were encountered: