-
Notifications
You must be signed in to change notification settings - Fork 339
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
vmware_guest failing after moving to ubuntu/noble and python/3,12 #2142
Comments
This was deprecated in python 3.7. see https://docs.python.org/3/whatsnew/3.12.html Remove the ssl.wrap_socket() function, deprecated in Python 3.7: instead, create a ssl.SSLContext object and call its ssl.SSLContext.wrap_socket method. Any package that still uses ssl.wrap_socket() is broken and insecure. The function neither sends a SNI TLS extension nor validates the server hostname. Code is subject to CWE-295 (Improper Certificate Validation). (Contributed by Victor Stinner in gh-94199.) |
@mariolenz I could look but need more details. I fixed the common functions in And if you look closely at the trace, you can see that the error occurs when calling pyvmomi. It looks like the topicstarter needs to update pyvmomi and try to reproduce the problem again. Look on this strings:
|
@jayvee1211 👆🏻 |
Good point! Sorry I didn't realize this at first, but you're right: Looks like a problem in pyvmomi and not in our code. It looks like there as been an issue (vmware/pyvmomi#1057) about this which has been fixed only recently. @jayvee1211 Could you please test again with the latest pyvmomi version? I'm not 100% sure if it's fixed there, but it looks like it. |
Thank you for your comments. |
SUMMARY
After updating our bamboo agent docker container to ubuntu noble which also moved python from 3.11 to 3.12, community.vmware.vmware_guest fails the the error:
ISSUE TYPE
COMPONENT NAME
community.vmware.vmware_guest
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
docker container atlassian/bamboo-agent-base:9.6.5 (ubuntu noble)
STEPS TO REPRODUCE
Running code that has been working for a long time, but stopped working after updating to ubuntu noble/python3.12
EXPECTED RESULTS
Create a VM in vCenter
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: