Bug 768026

Summary: Generated manifest fails to load with undefined method `response' for #<ActiveRecord::RecordInvalid:0x7f32ef1ab9d0>
Product: Red Hat Satellite Reporter: Eric Sammons <esammons>
Component: APIAssignee: Bryan Kearney <bkearney>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.0.1CC: bkearney, mmccune
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-27 00:32:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 703617, 747354    

Description Eric Sammons 2011-12-15 14:50:49 UTC
Description of problem:
Sys Admin generates a manifest, downloads manifest, and attempts to load manifest into SAM.  At this point a undefined method is returned.

Version-Release number of selected component (if applicable):
katello-headpin-all-0.1.116-2.el6.noarch

[production.log]

Importing manifest for provider Red Hat
Failed to create product Red Hat Enterprise Linux High Availability for RHEL Server for provider Glue::Candlepin::Product: Validation failed: Products within an organization must have unique name., /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.10/lib/active_record/validations.rb:49:in `save!'

[/production.log]

Products in manifest.



Contract Number
Quantity Applied
Type
Expiration Date
Entitlement Certificate
Resilient Storage (8 sockets)
	2635097	2	System: Physical	 11/15/2012	View | Download
High-Availability (8 sockets)
	2635096	2	System: Physical	 11/15/2012	View | Download
Red Hat Enterprise Linux Server, Self-support (1-2 sockets) (Up to 1 guest)
	2635101	2	System: Physical	 11/17/2012	View | Download
Red Hat Enterprise Linux Server, Premium (1-2 sockets) (Unlimited guests)
	2635095	2	System: Physical	 11/15/2012	View | Download

Comment 1 Eric Sammons 2011-12-15 15:11:26 UTC
Second attempt with new manifest resulted in Bad data in export error.  Attaching production.log.

Comment 3 Eric Sammons 2011-12-16 20:52:05 UTC
With the latest test run, UI error follows:

undefined method `response' for #
undefined method `response' for #<ActiveRecord::RecordInvalid:0x7f1878019bd0>

Attaching manifest and production.log.

Comment 7 Bryan Kearney 2011-12-19 21:32:42 UTC
Working for me.

Comment 8 Eric Sammons 2011-12-20 15:03:14 UTC
latest build works. -VERIFIED.

Comment 10 Mike McCune 2013-08-16 18:15:21 UTC
getting rid of 6.0.0 version since that doesn't exist