Bug 789015 - pulp-admin repo list needs a --summary option to be usable.
Summary: pulp-admin repo list needs a --summary option to be usable.
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Todd Sanders
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-09 15:42 UTC by Jim Perrin
Modified: 2013-09-26 22:41 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-26 21:38:44 UTC


Attachments (Terms of Use)

Description Jim Perrin 2012-02-09 15:42:46 UTC
Description of problem:
Once pulp has more than 2-3 repositories, running a 'pulp-admin repo list' generates a fair amount of data, enough to cause some fair scrolling. If you add cloning to this for a basic live/testing/stable style workflow, it becomes nearly impossible to just get a list of repo ids and names.

Version-Release number of selected component (if applicable):
pulp-admin-0.0.254-8.el6.noarch
cr 31

How reproducible:
always

Steps to Reproduce:
1. create a few repositories
2. clone them for a workflow of untested / tested / stable
3. run pulp-admin repo list
  
Actual results:
every detail about every repository.

Expected results:
brief list of repository ID and repository name, one line per repository. similar to 'yum repolist' 



Additional info:
I think having a --summary (default action) option as described above, and a --verbose option that displays the current behavior would significantly enhance the console functionality for pulp.

Comment 1 Ashley Penney 2012-02-09 15:45:21 UTC
I massively support this - I would love a --summary option to make this significantly easier to deal with.  Once you have 15-20 repos it gets incredibly hard to deal with in a useful manner.  I would be OK if summary showed the ID and last sync and nothing else.

Comment 2 Kris Buytaert 2012-05-24 14:10:32 UTC
Currently piping it into | grep -C 1 "Name" 

That gives me the --short summary I need

Comment 88 Michael Hrivnak 2013-09-26 21:38:44 UTC
This was fixed long ago. Example with 5 repos:

$ pulp-admin rpm repo list
+----------------------------------------------------------------------+
                            RPM Repositories
+----------------------------------------------------------------------+

Id:                  foreman
Display Name:        foreman
Description:         None
Content Unit Counts: 
  Rpm:  97
  Srpm: 1

Id:                  blah
Display Name:        blah
Description:         None
Content Unit Counts: 
  Distribution:           1
  Package Category:       10
  Package Group:          202
  Yum Repo Metadata File: 1

Id:                  foo
Display Name:        foo
Description:         None
Content Unit Counts: 
  Erratum:       1
  Package Group: 1
  Rpm:           10

Id:                  bug
Display Name:        bug
Description:         None
Content Unit Counts: 
  Rpm: 1

Id:                  zoo
Display Name:        zoo
Description:         None
Content Unit Counts: 
  Erratum:          4
  Package Category: 1
  Package Group:    2
  Rpm:              32

Comment 89 Jim Perrin 2013-09-26 22:41:48 UTC
That's still a bit too verbose in many instances. 

For 5 repos, you have over 30 lines of output. 

5 repositories doesn't really even get you started in most cases. If I have 20 or 30 repositories (dev/testing/prod for epel, rhel, etc) the amount of output is simply too much. Please see the output of 'yum repolist' and compare that against the output you pasted.


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