-
Notifications
You must be signed in to change notification settings - Fork 11
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
spec_helper_acceptance: add abbility to enable Ipv6 in beaker hosts #16
base: master
Are you sure you want to change the base?
Conversation
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.
Does this work in Docker?
Yes its been in use in the unbound module for some time and works as expected. I have also used it in other projects but that was some time ago |
@@ -61,6 +61,7 @@ def configure_beaker(modules: :metadata, configure_facts_from_env: true, &block) | |||
end | |||
|
|||
write_beaker_facts_on(hosts) if configure_facts_from_env | |||
on(hosts, 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6') if enable_ipv6 |
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.
i originally used sysctl net.ipv6.conf.all.disable_ipv6=0
but sysctl isn't installed on fedora by default.
Tested and working however when i tested locally (with a plain docker image) i noticed that /proc/sys is mounted readonly. As such im gussing beaker takes care of making sure this is mounted with rw? |
confirmed beaker starts the container with |
I think that does mean you modify sysctl from the host, which can be nasty as well. I'll submit a PR to unbound to use some ULA subnet instead of a global one to see if that passes. |
that's not correct for this parameter and most kernel parameters they have there own cgroup/namespace see below:
hmm setting the following *fyi which ever fix needs to be made in modsync_config not puppet-unbound |
I thought a bit more about it. One thing I like about doing it via a sysctl is that you are less dependent on the environment so you can reproduce it locally. Later I'll see about merging your PRs but now it's time to call it a day. |
I forgot about this, but I've since taken a difference approach and use I'd also be ok with not solving it in this library but rather keep it up to the modules to fix it. |
Enabled by default Also see: voxpupuli/modulesync_config#694
Sorry i missed this, have rebased now
On the one hand this seems to only affect a small subset of modules so perhaps not worth it. On the other hand its a very minor addition and could save someone from scratching there head when implementing acceptance test. as such i would favour adding it |
Enabled by default
Also see: voxpupuli/modulesync_config#694