Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1340197

Summary: Upgrade fails with 'Validation failed' error on migration
Product: Red Hat Satellite Reporter: John Mitsch <jomitsch>
Component: UpgradesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham, cwelton
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-03 00:18:57 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
traceback from migration error from satellite.log none

Description John Mitsch 2016-05-26 17:07:06 UTC
Created attachment 1162213 [details]
traceback from migration error from satellite.log

Description of problem:

I had one capsule and a repo synced (to the satellite, not the capsule) and I upgraded from 6.1 > 6.2.

here is the error (traceback attached)

== 20160108134600 CreateTemplateInputSets: migrating ==========================
-- create_table(:foreign_input_sets)rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

Validation failed: Interfaces host must have one primary interface/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/validations.rb:57:in `save!'


Version-Release number of selected component (if applicable):
6.1 > 6.2

How reproducible:
Always 

Steps to Reproduce:
1.Install 6.1, a capsule, and sync a repo
2.Upgrade to 6.2

Additional info:

I used the capsule install docs here to install manually http://www.katello.org/docs/2.4/installation/capsule.html

Comment 2 Brad Buckingham 2016-06-03 00:18:57 UTC
The issue raised by this bug looks the same as one of the fixes that went in with bug 1339682.  The specific issue was: http://projects.theforeman.org/issues/15239 .

I am going to close this one as a duplicate; however, please re-open if the issue resurfaces.

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