Description of problem: We need to add a package into the origin/ansible docker image. For 3.10 it needs patch package, currently QE is using that base image to spin up and run ansible-playbook but all of our automation failed due to the lack of patch package within the official image. According to the official doc, the following requirements are needed to install the various services. Additional requirements: Logging: • java-1.8.0-openjdk-headless • patch Metrics: • httpd-tools Version-Release number of the following components: ansible 2.5.2 How reproducible: always. Steps to Reproduce: 1. ansible-playbook -i /tmp/tmp/install_inventory -vv /usr/share/ansible/openshift-ansible/playbooks/openshift-logging/config.yml 2. 3. Actual results: TASK [openshift_logging : command] ****************************************************************************************** task path: /usr/share/ansible/openshift-ansible/roles/openshift_logging/tasks/patch_configmap_file.yaml:45 Thursday 17 May 2018 06:16:49 +0000 (0:00:00.599) 0:02:48.957 ********** fatal: [ec2-204-236-242-114.compute-1.amazonaws.com -> localhost]: FAILED! => {"changed": false, "cmd": "patch --force --quiet -u /tmp/openshift-logging-ansible-mzDgtM/configmap_new_file /tmp/openshift-logging-ansible-mzDgtM/patch.patch", "msg": "[Errno 2] No such file or directory", "rc": 2} PLAY RECAP ****************************************************************************************************************** ec2-204-236-242-114.compute-1.amazonaws.com : ok=156 changed=16 unreachable=0 failed=1 localhost : ok=11 changed=0 unreachable=0 failed=0 Expected results: Additional info: Please attach logs from ansible-playbook with the -vvv flag
https://github.com/openshift/openshift-ansible/pull/8418
In openshift-ansible-3.10.0-0.48.0
Peter can you verify this is fixed?
verified with the latest ose/ansible docker image sh-4.2$ ansible-playbook --version ansible-playbook 2.5.3 config file = /usr/share/ansible/openshift-ansible/ansible.cfg configured module search path = [u'/opt/app-root/src/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] sh-4.2$ ansible --version ansible 2.5.3 config file = /usr/share/ansible/openshift-ansible/ansible.cfg configured module search path = [u'/opt/app-root/src/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible python version = 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] sh-4.2$ patch --version GNU patch 2.7.1
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:1816