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

Zebra rtadv use without init #15582

Merged
merged 2 commits into from
Apr 10, 2024

Conversation

donaldsharp
Copy link
Member

  1. Ensure that generate_support_bundles doesn't crash the run
  2. Cleanup a sendmsg call that sent down uninited data.

@vjardin
Copy link
Contributor

vjardin commented Mar 20, 2024

LGTM : I am surprised that gcc/clang did not yell about it.

@donaldsharp
Copy link
Member Author

it does. We are not compiling in CI with --enable-werror as we should at this point in time. Something we have been working towards.

Copy link
Member

@ton31337 ton31337 left a comment

Choose a reason for hiding this comment

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

A couple of nits regarding the log level for errors/warnings.

@@ -936,14 +936,26 @@ def generate_support_bundle():
"""

tgen = get_topogen()
if tgen is None:
logger.info(
Copy link
Member

Choose a reason for hiding this comment

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

And here logger.warn() maybe?

Copy link
Member Author

Choose a reason for hiding this comment

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

sure

)
rnode.run("mkdir -p " + dst_bundle)
except Exception as err:
logger.info("Generation of Support bundle failed {}".format(err))
Copy link
Member

Choose a reason for hiding this comment

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

Probably this should be logger.error()?

Copy link
Member Author

Choose a reason for hiding this comment

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

sure

valgrind is complaining about this problem.
This fixes it.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
The Support bundle generation was/is failing in both
our upstream ci and locally.  This cleans up the failures
that I am seeing such that tests now continue to run
instead of aborting the test run.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
@frrbot frrbot bot added tests Topotests, make check, etc zebra labels Apr 10, 2024
@ton31337 ton31337 merged commit 3d3f968 into FRRouting:master Apr 10, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
master size/S tests Topotests, make check, etc zebra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants