Description of problem: Currently the Ansible installer will wipe all unexpected parameters at each run, so it's impossible to set a custom logging level, or for example the MTU for use with OpenShift on OpenStack Version-Release number of selected component (if applicable): openshift-ansible-3.0.35-1.git.0.6a386dd.el7aos.noarch How reproducible: Always Steps to Reproduce: 1. set up OpenShift 3.1.1 2. on nodes add options to /etc/sysconfig/docker, for example the docker logging level and MTU: OPTIONS='--insecure-registry=172.30.0.0/16 --selinux-enabled --mtu=1400 -l warn' 3. re-run the Ansible playbook (typical practice when adding new nodes) Actual results: On pre-existing nodes the added parameters were removed: OPTIONS='--insecure-registry=172.30.0.0/16 --selinux-enabled ' Expected results: Parameters are preserved Additional info: Ideally it would be great to pass custom parameters to the Ansible installer to avoid having to add these parameters each time manually
I'll add a variable to add arbitrary docker options. As a workaround, for the specific items mentioned thus far in the bug you can work around the need to set them in /etc/sysconfig/docker via three ansible variables: openshift_node_sdn_mtu, cli_docker_log_driver, and cli_docker_log_options. If using openshift sdn, you end up with an environment file placed in /run/openshift-sdn/docker-network that sets DOCKER_NETWORK_OPTIONS dynamically as required by the SDN. Setting openshift_node_sdn_mtu will override the code that looks at the interface and subtracts 50 from the MTU.
Proposed fix in https://github.com/openshift/openshift-ansible/pull/1404 To test, git pull https://github.com/sdodson/openshift-ansible docker-options Then set openshift_docker_options="-l warn --ipv6=false" or whatever you wish
Install environment with OpenShiftEnterpriseErrata[3.1/2016-02-15.3] vim hosts <--snip--> openshift_docker_options="-l warn --ipv6=false" cli_docker_log_options=max-size=10M cli_docker_log_driver=json-file openshift_node_sdn_mtu=1000 <--snip--> check the docker configuration vim service docker status <--snip--> /usr/bin/docker daemon --insecure-registry=172.30.0.0/16 --selinux-enabled --log-driver json-file --log-opt max-size=10M -l warn --ipv6=false --storage-driver devicemapper --storage-opt dm.fs=xfs --storage-opt dm.thinpooldev=/dev/mapper/rhel72-docker--pool --storage-opt dm.use_deferred_removal=true -b=lbr0 --mtu=1000 The docker use correct parameters, move this issue to VERIFIED.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:0311