-
Notifications
You must be signed in to change notification settings - Fork 399
vpp: T8080: Fix handling of configuration system lock after vpp commit failure #4904
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
base: current
Are you sure you want to change the base?
Conversation
|
👍 |
|
VPP restarts properly after commit failure, no 'commit in progress' exception occurs |
zdc
left a comment
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.
For me, this change looks correct, except I would probably not use bare Exception here, to avoid catching all possible exceptions in the code after.
|
@zdc Changed |
Better, but I would prefer a custom exception for this case, if you wish to use an exception. Check an example: https://github.com/natali-rs1985/vyos-1x/blob/e2513d5f88b632fef16f9188acd7e6dc860a3512/python/vyos/base.py#L65 |
|
CI integration 👍 passed! Details
|
dmbaturin
left a comment
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 logic seems correct, and the concern about using a dedicated exceptions is addressed.
| __all__ = ['VPPControl'] | ||
|
|
||
|
|
||
| class VppNotRunningError(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.
Should there be a hierarchy of VPP exceptions now? I'll need to check what else we can add there.
Change summary
Types of changes
Related Task(s)
Related PR(s)
vyos/vyatta-cfg#120
How to test / Smoketest result
VPP service restarts correctly after error in commit:
Checklist: