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

Make user-space utility exit unsuccessfully when encountering errors #184

Closed
toreanderson opened this issue Nov 11, 2015 · 1 comment
Closed
Labels
Milestone

Comments

@toreanderson
Copy link
Contributor

I botched the upgrade to v3.4.0 on one of my BRs, getting the kernel module and the user-space utility out of sync. Therefore Jool ended up in an unconfigured state. The unfortunate thing is that the start-up scripts incorrectly believed that Jool was initialised just fine, and therefore proceeded to start up BIRD to advertise routes to the various IP pools to the rest of the network. This caused blackholing of traffic.

The problem would not have occurred if the user-space app had exited unsuccessfully when encountering any error.

$ /usr/bin/jool_siit -e 
Error: (Error code: 22)
  (empty)
$ echo $?
0
$ dmesg | tail -n 1
[  461.694810] SIIT Jool ERROR (validate_version): Version mismatch. The kernel module is 3.3.4.0, but the userspace application is 3.3.2.12. Please update Jool's userspace application.
@ydahhrk
Copy link
Member

ydahhrk commented Nov 11, 2015

Sorry :/

@ydahhrk ydahhrk added the Bug label Nov 11, 2015
@ydahhrk ydahhrk added this to the 3.4.1 milestone Nov 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants