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:
https://github.com/Katello/katello-cli/pull/40
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.
SNAP0 contains these bug fixes. Moving to ON_QA.
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 ]
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