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 720650 - --help option should be serving with info - not to check connection to server.
Summary: --help option should be serving with info - not to check connection to server.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: katello-agent
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: Unspecified
Assignee: Lukas Zapletal
QA Contact: Garik Khachikyan
URL:
Whiteboard:
Depends On:
Blocks: katello-blockers
TreeView+ depends on / blocked
 
Reported: 2011-07-12 11:35 UTC by Garik Khachikyan
Modified: 2019-09-25 21:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-22 17:49:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 707936 1 None None None 2021-01-20 06:05:38 UTC

Internal Links: 707936

Description Garik Khachikyan 2011-07-12 11:35:28 UTC
Description of problem:
Right now katello client on "--help" option (e.g.: `katello user --help`) tries to establish connection to server (and fails particularly for me)
I think the --help is providing info about the functionality and should not do any logic at all (and not connect to the katello server).

Version-Release number of selected component (if applicable):
Recent git sources

How reproducible:
always running `katello <cmd> --help`

Steps to Reproduce:
1.broke (or not configure) your connections settings (including kerberos) and try to fetch: katello user --help 
2.
3.
  
Actual results:
Fails connecting to kerberos and not displays the help info

Expected results:
Should not do any logic there except displaying info.

Additional info:

Comment 1 Lukas Zapletal 2011-07-20 15:10:47 UTC
I guess its somehow connected to this fix:

https://bugzilla.redhat.com/show_bug.cgi?id=707936

Comment 2 Lukas Zapletal 2011-07-21 15:29:44 UTC
720650 - --help option should be serving with info - not connect to srv

[lzap@lzapx cli]$ katello 
Usage: katello <options> <command>
Supported Commands:
	changeset      changeset specific actions in the katello server
	distribution   repo specific actions in the katello server
	environment    environment specific actions in the katello server
	errata         errata specific actions in the katello server
	org            organization specific actions in the katello server
	package        package specific actions in the katello server
	ping           get the status of the katello server
	product        product specific actions in the katello server
	provider       provider specific actions in the katello server
	repo           repo specific actions in the katello server
	shell          run the cli as a shell   
	system         system specific actions in the katello server
	template       template specific actions in the katello server
	user           user specific actions in the katello server

katello: error: No command given; please see --help
[lzap@lzapx cli]$ katello user
Usage: katello <options> user <action> <options>
Supported Actions:
	create         create user              
	info           list information about user
	list           list all known users     
	update         update an user           
	delete         delete user              

katello: error: no action given: please see --help
[lzap@lzapx cli]$ katello user --help
Usage: katello <options> user <action> <options>
Supported Actions:
	create         create user              
	info           list information about user
	list           list all known users     
	update         update an user           
	delete         delete user              

Options:
  -h, --help  show this help message and exit
[lzap@lzapx cli]$ katello user xxxxx
Usage: katello <options> user <action> <options>
Supported Actions:
	create         create user              
	info           list information about user
	list           list all known users     
	update         update an user           
	delete         delete user              

katello: error: invalid action: please see --help
[lzap@lzapx cli]$ katello user list
error: Missing credentials and unable to authenticate using Kerberos (more in the log file)
[lzap@lzapx cli]$ katello -u admin -p admin user list
... works finally ...

Comment 3 Lukas Zapletal 2011-07-21 15:30:33 UTC
82a0e6b 720650 - --help option should be serving with info - not connect to srv

^^^^^^ (Forgot to add the hash number)

Comment 4 Garik Khachikyan 2011-09-14 11:22:35 UTC
great fix: perfectly working - no errors, no tries to connect to server in case something is not well-formatted to perform there.

version checked: katello-cli-0.1.10-1.git.143.98730a7.el6.noarch


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