Kolla-ansible missing jmespath in requirements.txt

Bug #1804242 reported by Mark Goddard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Medium
Mark Goddard

Bug Description

The neutron rolling upgrade procedure now uses the json_query Jinja filter, which requires the jmespath python package.

The symptom of failure is:

TASK [neutron : Stopping all neutron-server for contract db] *******************
fatal: [controller0]: FAILED! => {"msg": "The conditional check 'is_stop_neutron_server|length > 0' failed. The error was: An unhandled exception occurred while templating '{{ results_of_check_pending_contract_scripts | json_query(filter_rc) }}'. Error was a <class 'ansible.errors.AnsibleError'>, original message: You need to install \"jmespath\" prior to running json_query filter\n\nThe error appears to have been in '/home/zuul/kolla-venv/share/kolla-ansible/ansible/roles/neutron/tasks/rolling_upgrade.yml': line 50, 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: Stopping all neutron-server for contract db\n ^ here\n"}

As seen in kayobe CI: http://logs.openstack.org/96/615596/9/check/kayobe-overcloud-upgrade-centos/f5bf83b/primary/ansible/overcloud-upgrade

Revision history for this message
Mark Goddard (mgoddard) wrote :

Only affects master.

Changed in kolla-ansible:
assignee: nobody → Mark Goddard (mgoddard)
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)

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

Changed in kolla-ansible:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.openstack.org/619006
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=d0122fff6988248985ca11250421f59318106e3e
Submitter: Zuul
Branch: master

commit d0122fff6988248985ca11250421f59318106e3e
Author: Mark Goddard <email address hidden>
Date: Tue Nov 20 14:21:18 2018 +0000

    Add jmespath to requirements.txt

    jmespath is required for the json_query Jinja filter, which is used in
    the neutron rolling upgrade playbooks.

    Change-Id: I2100d757e07d8400402a8a16747e0f88ef7fc7c5
    Closes-Bug: #1804242

Changed in kolla-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.openstack.org/621393

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on kolla-ansible (stable/rocky)

Change abandoned by Eduardo Gonzalez (<email address hidden>) on branch: stable/rocky
Review: https://review.openstack.org/621393

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 8.0.0.0b1

This issue was fixed in the openstack/kolla-ansible 8.0.0.0b1 development milestone.

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.