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

Do not try to use invalid network config #3940

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

milan-zededa
Copy link
Contributor

Even if zedagent detects invalid network config and reports DPC with error, NIM may still try to use it, run connection tests and overwrite the error with another or even with nil.
Instead, NIM should skip mgmt ports with invalid config and preserve the error (incl. across reboots).
Similarly, DPC reconciler should not try to apply invalid config into the network stack.
Additionally, diag was extended to report when port config is not valid.
Lastly, readability of some parsing error messages was improved.

@eriknordmark
Copy link
Contributor

Is this a bug fix which needs to be backported to stable releases?

@milan-zededa milan-zededa added the stable Should be backported to stable release(s) label May 27, 2024
@milan-zededa
Copy link
Contributor Author

Is this a bug fix which needs to be backported to stable releases?

Yes, I added the stable label.

Even if zedagent detects invalid network config and reports DPC with
error, NIM may still try to use it, run connection tests and overwrite
the error with another or even with nil.
Instead, NIM should skip mgmt ports with invalid config and preserve the
error (incl. across reboots).
Similarly, DPC reconciler should not try to apply invalid config into
the network stack.
Additionally, diag was extended to report when port config is not valid.
Lastly, readability of some parsing error messages was improved.

Signed-off-by: Milan Lenco <milan@zededa.com>
Copy link
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

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

LGTM

@eriknordmark eriknordmark merged commit 2beb07e into lf-edge:master Jun 11, 2024
23 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stable Should be backported to stable release(s)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants