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 - hammer content-view version list ignores --organization{-id} options
Summary: hammer content-view version list ignores --organization{-id} options
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Views
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Mike McCune
QA Contact: Lukas Pramuk
URL: http://projects.theforeman.org/issues...
Whiteboard:
: 1318295 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-07-18 10:16 UTC by Lukas Pramuk
Modified: 2019-09-26 14:48 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 16:51:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 15796 0 None None None 2016-07-22 15:05:01 UTC

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


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