[jboss-jira] [JBoss JIRA] (SWSQE-115) Update Ansible to 2.5 on Jenkins Slaves

Guilherme Baufaker Rêgo (JIRA) issues at jboss.org
Tue Apr 3 21:29:00 EDT 2018


     [ https://issues.jboss.org/browse/SWSQE-115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guilherme Baufaker Rêgo updated SWSQE-115:
------------------------------------------
    Description: 
Hi [~fbrychta],
I needed to update ansible from 2.4 to 2.5 in order to make Test Mesh playbook to work




{panel:title=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:
{code:shell}
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'>
{code}

{panel}





{panel:title=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
{code}
ansible-playbook test_mesh.yml --syntax-check
playbook: test_mesh.yml (executes it fine)
{code}
{panel}

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"







  was:
Hi [~fbrychta],
I needed to update ansible from 2.4 to 2.5 in order to make Test Mesh playbook to work




{panel:title=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)]


{code:shell}
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'>
{code}

{panel}





{panel:title=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)]
{panel}

ansible-playbook test_mesh.yml --syntax-check

playbook: test_mesh.yml (executes it fine)







> Update Ansible to 2.5 on Jenkins Slaves 
> ----------------------------------------
>
>                 Key: SWSQE-115
>                 URL: https://issues.jboss.org/browse/SWSQE-115
>             Project: Kiali QE
>          Issue Type: Bug
>            Reporter: Guilherme Baufaker Rêgo
>            Assignee: Filip Brychta
>
> Hi [~fbrychta],
> I needed to update ansible from 2.4 to 2.5 in order to make Test Mesh playbook to work
> {panel:title=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:
> {code:shell}
> 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'>
> {code}
> {panel}
> {panel:title=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
> {code}
> ansible-playbook test_mesh.yml --syntax-check
> playbook: test_mesh.yml (executes it fine)
> {code}
> {panel}
> 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"



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)



More information about the jboss-jira mailing list