Description of problem: Importing the manifests gives ambigious return exit code even after failure Version-Release number of selected component (if applicable): # rpm -qa | grep katello katello-glue-candlepin-1.3.14-1.git.1213.1570290.el6.noarch katello-candlepin-cert-key-pair-1.0-1.noarch katello-selinux-1.3.1-1.git.1882.e6e8050.el6.noarch katello-repos-1.3.2-1.git.2025.9dfcc69.el6.noarch katello-headpin-1.3.14-1.git.1213.1570290.el6.noarch katello-cli-1.3.5-1.git.250.1570290.el6.noarch katello-common-1.3.14-1.git.1213.1570290.el6.noarch katello-headpin-all-1.3.14-1.git.1213.1570290.el6.noarch katello-configure-1.3.6-1.git.1223.a283dbf.el6.noarch katello-cli-common-1.3.5-1.git.250.1570290.el6.noarch katello-glue-elasticsearch-1.3.14-1.git.1213.1570290.el6.noarch katello-certs-tools-1.3.0-1.git.2926.e6e8050.el6.noarch How reproducible: # yum install -y katello-headpin-all # katello-configure --deployment=headpin Steps to Reproduce: 1.headpin -u admin -p **** provider import_manifest --name "Red Hat" --org testorg --file "/tmp/manifest6M.zip" Provider [ Red Hat ] failed to import manifest: This subscription management application has already been imported by another owner. 2.echo $? 0 Actual results: The return exit code should does not match for the failure Expected results: The return exit code should match for the failure Additional info:
Branch: refs/heads/master Home: https://github.com/Katello/katello-cli Commit: e8cb98e237c72f5b61f6a2929adb2687c4798cea https://github.com/Katello/katello-cli/commit/e8cb98e237c72f5b61f6a2929adb2687c4798cea Author: Tom McKay <thomasmckay> Date: 2013-04-30 (Tue, 30 Apr 2013)
Branch: refs/heads/master Home: https://github.com/Katello/katello Commit: 1ad9a356429f256a7212be9514d8d2433ddc72dd https://github.com/Katello/katello/commit/1ad9a356429f256a7212be9514d8d2433ddc72dd Author: Tom McKay <thomasmckay> Date: 2013-04-30 (Tue, 30 Apr 2013)
[root@nec-em26 ~]# headpin -u admin -p admin org create --name testorg Successfully created org [ testorg ] [root@nec-em26 ~]# headpin -u admin -p admin provider import_manifest --name "Red Hat" --org testorg --file og-sam-qe_stack_stage.zip Provider [ Red Hat ] manifest import complete [root@nec-em26 ~]# echo $? 0 [root@nec-em26 ~]# headpin -u admin -p admin org create --name testorg2 Successfully created org [ testorg2 ] [root@nec-em26 ~]# headpin -u admin -p admin provider import_manifest --name "Red Hat" --org testorg2 --file og-sam-qe_stack_stage.zip Provider [ Red Hat ] failed to import manifest: R [root@nec-em26 ~]# echo $? 65
Verified: * apr-util-ldap-1.3.9-3.el6_0.1.x86_64 * candlepin-0.8.26-1.el6sam.noarch * candlepin-scl-1-5.el6_4.noarch * candlepin-scl-quartz-2.1.5-5.el6_4.noarch * candlepin-scl-rhino-1.7R3-1.el6_4.noarch * candlepin-scl-runtime-1-5.el6_4.noarch * candlepin-selinux-0.8.26-1.el6sam.noarch * candlepin-tomcat6-0.8.26-1.el6sam.noarch * elasticsearch-0.19.9-8.el6sat.noarch * katello-candlepin-cert-key-pair-1.0-1.noarch * katello-certs-tools-1.4.2-2.el6sat.noarch * katello-cli-1.4.3-11.el6sat.noarch * katello-cli-common-1.4.3-11.el6sat.noarch * katello-common-1.4.3-15.el6sam_splice.noarch * katello-configure-1.4.4-4.el6sat.noarch * katello-glue-candlepin-1.4.3-15.el6sam_splice.noarch * katello-glue-elasticsearch-1.4.3-15.el6sam_splice.noarch * katello-headpin-1.4.3-15.el6sam_splice.noarch * katello-headpin-all-1.4.3-15.el6sam_splice.noarch * Katello-Katello-Sanity-ImportKeys-1.2-1.noarch * katello-selinux-1.4.4-2.el6sat.noarch * openldap-2.4.23-32.el6_4.1.x86_64 * openldap-devel-2.4.23-32.el6_4.1.x86_64 * ruby193-rubygem-ldap_fluff-0.2.2-1.el6sat.noarch * ruby193-rubygem-net-ldap-0.3.1-2.el6sat.noarch * thumbslug-0.0.34-1.el6sam.noarch * thumbslug-selinux-0.0.34-1.el6sam.noarch
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