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

🐛 Log node updates with a normal logger #1420

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

dtantsur
Copy link
Member

No description provided.

These updates are pretty critical and very hard to track otherwise.
@metal3-io-bot metal3-io-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Oct 31, 2023
@dtantsur
Copy link
Member Author

/test-centos-e2e-integration-main
/test-ubuntu-integration-main

@zaneb
Copy link
Member

zaneb commented Nov 1, 2023

This is going to get pretty chatty. Every single bit of data we write to ironic will get logged. I'm not sure we want that.
I would support adding a separate -debug CLI flag so that the level can be set independently of the other side effects of the -dev flag (which also disables structured logging).

@dtantsur
Copy link
Member Author

dtantsur commented Nov 1, 2023

This is going to get pretty chatty. Every single bit of data we write to ironic will get logged. I'm not sure we want that.

Yes, we absolutely do want that. This is much less chatty that the stuff we already log. If you take a look at what we log, you'll see what I mean. The reason for proposing this patch is a bug where BMO gets stuck trying to update deploy_interface on an externally provisioned node - an operation that just should not happen, but it does, and I don't even know what the values are. So, while I support the idea of having the debug flag, this is one of the first things that must never be covered by it.

@dtantsur
Copy link
Member Author

dtantsur commented Nov 1, 2023

Here are some numbers from the recent run:

$ grep "option data" ~/Work/stdout.log | wc -l
85

which may seem a lot, but it's less than 4% of all messages. For contrast:

$ grep "registering and validating access" ~/Work/stdout.log | wc -l
175
$ grep controllers.BMCEventSubscription ~/Work/stdout.log | wc -l
134

... and the CI does not even use BMC subscriptions!

@elfosardo
Copy link
Member

/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label Nov 2, 2023
@zaneb
Copy link
Member

zaneb commented Nov 3, 2023

/approve

@metal3-io-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: zaneb

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@metal3-io-bot metal3-io-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 3, 2023
@metal3-io-bot metal3-io-bot merged commit 86d3933 into metal3-io:main Nov 3, 2023
10 checks passed
@dtantsur dtantsur deleted the update-logger branch November 3, 2023 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants