Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1357477

Summary: hammer content-view version list ignores --organization{-id} options
Product: Red Hat Satellite Reporter: Lukas Pramuk <lpramuk>
Component: Content ViewsAssignee: Mike McCune <mmccune>
Status: CLOSED ERRATA QA Contact: Lukas Pramuk <lpramuk>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham, daviddavis, tomckay
Target Milestone: UnspecifiedKeywords: Reopened, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/15796
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:51:07 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 Lukas Pramuk 2016-07-18 10:16:56 UTC
Description of problem:
hammer content-view list ignores --organization{-id} options 

Version-Release number of selected component (if applicable):
satellite-6.2.0-20.1.el7sat.noarch

How reproducible:
always

Steps to Reproduce:

# hammer content-view version list --organization-id 1
---|--------------------------------------------------------------|---------|-----------------------
ID | NAME                                                         | VERSION | LIFECYCLE ENVIRONMENTS
---|--------------------------------------------------------------|---------|-----------------------
9  | Red Hat Enterprise Linux Server (v. 7 for 64-bit x86_64) 1.0 | 1.0     | Library               
8  | RHN Tools for RHEL Server (v. 7 for x86_64) 1.0              | 1.0     | Library               
7  | Default Organization View 1.0                                | 1.0     | Library               
2  | Docker View 1.0                                              | 1.0     | Library               
1  | Default Organization View 1.0                                | 1.0     | Library               
---|--------------------------------------------------------------|---------|-----------------------

# hammer content-view version list --organization-id 3
---|--------------------------------------------------------------|---------|-----------------------
ID | NAME                                                         | VERSION | LIFECYCLE ENVIRONMENTS
---|--------------------------------------------------------------|---------|-----------------------
9  | Red Hat Enterprise Linux Server (v. 7 for 64-bit x86_64) 1.0 | 1.0     | Library               
8  | RHN Tools for RHEL Server (v. 7 for x86_64) 1.0              | 1.0     | Library               
7  | Default Organization View 1.0                                | 1.0     | Library               
2  | Docker View 1.0                                              | 1.0     | Library               
1  | Default Organization View 1.0                                | 1.0     | Library               
---|--------------------------------------------------------------|---------|-----------------------



Actual results:
lists all CVs 

Expected results:
lists only CVs that belongs to a specific organization

Comment 1 Lukas Pramuk 2016-07-18 10:36:53 UTC
mistype

Comment 2 Lukas Pramuk 2016-07-18 10:45:03 UTC
though mistype still valid bug (added 'version' into the title)

Actual results:
lists all CV versions 

Expected results:
lists only CV version that belongs to a specific organization

Comment 4 Andrew Kofink 2016-07-22 14:47:25 UTC
Created redmine issue http://projects.theforeman.org/issues/15796 from this bug

Comment 5 Bryan Kearney 2016-08-03 14:17:03 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/15796 has been closed

Comment 6 David Davis 2016-08-31 17:36:44 UTC
*** Bug 1318295 has been marked as a duplicate of this bug. ***

Comment 10 Lukas Pramuk 2016-10-20 11:16:34 UTC
VERIFIED.

@satellite-6.3.0-1.0.git.7.fb12bf2.el7sat.noarch (snap5)
tfm-rubygem-katello-3.2.0-0.2.rc2.el7.noarch

# hammer content-view version list --organization-id 1
---|-------------------------------|---------|-----------------------
ID | NAME                          | VERSION | LIFECYCLE ENVIRONMENTS
---|-------------------------------|---------|-----------------------
2  | Satellite 6.2.2 RHEL7 1.0     | 1.0     | Library               
1  | Default Organization View 1.0 | 1.0     | Library               
---|-------------------------------|---------|-----------------------
# hammer content-view version list --organization-id 3
---|-------------------------------|---------|-----------------------
ID | NAME                          | VERSION | LIFECYCLE ENVIRONMENTS
---|-------------------------------|---------|-----------------------
4  | Satellite 6.2.2 RHEL7 1.0     | 1.0     | Library               
3  | Default Organization View 1.0 | 1.0     | Library               
---|-------------------------------|---------|-----------------------

>>> lists only CV versions that belongs to a specific organization (not all as before)

Comment 11 Satellite Program 2018-02-21 16:51:07 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