Bug 1481977

Summary: hammer content-view filter rule create does not properly set the architecture
Product: Red Hat Satellite Reporter: Evgeni Golov <egolov>
Component: Hammer - ContentAssignee: Brad Buckingham <bbuckingham>
Status: CLOSED ERRATA QA Contact: Peter Ondrejka <pondrejk>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bbuckingham, ehelms, jcallaha, tstrachota
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 17:06:51 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:
Bug Depends On:    
Bug Blocks: 1481976    
Attachments:
Description Flags
screenshot of the created filter rule none

Description Evgeni Golov 2017-08-16 08:13:09 UTC
Created attachment 1313988 [details]
screenshot of the created filter rule

Description of problem:
when creating a filter rule, the architecture information is not passed to katello

setting sev: high as that might have interesting results on the clients

Version-Release number of selected component (if applicable):
tfm-rubygem-hammer_cli_foreman-0.10.2-1.el7sat.noarch
tfm-rubygem-hammer_cli-0.10.2-1.el7sat.noarch
tfm-rubygem-hammer_cli_katello-0.10.0-1.el7sat.noarch

How reproducible:
100%

Steps to Reproduce:
1. create a filter with name=foo, arch=x86_64, version=1234
   hammer content-view filter rule create --content-view-filter-id 3 --name foo --arch x86_64 --version 1234

Actual results:
The created rule has no architecture set (according to the WebUI)

Expected results:
The created rule has an architecture set

Additional info:

Comment 1 Evgeni Golov 2017-08-16 08:14:38 UTC
bonus, it also creates rules with invalid arch values passed:

# hammer content-view filter rule create --content-view-filter-id 3 --name fooaaa --arch burp --version 1234
Filter rule created

Comment 3 Brad Buckingham 2017-08-25 20:05:21 UTC
Created redmine issue http://projects.theforeman.org/issues/20749 from this bug

Comment 4 Satellite Program 2017-08-29 22:19:52 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/20749 has been resolved.

Comment 5 Peter Ondrejka 2017-11-14 09:58:06 UTC
Verified on Sat 6.3 snap 24, architecture is correctly assigned to the cv filter rule

Comment 6 Bryan Kearney 2018-02-21 17:06:51 UTC
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-2018:0336