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

lxd: Fix incorrect network device attach warnings #12939

Merged
merged 3 commits into from Feb 22, 2024

Conversation

tomponline
Copy link
Member

The PR #12754 introduced a commit 011affc which incorrectly started logging warnings if networkAutoAttach wasn't able to find a matching network for the network device.

This is incorrect because the majority (possibly all) of new network devices that appear on a system won't be candidates for auto attach. In fact only if a bridge network specifies bridge.external_interface will this be potentially relevant.

So this was causing lots of log noise unnecessarily.

However the old implementation also didn't differentiate between a "not found" DB error and a problem performing the query (which we should log about) so this PR fixes those issues.

…GetNetworkWithInterface

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
Copy link
Contributor

@roosterfish roosterfish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@roosterfish
Copy link
Contributor

Any idea from where the pipeline failures are coming from? I checked main and saw them there too.

@tomponline
Copy link
Member Author

Any idea from where the pipeline failures are coming from? I checked main and saw them there too.

We know microceph is broken ATM and there seems to be an issue with go tip that started last night.

@tomponline tomponline merged commit 1a07184 into canonical:main Feb 22, 2024
23 of 27 checks passed
@tomponline tomponline deleted the tp-network-attach branch February 22, 2024 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants