Why Am I Getting an Error "failed to set net.ipv6.conf.default.accept_dad sysctl: open /proc/sys/net/ipv6/conf/default/accept_dad: no such file or directory" ?
Environment
- Ansible Automation Platform 2.x
Issue
- Ansible Automation Platfrom fails to run job with an error "failed to set net.ipv6.conf.default.accept_dad sysctl: open /proc/sys/net/ipv6/conf/default/accept_dad: no such file or directory"
Resolution
-
Run the following commands on the Controller server in order to disable ipv6 for default container run option:
# echo "DEFAULT_CONTAINER_RUN_OPTIONS = ['--network', 'slirp4netns:enable_ipv6=false']" >> /etc/tower/conf.d/custom.py # chown root:awx /etc/tower/conf.d/custom.py && chmod 640 /etc/tower/conf.d/custom.py # automation-controller-service restart
Root Cause
- The root cause of the issue is ipv6 being disabled using kernel parameter at server level. By default, enable podman ipv6 support is present for AAP which is a key change in latest Ansible Automation Platform. AAP run the jobs on containers, hence the default container run options for ipv6 should be disabled for container level as well.
Diagnostic Steps
-
The job output will fail with the following error:
failed to set net.ipv6.conf.default.accept_dad sysctl: open /proc/sys/net/ipv6/conf/default/accept_dad: no such file or directory
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments