-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
tests: catch exception during switch shutdown #15903
Conversation
What does it solve here, and why only ospfX? |
Hi Donatas Abraitis, Thanks for the review !! During the session cleanup, I mean at stop_topology(), there are cases where mininet tries to stop the switch eventhough switch is stopped at once. Initially , I have started with ospfX module. Going forward, I will do the same change across all the modules. So, I felt doing module by module changes would be a wise option. Thanks & Regards, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bharath thanks for the efforts.
Looks good for Me.
Keep continue for other modules as well.
But... maybe this should be handled globally inside the libs ( |
ed126f7
to
7d0be2a
Compare
Hi Donatas Abraitis, Addressed review comment. Regards, |
c597145
to
060fd05
Compare
060fd05
to
5fe0c59
Compare
63de896
to
88a8bc5
Compare
except OSError: | ||
# OSError exception is raised when mininet tries to stop switch | ||
# though switch is stopped once but mininet tries to stop same | ||
# switch again, where it ended up with exception |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we log something also in such a case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we log something also in such a case?
Hi Donatas Abraitis,
Addressed review comment.
Thank you.
Regards,
Bharath
88a8bc5
to
9080722
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Squash two commits into a single one (they are a single change here).
9080722
to
94112e2
Compare
Hi Donatas Abraitis, Squashed two commits into a single one. Regards, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
looks relevant
|
@ton31337 ping ... :-) |
ci started 27 days ago ... seems hung? ci:rerun |
94112e2
to
98146c2
Compare
@riw777, Thanks, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR title and description don't match the actual changes. Could you please update that? Something like "catch exception during switch shutdown", and note that it's a library change, not changes to any specific test suites.
tests/topotests/lib/topogen.py
Outdated
logger.info(error) | ||
logger.info( | ||
"Exception is raised when mininet tries to stop switch" | ||
"though switch is stopped once but mininet tries to stop same switch again." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this could be simpler - how about: "Exception ignored: switch is already stopped"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this could be simpler - how about: "Exception ignored: switch is already stopped"
Hi Mark Stapp,
Modified the title of the PR and log description.
Thanks & Regards,
Bharath
5268df0
to
1d23f2b
Compare
Signed-off-by: y-bharath14 <[email protected]>
ecf8b71
to
5118fd1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good to me
Handling exception at topogen library
OSError exception is raised when mininet tries to stop switch though switch is stopped once but mininet tries to stop same switch again, where it ended up with exception