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
salt minion won't start: Non valid IP address match on BSD alias format #29833
Comments
@iMilnb, thanks for the report. What version of salt are you using? |
@jfindlay salt 2015.8.3 |
I'm not a FreeBSD user, so forgive my ignorance, but I'm not seeing that same output from
I see ifconfig output like this:
Salt's utility functions seem to have no problem with this:
Where am I going wrong here? |
@cachedout seems like FreeBSD does not indicate if an IP address is an alias or not. In NetBSD we have the following:
Obviously FreeBSD != NetBSD. Don't know how OpenBSD shows it. I can confirm I have the same behaviour while using salt functions:
|
A simple fix consists in replacing:
with:
in |
@iMilnb Would you like to send that change over as a PR? We can run the test suite on it and see how things go. |
As suggested by @iMilnb regex updated. The other way around is fix this would be to use the same approach as for Solaris systems adding a elif statement when system is OpenBSD. Fixes saltstack#29833.
Fixed by #30124. Closing. |
While starting a minion on NetBSD with a couple of IP aliases (will probably happen on FreeBSD and OpenBSD in this scenario) I get the following traceback:
This error probably comes from the fact that BSD IP aliases are shown this way:
The text was updated successfully, but these errors were encountered: