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.
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