Bug 1132539 - error info missing on wrong pulp-admin input
Summary: error info missing on wrong pulp-admin input
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: 2.4 Beta
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
: ---
Assignee: pulp-bugs
QA Contact: Irina Gulina
URL:
Whiteboard:
Depends On:
Blocks: 1132947
TreeView+ depends on / blocked
 
Reported: 2014-08-21 14:12 UTC by Irina Gulina
Modified: 2015-02-28 22:16 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-28 22:16:02 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Pulp Redmine 493 0 None None None Never

Description Irina Gulina 2014-08-21 14:12:54 UTC
Description of problem:

If to use a wrong option in the end of the command, it shows help plus message "The following options were specified but do not exist on the command": 

>>pulp-admin -u admin -p admin repo list --repo-id
Command: list
Description: lists repositories on the Pulp server

Available Arguments:

  --summary, -s - if specified, a condensed view with just the repository ID and
                  name is displayed
  --details     - if specified, detailed configuration information is displayed
                  for each repository
  --fields      - comma-separated list of repository fields; if specified, only
                  the given fields will displayed
The following options were specified but do not exist on the command:
  --repo-id

However if to use a wrong command/option in the middle of the pulp commands list, it returns help, but it doesn't note at what point (SUB_SECTION/COMMAND) there is an error.

>> pulp-admin -u admin -p admin rpm --repo-id repo list
Usage: pulp-admin [SUB_SECTION, ..] COMMAND
Description: manage RPM-related content and features

Available Sections:
  consumer - register, bind, and interact with rpm consumers
  repo     - repository lifecycle commands

>> pulp-admin -u admin -p admin rpm repo repo list
Usage: pulp-admin [SUB_SECTION, ..] COMMAND
Description: repository lifecycle commands

Available Sections:
  content - search the contents of a repository
  copy    - copies one or more content units between repositories
  export  - run or view the status of a repository export
  group   - repository group commands
  publish - run or view the status of publish tasks
  remove  - remove copied or uploaded modules from a repository
  sync    - run, schedule, or view the status of sync tasks
  uploads - upload modules into a repository

Available Commands:
  create - creates a new repository
  delete - deletes a repository
  list   - lists repositories on the Pulp server
  search - searches for repositories on the server
  update - changes metadata on an existing repository

>> pulp-admin -u admin -p admin list repo
Usage: pulp-admin [SUB_SECTION, ..] COMMAND

Available Sections:
  auth     - manage users, roles and permissions
  bindings - search consumer bindings
  consumer - display and manage Pulp consumers
  event    - subscribe to event notifications
  iso      - manage ISO-related content and features
  orphan   - find and remove orphaned content units
  puppet   - manage Puppet-related content and features
  repo     - list repositories and manage repo groups
  rpm      - manage RPM-related content and features
  server   - display info about the server
  tasks    - list and cancel server-side tasks

Available Commands:
  login  - login and download a session certificate
  logout - deletes the user's session certificate



Version-Release number of selected component (if applicable):
>> rpm -qa | grep pulp-server
pulp-server-2.4.1-0.2.alpha.fc20.noarch

How reproducible:
always

Expected results:

Message: 
[SUB_SECTION/OPTION] isn't valid for the [SECTION] section.

Available Sections:...
Available Commands:...

Comment 1 Brian Bouterse 2015-02-28 22:16:02 UTC
Moved to https://pulp.plan.io/issues/493


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