-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make vmware_guest honor "wait_for_ip_address" when powering on a VM #45226
Conversation
Signed-off-by: Harald Albers <github@albersweb.de>
Hi @albers, Thank you for the pullrequest, just so you are aware we have a dedicated Working Group for vmware. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @albers - I have tested on 6.7 and works fine for me.
@Akasurde Can we get this one into the 2.7 release, please? |
@albers I already did - #45540 (comment) |
Thanks! |
@Akasurde Can we please, please get this one into 2.7? |
Ok, just removing the comment, i must be tired :). Missed that it didn't yet make it. @Akasurde will have to cherry-pick, if that is still allowed for 2.7 |
) Signed-off-by: Harald Albers <github@albersweb.de> (cherry picked from commit a9c829b)
@albers @pdellaert PR for Stable-2.7 #46248 |
Signed-off-by: Harald Albers <github@albersweb.de> (cherry picked from commit a9c829b)
SUMMARY
Fixes #45223
It turned out that the
vmware_guest
module does not check for ip availability at all in thedesired_operation='set_vm_power_state'
case.This PR adds a call to
wait_for_vm_ip
in the same manner as done in vmware_dploy_ovf.ISSUE TYPE
COMPONENT NAME
vmware_guest
ANSIBLE VERSION
ADDITIONAL INFORMATION
The return value's
instance
value is updated with the last poll result so that the IP is also available in the module's return value.This module now uses the same shared function
wait_for_vm_ip
asvmware_deploy_ovf
does, so it is inherently affected by #45159. As the undetected timeout occurs after 5 minutes, this should not be a big issue in this context.