Bug 952106

Summary: Nightly : Importing manifests gives ambigious return exit code even after the failure
Product: Red Hat Satellite Reporter: Tazim Kolhar <tkolhar>
Component: Content ManagementAssignee: Tom McKay <tomckay>
Status: CLOSED CURRENTRELEASE QA Contact: Kedar Bidarkar <kbidarka>
Severity: medium Docs Contact:
Priority: unspecified    
Version: NightlyCC: cwelton, gkhachik, kbidarka, mmccune, tomckay
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: 952104 Environment:
Last Closed: 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: 952104    
Bug Blocks:    

Description Tazim Kolhar 2013-04-15 08:21:12 UTC
+++ This bug was initially created as a clone of Bug #952104 +++

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
ruby193-rubygem-foreman-katello-engine-0.0.4-3.el6.noarch
katello-configure-1.3.6-1.git.1223.a283dbf.el6.noarch
katello-common-1.3.14-1.git.1213.1570290.el6.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-agent-1.3.1-1.git.1724.e6e8050.el6.noarch
ruby193-rubygem-katello_api-0.0.2-2.el6.noarch
katello-all-1.3.14-1.git.1213.1570290.el6.noarch
katello-cli-common-1.3.5-1.git.250.1570290.el6.noarch
katello-qpid-client-key-pair-1.0-1.noarch
katello-glue-elasticsearch-1.3.14-1.git.1213.1570290.el6.noarch
katello-repos-1.3.2-1.git.2025.9dfcc69.el6.noarch
katello-certs-tools-1.3.0-1.git.2926.e6e8050.el6.noarch
katello-glue-foreman-1.3.14-1.git.1213.1570290.el6.noarch
katello-glue-pulp-1.3.14-1.git.1213.1570290.el6.noarch
katello-selinux-1.3.1-1.git.1882.e6e8050.el6.noarch
katello-1.3.14-1.git.1213.1570290.el6.noarch
katello-cli-1.3.5-1.git.250.1570290.el6.noarch
katello-glue-candlepin-1.3.14-1.git.1213.1570290.el6.noarch
katello-qpid-broker-key-pair-1.0-1.noarch


How reproducible:
# yum install -y katello-all
# katello-configure --user-pass=PASSWORD

Steps to Reproduce:
1.katello -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:

Comment 1 Mike McCune 2013-04-15 21:22:46 UTC
lowering to medium, this isn't *that* severe

Comment 2 Tom McKay 2013-04-30 18:15:25 UTC
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)

Comment 3 Tom McKay 2013-04-30 18:18:42 UTC
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)

Comment 6 Kedar Bidarkar 2013-10-23 13:04:29 UTC
[root@xxxxx ~]# katello -u admin -p admin provider import_manifest --name "Red Hat" --org testorg --file "/root/manifest_prod_postmdp.zip" 
Provider [ Red Hat ] failed to import manifest: R
[root@xxxx ~]# echo $?
65


verified with Satellite-6.0.2-RHEL-6-20131021.0/

Comment 7 Bryan Kearney 2014-04-24 17:11:21 UTC
This was verified and delivered with MDP2. Closing it out.

Comment 8 Bryan Kearney 2014-04-24 17:12:16 UTC
This was delivered and verified with MDP2. Closing the bug.