Skip to content
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

RBAC Manager not logging errors or early termination #73

Open
tklovett opened this issue Aug 5, 2019 · 2 comments
Open

RBAC Manager not logging errors or early termination #73

tklovett opened this issue Aug 5, 2019 · 2 comments
Assignees
Labels
bug Something isn't working pinned Prevents stalebot from removing

Comments

@tklovett
Copy link

tklovett commented Aug 5, 2019

We've now run into two failure scenarios during rbac-manager's Reconciliation run where it failed to log anything relevant to:

  • an error occurred
  • a resource could not be created
  • following resources in the same RBACDefinition were skipped
  • reconciliation terminated, and terminated early.

For example, the log output would end with

$ kubectl logs -n rbac-manager rbac-manager-7b499c48b6-tjzj8
time="2019-08-05T19:37:37Z" level=info msg=----------------------------------
time="2019-08-05T19:37:37Z" level=info msg="rbac-manager 0.7.0 running"
time="2019-08-05T19:37:37Z" level=info msg=----------------------------------
...
time="2019-08-05T19:54:18Z" level=info msg="Reconciling RBACDefinition my-rbac-definition"
$ kubectl ...

And no reference to error scenarios, for example:

My go fu is limited, but I think the Reconciler itself may have and return a useful err here, but the wrapping code does nothing with it here. Though I'm surprised I was seeing no error output from this code...

@sudermanjr sudermanjr added the bug Something isn't working label Sep 27, 2019
@sudermanjr sudermanjr self-assigned this Sep 27, 2019
@sudermanjr
Copy link
Member

I think we should go ahead and move to the klog package and add logging levels with a lot more output at the higher levels. A general pass over the logging could be really good here.

sudermanjr pushed a commit that referenced this issue Oct 7, 2019
@stale
Copy link

stale bot commented Dec 3, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Marked as stale by stalebot label Dec 3, 2019
@lucasreed lucasreed added the pinned Prevents stalebot from removing label Dec 3, 2019
@stale stale bot removed the stale Marked as stale by stalebot label Dec 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pinned Prevents stalebot from removing
Projects
None yet
Development

No branches or pull requests

3 participants