Uploaded image for project: 'Kiali QE - archived, use OSSM project'
  1. Kiali QE - archived, use OSSM project
  2. SWSQE-115

Update Ansible to 2.5 on Jenkins Slaves

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • Kiali QE Sprint 3

      Hi fbrychta@redhat.com,
      I needed to update ansible from 2.4 to 2.5 in order to make Test Mesh playbook to work

      ansible 2.4.2.0

      config file = /etc/ansible/ansible.cfg
      configured module search path = [u'/root/.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, May 3 2017, 07:55:04) [GCC 4.8.5 20150623 (Red Hat 4.8.5-14)]

      By executing the test_mesh ansible playbook, I get a syntax error:

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      ansible-playbook test_mesh.yml --syntax-check
      ERROR! The field 'loop' is supposed to be a string type, however the incoming data structure is a <class 'ansible.parsing.yaml.objects.AnsibleSequence'>
      
      ansible 2.5.0

      config file = /etc/ansible/ansible.cfg
      configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
      ansible python module location = /usr/lib/python2.7/site-packages/ansible
      executable location = /bin/ansible
      python version = 2.7.14 (default, Mar 14 2018, 13:36:31) [GCC 7.3.1 20180303 (Red Hat 7.3.1-5)]

      On Ansible 2.5.0, I don't get the error

      ansible-playbook test_mesh.yml --syntax-check
      playbook: test_mesh.yml (executes it fine)
      

      I know that Ansible 2.5.0 was released some days ago, so if we are using on RHEL, maybe it would need to update it from sources, even Brew or Pulp. I was able to track ansible repository (http://pulp.dist.prod.ext.phx2.redhat.com/content/dist/rhel/server/7/7Server/x86_64/ansible/2.5/) but I had no success installing it on slave2.

      On Fedora, it is widespread on the "main repositories"

              fbrychta@redhat.com Filip Brychta
              rh-ee-gbaufake Guilherme Baufaker Rego (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: