Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1484910 - Require python-jmespath
Require python-jmespath
Status: CLOSED ERRATA
Product: Red Hat Ansible Engine
Classification: Red Hat
Component: ansible (Show other bugs)
unspecified
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Pavel Cahyna
qe-baseos-daemons
: Extras
Depends On: 1489592
Blocks: 1484965 1513470
  Show dependency treegraph
 
Reported: 2017-08-24 10:06 EDT by Pavel Cahyna
Modified: 2018-04-18 10:59 EDT (History)
7 users (show)

See Also:
Fixed In Version: ansible-2.4.0.0-5.el7
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1513470 (view as bug list)
Environment:
Last Closed: 2017-10-19 11:19:56 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:2966 normal SHIPPED_LIVE Moderate: ansible security, bug fix, and enhancement update 2017-10-19 14:53:42 EDT

  None (edit)
Description Pavel Cahyna 2017-08-24 10:06:13 EDT
Description of problem:

Use of the json_query filter requires the presence of python-jmespath.

Version-Release number of selected component (if applicable):
2.3.2.0-1.el7

How reproducible:
easily

Steps to Reproduce:
using tests:

test/runner/ansible-test integration -vvv posix/ci/ --start-at  filters

not using tests:

ansible -vv localhost -m debug --extra-vars '{"c": {"pacman":"mrs","ghosts":["inky","pinky","clyde","sue"]}}' -a msg="{{ c | json_query('ghosts[1]') }}"

Actual results:

using tests:
TASK [filters : Test json_query filter] ****************************************
task path: /root/rpmbuild/BUILD/ansible-2.3.2.0/test/integration/targets/filters/tasks/main.yml:118
fatal: [testhost]: FAILED! => {
    "failed": true, 
    "msg": "The conditional check 'users | json_query('[*].hosts[].host') == ['host_a', 'host_b', 'host_c', 'host_d']' failed. The error was: You need to install \"jmespath\" prior to running json_query filter"
}
        to retry, use: --limit @/root/rpmbuild/BUILD/ansible-2.3.2.0/test/integration/filters-KU_0v0.retry

PLAY RECAP *********************************************************************
testhost                   : ok=18   changed=8    unreachable=0    failed=1   

NOTICE: To resume at this test target, use the option: --start-at filters
NOTICE: To resume after this test target, use the option: --start-at gathering_facts
ERROR: Command "ansible-playbook filters-KU_0v0.yml -i inventory -e @integration_config.yml -vvv" returned exit status 2.

not using tests:

localhost | FAILED! => {
    "failed": true, 
    "msg": "You need to install \"jmespath\" prior to running json_query filter"
}

Expected results:

using tests:
test succeeds.

not using tests:
localhost | SUCCESS => {
    "msg": "pinky"
}
Comment 2 Pavel Cahyna 2017-08-24 11:39:21 EDT
Fedora bug: #1465586
Comment 5 Terry Bowling 2017-09-14 08:15:43 EDT
Yes, this is planned for 7.4.2.  I am adding the pm_ack+ for this.
Comment 7 Leos Pol 2017-10-10 07:11:51 EDT
ansible-2.4.0.0-5.el7 contains python2-jmespath as requirement, also ansible integration tests for filter module passes.
Comment 10 errata-xmlrpc 2017-10-19 11:19:56 EDT
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/RHSA-2017:2966
Comment 16 Martin Perina 2017-11-15 07:36:12 EST
I've just checked ansible-2.4.1.0-1.el7 [1] and dependency on python-jmespath is again missing although it's present on upstream build [2].

New bug or reopen this one?


[1] https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=620845
[2] https://koji.fedoraproject.org/koji/buildinfo?buildID=992214
Comment 17 Sandro Bonazzola 2017-11-15 07:48:36 EST
(In reply to Martin Perina from comment #16)
> I've just checked ansible-2.4.1.0-1.el7 [1] and dependency on
> python-jmespath is again missing although it's present on upstream build [2].
> 
> New bug or reopen this one?
> 
> 
> [1] https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=620845
> [2] https://koji.fedoraproject.org/koji/buildinfo?buildID=992214

See comment #10:
"If the solution does not work for you, open a new bug report."
Comment 18 Martin Perina 2017-11-15 08:26:08 EST
OK, created BZ1513470 for that

Note You need to log in before you can comment on or make changes to this bug.