-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Fix download retry when get_url has no status_code. #10613
Fix download retry when get_url has no status_code. #10613
Conversation
Hi @RomainMou. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Probably that's all it needs. |
@VannTen: changing LGTM is restricted to collaborators In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hello, from this code and here, we can see get_url_result will not have all attributes when
|
I must admit, I don't know why we don't just do something like |
Maybe @sathieu can provide some insights ? |
It wasn't use before the 304 stuff was added either: https://github.com/kubernetes-sigs/kubespray/pull/10452/files#diff-d53e3dc8dc33cc53fb013d9507a329cc7cadce6061d93ba648183bbd47906105L104 |
Ansible uses It seems that |
/ok-to-test |
Hello, Is there anything to do to move forward on this? |
/lgtm |
Thanks @RomainMou /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: RomainMou, yankay The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…10613) * Fix download retry when get_url has no status_code. * Fix until clause in download role.
…10613) * Fix download retry when get_url has no status_code. * Fix until clause in download role.
…10613) * Fix download retry when get_url has no status_code. * Fix until clause in download role.
* Fix download retry when get_url has no status_code. * Fix until clause in download role. Co-authored-by: Romain <[email protected]>
…10613) * Fix download retry when get_url has no status_code. * Fix until clause in download role.
What type of PR is this?
/kind bug
What this PR does / why we need it:
Sometime the return of
get_url
doesn't have astatus_code
, so we need to check if it's defined before we check its value to avoid an evaluation error.Which issue(s) this PR fixes:
Fixes #10494
Special notes for your reviewer:
Should be backported in 2.23, the bug is introduce in the new 2.23.1 version.
Does this PR introduce a user-facing change?: