tripleo-quickstart failed on parts/ovs: Install Openvswitch

Bug #1701006 reported by Juan Badia Payno
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Martin Mágr

Bug Description

Executed on fedora 24
/quickstart.sh --requirements quickstart-extras-requirements.txt --playbook quickstart-extras.yml --config ~/.quickstart/config/general_config/minimal.yml -N ~/.quickstart/config/nodes/1ctlr_1comp.yml --teardown all --clean --release master $VIRTHOS_IP

The following error showed up:

TASK [parts/ovs : Install Openvswitch package] ********************************************************************************************************************************************************************
task path: /home/installer/.quickstart/tripleo-quickstart/roles/parts/ovs/tasks/main.yml:1
Wednesday 28 June 2017 16:53:34 +0200 (0:00:00.021) 0:01:04.751 ********
fatal: [192.168.1.45]: FAILED! => {"failed": true, "msg": "The conditional check '{{ networks|selectattr('virtualport_type', 'defined')|map(attribute='name')|list|length is greaterthan 0}}' failed. The error was: template error while templating string: no test named 'greaterthan'. String: {{ networks|selectattr('virtualport_type', 'defined')|map(attribute='name')|list|length is greaterthan 0}}\n\nThe error appears to have been in '/home/installer/.quickstart/tripleo-quickstart/roles/parts/ovs/tasks/main.yml': line 1, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Install Openvswitch package\n ^ here\n"}

The ansible version was:
ansible-playbook 2.3.1.0
  config file = /home/installer/tripleo-quickstart/ansible.cfg
  configured module search path = [u'/usr/lib/python2.7/site-packages/tripleo-quickstart/library', u'$VIRTUAL_ENV/usr/local/share/tripleo-quickstart/library', u'library']
  python version = 2.7.13 (default, May 10 2017, 20:04:36) [GCC 6.3.1 20161221 (Red Hat 6.3.1-1)]

Workaround:

Edit the file /home/installer/.quickstart/tripleo-quickstart/roles/environment/setup/tasks/main.yml
Modified the line 2:
- when: "{{ networks|selectattr('virtualport_type', 'defined')|map(attribute='name')|list|length is greaterthan 0}}"
for:
- when: "{{ networks|selectattr('virtualport_type', 'defined')|map(attribute='name')|list|length|int > 0}}"

Tags: quickstart
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-quickstart (master)

Fix proposed to branch: master
Review: https://review.openstack.org/478534

Changed in tripleo:
assignee: nobody → Juan Badia Payno (jbadiapa)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-quickstart (master)

Change abandoned by Juan Badia Payno (<email address hidden>) on branch: master
Review: https://review.openstack.org/478534
Reason: Abandon as duplicated fix.
https://review.openstack.org/#/c/472606

Changed in tripleo:
assignee: Juan Badia Payno (jbadiapa) → Martin Mágr (mmagr)
tags: added: quickstart
Changed in tripleo:
milestone: none → pike-3
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-quickstart (master)

Reviewed: https://review.openstack.org/472606
Committed: https://git.openstack.org/cgit/openstack/tripleo-quickstart/commit/?id=70f3ba101b6acc94940aae0a1c615c01754d6ba2
Submitter: Jenkins
Branch: master

commit 70f3ba101b6acc94940aae0a1c615c01754d6ba2
Author: Martin Mágr <email address hidden>
Date: Fri Jun 9 11:38:24 2017 +0200

    Fix conditional in environment/setup role

    Current conditional does not work with Ansible 2.3

    Closes-bug: #1701006
    Change-Id: Ic86fb5f86fb5db8a721859e5ec85e8b569f17550

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-quickstart 2.1.0

This issue was fixed in the openstack/tripleo-quickstart 2.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-quickstart 2.1.1

This issue was fixed in the openstack/tripleo-quickstart 2.1.1 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.