-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Bugfix: proxmox_disk - read time out on import #5803
Bugfix: proxmox_disk - read time out on import #5803
Conversation
Docs Build 📝Thank you for contribution!✨ This PR has been merged and your docs changes will be incorporated when they are next published. |
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.
Code change looks good to me, as far as I can judge it. I'm wondering a bit whether this is more a feature or more a bugfix. In any case, I think it's better not to backport it to stable-5. I hope that's fine.
If nobody objects, I'll merge this in ~a week.
Backport to stable-6: 💚 backport PR created✅ Backport PR branch: Backported as #5881 🤖 @patchback |
* Use async calls and fix docs * Add changelog fragment (cherry picked from commit f38bfad)
@castorsky thanks for your contribution! |
SUMMARY
Use asynchronous
post()
API call for create actions instead of synchronousget()
.Fixes #5753 .
ISSUE TYPE
COMPONENT NAME
proxmox_disk
ADDITIONAL INFORMATION
There is no user friendly method to control
requests
timeout parameter from Ansible Playbook, so synchronousget()
API call returns "read timeout" after default amount of time (it is 5 seconds now and it was enough for my servers to copy 300MB between storages).Now the
proxmox_disk
module uses asyncronous calls and waits for tasks to finish (or reach timeout which can be controlled by the user).Documentation has also been updated.