-
Notifications
You must be signed in to change notification settings - Fork 39
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
/etc/hosts gets clobbered #191
Comments
Following the bugs that you linked it appears that this issue is only fixed in Puppet 4.0 (puppetlabs/puppet#3005 (comment)). We're currently using puppet 3.8.0 from the upstream ubuntu repositories. #146 did switch us to the puppet "future" parser used in puppet 4.x as a step toward that transition. |
right. I'd missed that. |
@gavanderhoorn I've ticketed what it would take to move to puppet 4 and fix the bug. It's not something that I think I'll be able to work on for the foreseeable future. Workaround optionsA workaround would be adding other hosts via puppet resources as well. One of the things that I haven't looked into in detail is interop with other puppet modules since anything that OSRF needs gets committed to this repo. One medium-effort way to do it would be to refactor the hosts code in buildfarm_deployment and buildfarm_deployment_config to pull from a list structure rather than looking in particular for The minimal-effort (for maintainers) is for teams that need to add additional puppet code to add it to the reconfigure script in their fork of buildfarm_deployment_config. |
Thanks for the info @nuclearsandwich. Perhaps we can add some note that deploying to hosts that have 'special' DNS setups is currently complicated by this Puppet bug. At least my hosts started to act up and I couldn't figure out what was going on, until I checked |
That sounds fine to me. Are you imagining a note during the puppet run or something in the documentation for buildfarm_deployment? I would think that most folks don't read the puppet logs unless something goes wrong so documentation would be better.
According to the referenced puppet issues, the existing hosts file should only be clobbered if puppet is unable to parse it. Is there some particular aspect of your hosts file that puppet is failing to parse which you expect to be common? All of the hosts files for build.ros.org machines appear to have their handspun changes intact. I think it's perfectly valid to put a warning / known issues list up in the documentation. I'm just curious how wide the impact of this particular issue is. |
I would say readme. A 'known issues' as you mention would probably be a good place. re: no one checks the log: I agree. You typically only check it when something went wrong. But even in that case it might not help, as I did not see any mention of a problem with the
I don't know why I can see whether I can do a test deployment on a fresh VM to see what triggers it. |
This might be "too localised", but I just noticed that
/etc/hosts
gets clobbered bypuppet
on all hosts during deployment (and the file gets the standard "don't modify this file any more" header).According to PUP-2289 and PUP-4383 this should not happen (after
puppet
was updated to not do that), but afaik, all my VMs had an Ubuntu-standardhosts
file, and I've also not seen any lines inpuppet.log
about this.The text was updated successfully, but these errors were encountered: