Created attachment 1470867 [details] installation log with inventory file embedded Description of problem: See the following details. Version-Release number of the following components: openshift-ansible-3.10.21-1.git.0.6446011.el7.noarch How reproducible: Always Steps to Reproduce: 1. install a cluster enable cri-o, and setting the following parameter openshift_crio_docker_gc_node_selector={"node-role.kubernetes.io/compute": "true"} 2. trigger installation 3. Actual results: installation failed. TASK [openshift_docker_gc : Apply dockergc DaemonSet] ************************** Thursday 26 July 2018 03:28:10 -0400 (0:00:00.537) 0:23:52.802 ********* fatal: [host-8-245-162.host.centralci.eng.rdu2.redhat.com]: FAILED! => {"changed": false, "failed": true, "msg": {"cmd": "/usr/bin/oc create -f /tmp/tmp.FizoYr71Pd/dockergc-ds.yaml -n default", "results": {}, "returncode": 1, "stderr": "Error from server (BadRequest): DaemonSet in version \"v1beta1\" cannot be handled as a DaemonSet: [pos 797]: json: expect char '\"' but got char 't'\n", "stdout": "serviceaccount \"dockergc\" created\n"}} Expected results: Installation succeed. Additional info: After the failure, log into cluster, check /tmp/tmp.FizoYr71Pd/dockergc-ds.yaml, found its node selector is set to: nodeSelector: node-role.kubernetes.io/compute: true If adding quote for true like the following, the dockergc ds will be created successfully. nodeSelector: node-role.kubernetes.io/compute: "true" Workaround: openshift_crio_docker_gc_node_selector={'node-role.kubernetes.io/compute': '"true"'}
Proposed: https://github.com/openshift/openshift-ansible/pull/9486
Commit pushed to master at https://github.com/openshift/openshift-ansible https://github.com/openshift/openshift-ansible/commit/5c7c5527a1d5540c932d6fc427f155b0996944ba Merge pull request #9486 from mtnbikenc/fix-1609027 [Bug 1609027] Add quotes to docker gc node selector
release-3.10: https://github.com/openshift/openshift-ansible/pull/9587
Verified this but with openshift-ansible-3.10.32-1.git.0.100156fNone, and PASS. When openshift_crio_docker_gc_node_selector={"node-role.kubernetes.io/compute": "true"}, install is completed successfully. # oc get ds dockergc -o yaml|grep nodeSelec -A 3 nodeSelector: node-role.kubernetes.io/compute: "true" restartPolicy: Always schedulerName: default-scheduler When openshift_crio_docker_gc_node_selector={"role": "node"}, install is also completed successfully. # oc get ds dockergc -o yaml|grep nodeSelec -A 3 nodeSelector: role: node restartPolicy: Always schedulerName: default-scheduler Once correct rpm is moved to errata, will move this bug to verified.
Now openshift-ansible-3.10.34-1.git.0.48df172None.noarch is already attached to errata, which is including the fix PR, based on comment 5, move this bug 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-2018:2376