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 832431

Summary: SAM cli headpin Version command returns exitCode as 1 even after successful completion of command
Product: Red Hat Satellite Reporter: Tazim Kolhar <tkolhar>
Component: HammerAssignee: Adam Price <adprice>
Status: CLOSED UPSTREAM QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.1CC: cwelton, mmccune
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 832425 Environment:
Last Closed: 2013-09-19 18:10:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 832425    
Bug Blocks:    

Description Tazim Kolhar 2012-06-15 11:46:16 UTC
+++ This bug was initially created as a clone of Bug #832425 +++

Description of problem:
The newly added headpin -u admin -p admin version -v has exitCode
as 1

Version-Release number of selected component (if applicable):
[root@dell-pesc1425-01 ~]# rpm -qa | grep katello
katello-cli-common-0.3.5-2.el6_2.noarch
katello-selinux-0.2.4-1.el6_2.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-glue-candlepin-0.3.2-1.el6_2.noarch
katello-certs-tools-1.1.5-1.el6_2.noarch
katello-configure-0.3.7-1.el6_2.noarch
katello-headpin-all-0.2.12-2.el6_2.noarch
katello-cli-headpin-0.2.2-1.el6_2.noarch
katello-common-0.3.2-1.el6_2.noarch
katello-headpin-0.2.12-2.el6_2.noarch

How reproducible:
Automation JAVA_ClI code is
executed on the SAM server

Steps to Reproduce:
The test report attached:
http://pastebin.test.redhat.com/93090
  
Actual results:
The return exit code for successful execution is 1.

Expected results:
The return exit code for successful execution should be 0 since
all the other commmands return 1 after successful completion


Additional info:
cloning the bug for CFSE since the code is shared with katello

Comment 1 Adam Price 2012-09-26 15:48:38 UTC
i installed the nightly katello build and deployed as headpin.

[root@shadow ~]# rpm -qa | grep katello
katello-cli-headpin-1.1.1-1.git.59.e8fe8d3.el6.noarch
katello-repos-1.1.2-1.el6.noarch
katello-headpin-1.1.12-1.git.243.bfe4793.el6.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-glue-candlepin-1.1.12-1.git.243.bfe4793.el6.noarch
katello-configure-1.1.9-1.git.182.9a10874.el6.noarch
katello-headpin-all-1.1.12-1.git.243.bfe4793.el6.noarch
katello-common-1.1.12-1.git.243.bfe4793.el6.noarch
katello-selinux-1.1.1-1.git.657.6199559.el6.noarch
katello-certs-tools-1.1.8-1.el6.noarch
katello-cli-common-1.1.8-1.git.239.b4698ce.el6.noarch



[root@shadow ~]# headpin -u admin -p admin version -v
Headpin 1.1.12-1.git.243.bfe4793.el6
[root@shadow ~]# echo $?
0


looks fixed as of commit 0de6b69496b10e3cf2fdea316327c7829abad630

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

Comment 3 Mike McCune 2013-09-19 18:10:18 UTC
These bugs have been resolved in upstream projects for a period of months so I'm mass-closing them as CLOSED:UPSTREAM.  If this is a mistake feel free to re-open.