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 forget to report error severity #3843

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

milan-zededa
Copy link
Contributor

@milan-zededa milan-zededa commented Apr 4, 2024

For network instances, network connectivity testing and IO bundle processing we do not really use different error severity levels at the moment. For any encountered issue we simply report an error message up to zedagent and further to the controller. However, zedagent forgets to set the severity to "error" and leaves it as unspecified. This may have unwanted effect on how the error message is treated/displayed by the controller.

Later, we could improve this and use different severity levels also for connectivity testing. For example, longer the port connectivity is down, the more severe the error reported would be (i.e. we do not immediately report failed connectivity test as "error" but start with e.g. "warning").

For network instances, network connectivity testing and IO bundle
processing we do not really use different error severity levels
at the moment.
For any encountered issue we simply report an error message up to
zedagent and further to the controller. However, zedagent forgets
to set the severity to "error" and leaves it as unspecified.
This may have unwanted effect on how the error message is
treated/displayed by the controller.

Later, we could improve this and use different severity levels also
for connectivity testing. For example, longer the port connectivity
is down, the more severe the error reported would be.

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

codecov bot commented Apr 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 17.51%. Comparing base (8ff4729) to head (177f0aa).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3843   +/-   ##
=======================================
  Coverage   17.51%   17.51%           
=======================================
  Files           3        3           
  Lines         805      805           
=======================================
  Hits          141      141           
  Misses        629      629           
  Partials       35       35           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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
There are probably also other places in pillar where we don't set this

@eriknordmark eriknordmark merged commit 18f3de1 into lf-edge:master Apr 8, 2024
49 of 62 checks passed
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.

4 participants