-
Notifications
You must be signed in to change notification settings - Fork 463
Bug 2045866: Set proper InvolvedObject when using library-go EventRecorder #2893
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
Conversation
|
@mkenigs: This pull request references Bugzilla bug 2034364, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Bugzilla ([email protected]), skipping review request. DetailsIn 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. |
|
@soltysh do I have to have a different recorder for every kind like this? |
theoretically - yes, but I'd suggest creating a single recorder and link that only with deployment and not with every possible resource. |
pkg/operator/operator.go
Outdated
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.
This is wrong, you're hardcoding APIVersion and you're using newRecorder for kinds outside apps/v1 group. As mentioned elsewhere, I'd suggest creating a single recorder tied with just the MCO deployment, which should be sufficient.
So would you suggest passing an empty recorder in instances like https://github.com/openshift/machine-config-operator/pull/2893/files#diff-3e205577bec1a1d1711df8bfeff30e63f044b24cfbdc69bbd7d0052fdc881891L382 (where we need a recorder for a Or am I misunderstanding and I can set the recorder's kind to |
|
@mkenigs I was suggesting one recorder pointing to MCO deployment and use that in most places, if not all. |
|
@mkenigs: This pull request references Bugzilla bug 2045866, which is invalid:
Comment DetailsIn 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. |
|
/bugzilla refresh |
|
@mkenigs: This pull request references Bugzilla bug 2045866, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Bugzilla ([email protected]), skipping review request. DetailsIn 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. |
|
/retest-required |
|
/test e2e-aws |
yuqi-zhang
left a comment
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.
Tentatively approving the general code, some questions/concerns:
So looking at gcp-op (install cluster, run MCO e2e) it looks like we do have some additional event logging at the beginning that fail due to waiting for apiserver https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/origin-ci-test/pr-logs/pull/openshift_machine-config-operator/2893/pull-ci-openshift-machine-config-operator-master-e2e-gcp-op/1486006930555015168/artifacts/e2e-gcp-op/gather-extra/artifacts/pods/openshift-machine-config-operator_machine-config-operator-69c597d945-66st6_machine-config-operator.log
Which seems fine since it does eventually resolve (and just log the pool syncs later). It is still a bit noisy but better than before. I assume those events are normal?
theoretically - yes, but I'd suggest creating a single recorder and link that only with deployment and not with every possible resource.
I'm not the most familiar with how this works out. In the MCO we currently use the recorder when applying:
- secrets
- clusterrole
- rolebinding
- clusterrolebinding
And interestingly not the daemonset/deployment since we still use MCO code which do not invoke the recorder yet. @soltysh are you saying that with the singular hardcoded Deployment recorder we can cover all of the above cases?
Currently we're getting the error: Error creating event &Event... Event ".16c2ed25cd8773b4" is invalid: involvedObject.namespace: Invalid value: "": does not match event.namespace Related to Bug 2034364, overlooked in openshift#2833
|
@mkenigs: This pull request references Bugzilla bug 2045866, which is valid. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Bugzilla ([email protected]), skipping review request. DetailsIn 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. |
|
Given that:
Going to go ahead and lgtm so we can try to herd this past CI before code freeze. We can follow up on whether we should be creating different recorders per-object type as a follow up. /lgtm |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
6 similar comments
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
7 similar comments
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/test e2e-agnostic-upgrade |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
5 similar comments
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
@mkenigs: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. I understand the commands that are listed here. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
2 similar comments
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
@mkenigs: All pull requests linked via external trackers have merged: Bugzilla bug 2045866 has been moved to the MODIFIED state. DetailsIn 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. |
Currently we're getting the error:
Error creating event &Event...
Event ".16c2ed25cd8773b4" is invalid: involvedObject.namespace: Invalid value: "": does not match event.namespace
Related to Bug 2034364, overlooked in
#2833
Replaces #2891