-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Adding context timeout for Ansible proxy #2264
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
Adding context timeout for Ansible proxy #2264
Conversation
@camilamacedo86: This pull request references Bugzilla bug 1701041, which is invalid:
Comment 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. |
@camilamacedo86 @shawn-hurley @fabianvf The BZ for this issue was verified and closed over a month ago. Is this PR an improvement on that fix, or should the BZ be re-opened? |
@joelanford I understand that the Bugzilla was closed because automatically when we close the PR #1638 and carry on @shawn-hurley code here. |
Will this PR be made obsolete (or at least much simpler) with kubernetes-sigs/controller-runtime#663? EDIT: Looking at that other PR closer, I think it is required to be merged before my suggestion will work. |
Hi @joelanford, Sorry, your comment #2264 (comment) is not clear.
What do you mean with |
@camilamacedo86: This pull request references Bugzilla bug 1701041, which is invalid:
Comment 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. |
@camilamacedo86: No Bugzilla bug is referenced in the title of this pull request. 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. |
Hi @joelanford and @fabianvf, I think that all is properly addressed now. Could you please check this one? |
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.
Sorry one more suggestion, I skipped right past this the first time around! LGTM after addressing it.
# release notes and/or the migration guide | ||
entries: | ||
- description: > | ||
Fix issue by adding proxy timeout for the Ansible based-operators to add error conditional status properly when the operator has not the required permissions (RBAC) to perform the operations. |
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.
Just a little cleanup to provide more clarity about the fix.
Fix issue by adding proxy timeout for the Ansible based-operators to add error conditional status properly when the operator has not the required permissions (RBAC) to perform the operations. | |
Added timeout to child resource watches for Ansible based-operators. This is necessary to avoid blocking the reconciler when the operator does not have the required RBAC permissions to list and watch the child resource. |
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.
Hi @joelanford
The reconcile was NOT blocked before this fix. (Just missing the status.conditions
)
Applied your suggestion with a small change to clarifies it.
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.
Maybe something like Added timeout to the Ansible Operator proxy, which enables error reporting for requests that fail due to RBAC permissions issues
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.
very good :-)
# release notes and/or the migration guide | ||
entries: | ||
- description: > | ||
Added timeout to the Ansible based-operator proxy, which enables error reporting for requests that fail due to RBAC permissions issues to List and Watch the resources. |
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.
@fabianvf done
/cherry-pick v0.17.x |
@estroz: new pull request created: #3025 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. |
Description of the change:
Add timeout in the watch feature for Ansible based-operators proxy to avoid appears that the reconcile is stuck and hang when the operator has not the correct permissions to List and Watch the resources.
Motivation for the change:
Note
Also, solved by kubernetes-sigs/controller-runtime#663.
Steps to test it locally
PS.: The tests made to verify this fix was by removing the deployment permission.