Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 918879

Summary: Failed to import manifest after SAM deployment is finished.
Product: [Retired] Subscription Asset Manager Reporter: qianzhan
Component: candlepinAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED DUPLICATE QA Contact: SAM QE List <sam-qe-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 1.2CC: liliu, qianzhan, sgao, tomckay
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-07 15:36:27 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:
Attachments:
Description Flags
debug_info
none
steps of deploying SAM none

Description qianzhan 2013-03-07 07:07:29 UTC
Description of problem:
Failed to import manifest after SAM deployment is finished.

Version-Release number of selected component (if applicable):
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-certs-tools-1.2.1-1h.el6_3.noarch
katello-cli-1.2.1-12h.el6_3.noarch
katello-cli-common-1.2.1-12h.el6_3.noarch
katello-common-1.2.1-17h.el6_4.noarch
katello-configure-1.2.3-4h.el6_4.noarch
katello-glue-candlepin-1.2.1-17h.el6_4.noarch
katello-headpin-1.2.1-17h.el6_4.noarch
katello-headpin-all-1.2.1-17h.el6_4.noarch
katello-selinux-1.2.1-2h.el6_3.noarch
candlepin-0.7.24-1.el6_3.noarch
candlepin-selinux-0.7.24-1.el6_3.noarch
candlepin-tomcat6-0.7.24-1.el6_3.noarch
thumbslug-0.0.28-1.el6_3.noarch
thumbslug-selinux-0.0.28-1.el6_3.noarch

How reproducible:
always

Steps to Reproduce:
1. Install katello-headpin-all on RHEL6.4-RC-1.0 and succeed.
	[root@dhcp-13-134 ~]# yum install -y katello-headpin-all
	...
	Dependency Updated:
	  httpd.x86_64 0:2.2.15-26.el6 httpd-tools.x86_64 0:2.2.15-26.el6 libsemanage.x86_64 0:2.0.43-4.2.el6 policycoreutils.x86_64 0:2.0.83-19.30.el6 rpm.x86_64 0:4.8.0-32.el6 rpm-libs.x86_64 0:4.8.0-32.el6 rpm-python.x86_64 0:4.8.0-32.el6

	Complete!

2. Deploy SAM, and error message pops up.
	[root@dhcp-13-134 ~]# katello-configure --deployment=sam
	Starting Katello configuration
	The top-level log file is [/var/log/katello/katello-configure-20130306-234221/main.log]
	Creating Katello database user
	############################################################ ... OK
	Creating Katello database
	############################################################ ... OK
	Creating Candlepin database user
	############################################################ ... OK
	err: /Stage[main]/Candlepin::Service/Service[tomcat6]: Failed to call refresh: Could not restart Service[tomcat6]: Execution of '/usr/sbin/service-wait tomcat6 restart' returned 4:  at /usr/share/katello/install/puppet/modules/candlepin/manifests/service.pp:18
	Populating Katello database schema
	############################################################ ... OK
	Initializing Katello data
	############################################################ ... OK

3.Create environment.
	[root@dhcp-13-134 ~]# headpin -u admin -p admin environment create --org=ACME_Corporation --name=env1 --prior=Library
	Successfully created environment [ env1 ]

4.Importing manifest failed.
	[root@dhcp-13-134 ~]# headpin -u admin -p admin provider import_manifest --org=ACME_Corporation --name='Red Hat' --file=manifest_hss_qe_sam_20130306.zip
	Importing manifest, please wait... Archive failed signature check

Actual results:
Failed to import manifest with message:"Importing manifest, please wait... Archive failed signature check"

Expected results:
Deployment should be succeess and manifest should be imported successfully.


Additional info:
1. We also tried to deploy SAM and import manifest on RHEL6.3GA, the same issue happened.
2. katello-debug file is attached when running "headpin -u admin -p admin provider import_manifest --org=ACME_Corporation --name='Red Hat' --file=manifest_hss_qe_sam_20130306.zip", please see : debug_info

Comment 1 qianzhan 2013-03-07 07:10:42 UTC
Created attachment 706382 [details]
debug_info

Comment 2 qianzhan 2013-03-07 07:17:44 UTC
The attachment "sam1.2.1-20130306.n.0_deployment" is about steps of deploying SAM

Comment 3 qianzhan 2013-03-07 07:18:31 UTC
Created attachment 706386 [details]
steps of deploying SAM

Comment 4 Tom McKay 2013-03-07 15:36:27 UTC
Manifest signature checking is now enabled in SAM. There was an issue with the install overwriting the upstream cert used to verify manifests. Please try again with SAM-1.2.1-RHEL-6-20130307.n.0

*** This bug has been marked as a duplicate of bug 918778 ***