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 798690

Summary: [RFE] - katello CLI - make --repo and --product optional arguments for 'distribution list'
Product: Red Hat Satellite Reporter: James Laska <jlaska>
Component: katello-agentAssignee: Bryan Kearney <bkearney>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: low Docs Contact:
Priority: low    
Version: 6.0.1CC: jturner, lzap
Target Milestone: UnspecifiedKeywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-11 16:44:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description James Laska 2012-02-29 15:18:19 UTC
Description of problem:

Right now, --repo and --product are required arguments to the 'distribution list' command.  Given that the likely is only one distribution associated with a product and repository, having to repeat this command to list all distributions can be laborious.

It would be nice to be able to list all distributions, or all distributions in a product or repository.

Version-Release number of selected component (if applicable):
 * candlepin-0.5.22-1.el6.src.rpm
 * katello-0.1.300-1.el6.src.rpm
 * katello-certs-tools-1.0.2-2.el6.src.rpm
 * katello-cli-0.1.100-2.el6.src.rpm
 * katello-configure-0.1.100-7.el6.src.rpm
 * katello-httpd-ssl-key-pair-1.0-1.src.rpm
 * katello-qpid-broker-key-pair-1.0-1.src.rpm
 * katello-selinux-0.1.7-1.el6.src.rpm
 * katello-trusted-ssl-cert-1.0-1.src.rpm
 * pulp-0.0.267-2.el6.src.rpm

Steps to Reproduce:
1. distribution list
  
Actual results:

> katello> distribution list --environment Library
> Usage: katello [options]
> 
> katello: errors:
> 1) Option --repo is required; please see --help
> 2) Option --product is required; please see --help
> 
Expected results:

> katello> distribution list --environment Library
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>                                                                                         Distribution List for environment Library
> 
>  Id                                                 Description                                           Product                         Repository
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------   
>  ks-Red Hat Enterprise Linux Server-None-5.8-i386   ks-Red Hat Enterprise Linux Server-None-5.8-i386      Red Hat Enterprise Linux Server Red Hat Enterprise Linux 5 Server RPMs i386 5Server
>  ks-Red Hat Enterprise Linux Server-None-5.8-x86_64 ks-Red Hat Enterprise Linux Server-None-5.8-x86_64    Red Hat Enterprise Linux Server Red Hat Enterprise Linux 5 Server RPMs x86_64 5Server
>  ks-Red Hat Enterprise Linux-Server-6.2-i386        ks-Red Hat Enterprise Linux-Server-6.2-i386           Red Hat Enterprise Linux Server Red Hat Enterprise Linux 6 Server RPMs i386 6Server
>  ks-Red Hat Enterprise Linux-Server-6.2-x86_64      ks-Red Hat Enterprise Linux-Server-6.2-x86_64         Red Hat Enterprise Linux Server Red Hat Enterprise Linux 6 Server RPMs x86_64 6Server


> katello> distribution list --environment Library --product "Red Hat Enterprise Linux Server"
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>                                                                                         Distribution List for environment Library
> 
>  Id                                                 Description                                           Product                         Repository
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------   
>  ks-Red Hat Enterprise Linux Server-None-5.8-i386   ks-Red Hat Enterprise Linux Server-None-5.8-i386      Red Hat Enterprise Linux Server Red Hat Enterprise Linux 5 Server RPMs i386 5Server
>  ks-Red Hat Enterprise Linux Server-None-5.8-x86_64 ks-Red Hat Enterprise Linux Server-None-5.8-x86_64    Red Hat Enterprise Linux Server Red Hat Enterprise Linux 5 Server RPMs x86_64 5Server
>  ks-Red Hat Enterprise Linux-Server-6.2-i386        ks-Red Hat Enterprise Linux-Server-6.2-i386           Red Hat Enterprise Linux Server Red Hat Enterprise Linux 6 Server RPMs i386 6Server
>  ks-Red Hat Enterprise Linux-Server-6.2-x86_64      ks-Red Hat Enterprise Linux-Server-6.2-x86_64         Red Hat Enterprise Linux Server Red Hat Enterprise Linux 6 Server RPMs x86_64 6Server

> katello> distribution list --environment Library --repository "Red Hat Enterprise Linux 5 Server RPMs i386 5Server"
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>                                                                                         Distribution List for environment Library
> 
>  Id                                                 Description                                           Product                         Repository
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------   
>  ks-Red Hat Enterprise Linux Server-None-5.8-i386   ks-Red Hat Enterprise Linux Server-None-5.8-i386      Red Hat Enterprise Linux Server Red Hat Enterprise Linux 5 Server RPMs i386 5Server

Comment 1 Mike McCune 2013-08-16 18:16:28 UTC
getting rid of 6.0.0 version since that doesn't exist

Comment 4 Bryan Kearney 2014-03-11 16:44:08 UTC
Closing old bugs which are not relevant based on new UI and CLI