-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
default network example does not work on RHEL #58
Comments
I had to, manually, remove GATEWAY setting in /etc/sysconfig/network-scripts/ifcfg-ethX - and then the default network_route works as expected. Oddly enough, the other routes now works as well:
(I rebooted once more). |
Thanks for reporting this! Looking at https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/s1-networkscripts-static-routes.html , it seems like the format for the routes should be valid; if I'm understanding you correctly then the routes did start working? The documentation also says that you can add a default route of the format With respect to not applying the configuration immediately, I've left that up to users to handle. Restarting networking is something that you can't get wrong - if Puppet was restarting the network each time a route was updated it's entirely possible that the machine could get knocked offline. Since it's a bit risky, I've opted to not manage that and let end users do what best suits them. Does that make sense? |
Hi,
Instead of
If not the network init script returns an error:
And the module is always removing the CIDR notation from the route, even when setting netmask to 24. |
Hi, |
I can confirm it's working well... |
@confiq if the pull request worked for you, could you update the pull request with tests and rebase it so that it can be merged? |
@adrienthebo: are we talking about PR #62 ? CC @gwarf |
A new PR would be fine; I'm fine with merging code to fix this issue but the existing PR has merge conflicts. Since there is a behavior change, it does need tests before it gets merged. |
And if @gwarf is willing to continue working it then superb, but if that doesn't work out I'm happy to accept PRs from other locations. |
Ok, |
okay, thank you @confiq! |
If I do:
I get this in /etc/sysconfig/network-scripts/route-eth0:
Which doesn't actually work :(
The only valid format for that file, that I know of, is:
and unlike what I'd normally expect (like what firewall module does) - the routes are NOT setup at puppet agent runtime - but one needs to reboot (or reload networking).
The resulting routes, after reboot, looks like this:
As far as I can see, the conclusions seem to be:
The text was updated successfully, but these errors were encountered: