Bug 952236

Summary: Headpin Nightly :CLI - 'system unregister' with '--uuid' option shows error.
Product: [Retired] Subscription Asset Manager Reporter: Tazim Kolhar <tkolhar>
Component: katelloAssignee: Bryan Kearney <bkearney>
Status: CLOSED ERRATA QA Contact: Tazim Kolhar <tkolhar>
Severity: high Docs Contact:
Priority: high    
Version: 1.3CC: abhole, bkearney, cwelton, omaciel
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-01 11:10:10 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:    
Bug Blocks: 833466    

Description Tazim Kolhar 2013-04-15 12:36:57 UTC
Description of problem:
 'system unregister' with '--uuid' option shows error.

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

# rpm -qa | grep katello
katello-configure-1.4.1-1.el6.noarch
katello-glue-elasticsearch-1.4.1-1.git.9.ff9a101.el6.noarch
katello-cli-1.4.1-1.el6.noarch
katello-headpin-1.4.1-1.git.9.ff9a101.el6.noarch
katello-certs-tools-1.4.1-1.el6.noarch
katello-cli-common-1.4.1-1.el6.noarch
katello-common-1.4.1-1.git.9.ff9a101.el6.noarch
katello-headpin-all-1.4.1-1.git.9.ff9a101.el6.noarch
katello-glue-candlepin-1.4.1-1.git.9.ff9a101.el6.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-selinux-1.4.1-1.el6.noarch
katello-repos-1.4.1-1.el6.noarch


How reproducible:
# yum install -y katello-headpin-all
# katello-configure --deployment=headpin --user-pass=admin

Steps to Reproduce:
1.headpin --username "admin" --password "admin" system unregister --uuid efb6b63f-b030-465b-be19-56bfc8d2b98b --org 'Simple Org1366018327'
Found ambiguous Systems [ efb6b63f-b030-465b-be19-56bfc8d2b98b ] in Org [ Simple Org1366018327 ]

  
Actual results:
The Cli shows above error

Expected results:
The system should be unregistered

Additional info:

Comment 1 Bryan Kearney 2013-06-10 18:35:46 UTC
https://github.com/Katello/katello-cli/pull/40

Comment 2 Apurva Bhole 2013-06-17 14:14:25 UTC
This issue occures not just for the 'syetem unregister' command but for many other 'system ' commands when used with the uuid parameter. 
Known for:
system info  
system custom_info add
system custom_info update
system custom_info remove  

Note: This issue occues only when there are more than one systems in an Org.

Comment 3 Bryan Kearney 2013-08-02 18:52:56 UTC
SNAP0 contains these bug fixes. Moving to ON_QA.

Comment 4 Tazim Kolhar 2013-08-06 08:18:56 UTC
VERIFIED :

# rpm -qa | grep katello
katello-selinux-1.4.4-2.el6sat.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-certs-tools-1.4.2-2.el6sat.noarch
katello-common-1.4.3-5.el6sam_splice.noarch
katello-configure-1.4.4-2.el6sat.noarch
katello-cli-common-1.4.3-4.el6sat.noarch
katello-glue-elasticsearch-1.4.3-5.el6sam_splice.noarch
katello-headpin-all-1.4.3-5.el6sam_splice.noarch
katello-cli-1.4.3-4.el6sat.noarch
katello-glue-candlepin-1.4.3-5.el6sam_splice.noarch
signo-katello-0.0.10-2.el6sat.noarch
katello-headpin-1.4.3-5.el6sam_splice.noarch

# headpin --username "admin" --password "admin" system unregister --uuid 5f414794-7111-41f6-9ae3-1e28b458f312 --org ACME_Corporation
Successfully unregistered System [ 5f414794-7111-41f6-9ae3-1e28b458f312 ]

Comment 6 errata-xmlrpc 2013-10-01 11:10:10 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2013-1390.html