Bug 1305059 - [RFE] [Sat6] allow multiple rpms to be added via hammer content-view filter rule create
[RFE] [Sat6] allow multiple rpms to be added via hammer content-view filter r...
Status: VERIFIED
Product: Red Hat Satellite 6
Classification: Red Hat
Component: API (Show other bugs)
6.1.6
Unspecified Unspecified
unspecified Severity medium (vote)
: GA
: --
Assigned To: Andrew Kofink
Martin Korbel
http://projects.theforeman.org/issues...
: FutureFeature, Triaged
Depends On:
Blocks: 1316897
  Show dependency treegraph
 
Reported: 2016-02-05 08:50 EST by Stuart Auchterlonie
Modified: 2017-09-14 15:23 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
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
Foreman Issue Tracker 15536 None None None 2016-06-28 12:00 EDT

  None (edit)
Description Stuart Auchterlonie 2016-02-05 08:50:09 EST
Description of problem:

The `hammer content-view filter rule create` command can only handle
one rpm name at a time.


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

6.1.6

How reproducible:

100%

Steps to Reproduce:
1. Create an rpm include content view filter.

2. Attempt to add 2 packages at once
# hammer --username=admin --password=<password> content-view filter rule create --organization=org-example --content-view='filter test' --content-view-filter='test_filter' --name c --name d

Will only add package "d" to the included rpms

3. Attempt to add 2 packages at once, comma delimited

# hammer --username=admin --password=<password> content-view filter rule create --organization=org-example --content-view='filter test' --content-view-filter='test_filter' --name c,d

Will add the package "c,d" to the included rpms


Actual results:

As above

Expected results:

There should be a way of providing more than 1 rpm at a time to hammer.

Additional info:

This is causing my customer issues, because having to run hammer several
hundred times to add a list of packages has significant overhead, and
taking a long time to complete.
Comment 3 Bryan Kearney 2016-02-17 15:42:27 EST
Given the prio score, I am removing this from 6.1.z. I am adding to 6.2 for condieration in the next release.
Comment 8 Andrew Kofink 2016-06-28 11:26:58 EDT
Created redmine issue http://projects.theforeman.org/issues/15536 from this bug
Comment 9 Bryan Kearney 2016-06-28 14:12:30 EDT
Upstream bug component is API
Comment 10 Bryan Kearney 2016-07-28 20:11:15 EDT
Moving to POST since upstream bug http://projects.theforeman.org/issues/15536 has been closed
Comment 14 Martin Korbel 2016-10-19 10:11:21 EDT
VERIFIED on tfm-rubygem-hammer_cli-0.8.0-1 with problems, which was reported in bz1386726.

Reproducer:
1. We have got a content view for testing.
2. > hammer content-view filter create --content-view "test view"  --name "test" --inclusion=false --type=rpm --organization="Default Organization"
Filter created
3. > hammer content-view filter rule list --content-view-id 2 --content-view-filter "test"
--------|-----------|------|---------|-----------------|-----------------|-----------|------------|---------
RULE ID | FILTER ID | NAME | VERSION | MINIMUM VERSION | MAXIMUM VERSION | ERRATA ID | START DATE | END DATE
--------|-----------|------|---------|-----------------|-----------------|-----------|------------|---------

4. > hammer content-view filter rule create --content-view-id 2 --content-view-filter "test" --name c,d
Filter rule created

5. > hammer content-view filter rule list --content-view-id 2 --content-view-filter "test"
--------|-----------|------|---------|-----------------|-----------------|-----------|------------|---------
RULE ID | FILTER ID | NAME | VERSION | MINIMUM VERSION | MAXIMUM VERSION | ERRATA ID | START DATE | END DATE
--------|-----------|------|---------|-----------------|-----------------|-----------|------------|---------
4       | 1         | c    |         |                 |                 |           |            |         
5       | 1         | d    |         |                 |                 |           |            |         
--------|-----------|------|---------|-----------------|-----------------|-----------|------------|---------

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