Description of problem: CLI options such as cli_docker_log_options and cli_docker_options are supposed to be migrated to the new format (openshift_docker_log_options) but this does not appear to be working. Version-Release number of selected component (if applicable): atomic-openshift-utils-3.0.76-1.git.6.d2118c7.fc23.noarch RPM based install environment How reproducible: Seemingly 100% Steps to Reproduce: 1. Run an inventory with the following options: cli_docker_log_options="max-size=1M" cli_docker_options="--log-level=\"warn\"" Actual results: On any master, or node: (root@node2 ~) $ cat /etc/sysconfig/docker | grep OPTIONS OPTIONS=' --selinux-enabled --insecure-registry=172.30.0.0/16 ' Expected results: Log options should have been added to the OPTIONS line.
Switching to the new openshift_docker_* options and re-running will cause them to take effect.
Fixed in: https://github.com/openshift/openshift-ansible/pull/1742 Worth noting however that the format of the option has changed to now be a JSON list. i.e.: cli_docker_log_options=["max-size=2M" , "max-file=5"]
This is probably specific to ops, so I am going to move it to upcoming release.
PR now merged. The new list format, as well as the old comma separated string format are both supported, as are both openshift_docker_log_options and the legacy cli_docker_log_options.
Check on openshift-ansible-3.0.90-1.git.0.a077b68.el7.noarch.rpm Scenario 1: Install env with the following parameters openshift_docker_log_options: ["max-size=1M", "max-file=3"] cli_docker_options: "--log-level=\"warn\" --insecure-registry=192.168.0.0/16" Check the docker options OPTIONS=' --selinux-enabled --log-opt max-size=1M --log-opt max-file=3 --insecure-registry=172.30.0.0/16 --log-level="warn" --insecure-registry=192.168.0.0/16' Get the expected result. Scenario 2: Install env with the following parameters cli_docker_log_options: "max-size=1M, max-file=3" openshift_docker_options: "--log-level=\"warn\" --insecure-registry=192.168.0.0/16" Check the docker options OPTIONS=' --selinux-enabled --log-opt max-size=1M --log-opt max-file=3 --insecure-registry=172.30.0.0/16 --log-level="warn" --insecure-registry=192.168.0.0/16' Get the expected result.
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:1208