Bug 1141297

Summary: --fields=pkglist can only be used with --erratum-id and not with --match or --filters
Product: [Retired] Pulp Reporter: Randy Barlow <rbarlow>
Component: rpm-supportAssignee: pulp-bugs
Status: CLOSED UPSTREAM QA Contact: pulp-qe-list
Severity: medium Docs Contact:
Priority: medium    
Version: 2.4.0CC: cduryee, mhrivnak
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-28 22:19:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Randy Barlow 2014-09-12 16:03:32 UTC
Description of problem:

This command will not print anything:

$ pulp-admin rpm repo content errata --repo-id rhel-6-server --match Type=security --fields pkglist

Neither will this command:

pulp-admin rpm repo content errata --repo-id=rhel-6-server --fields=pkglist --filters='{"issued": {"$gte": "2014-01-01"},"type": "security"}'

However, this command will print the pkglist:

pulp-admin rpm repo content errata --repo-id rhel-6-server --erratum-id RHSA-2014:1075 --fields pkglist

Both commands should print the pkglist.

Version-Release number of selected component (if applicable):
2.4.0-1

How reproducible:
Every time.

Steps to Reproduce:
1. Sync the rhel-6-server repository.
2. Run pulp-admin rpm repo content errata --repo-id rhel-6-server --match Type=security --fields pkglist
3. Also run pulp-admin rpm repo content errata --repo-id=rhel-6-server --fields=pkglist --filters='{"issued": {"$gte": "2014-01-01"},"type": "security"}'

Actual results:
Observe that these commands do not print the pkglist.

Expected results:
The pkglists should be printed for each errata that match a query.

Comment 1 Brian Bouterse 2015-02-28 22:19:39 UTC
Moved to https://pulp.plan.io/issues/524