Bug 1515614

Summary: Add pre-upgrade check to detect if there are bad content definitions
Product: Red Hat Satellite Reporter: Kavita <kgaikwad>
Component: Satellite MaintainAssignee: Kavita <kgaikwad>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: high    
Version: 6.3.0CC: apatel, bbuckingham, inecas, kgaikwad, ktordeur, mmccune, sabnave
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: 2018-02-01 18:03:52 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:
Bug Depends On:    
Bug Blocks: 1496794    

Description Kavita 2017-11-21 06:03:22 UTC
Description of problem:

candlepin migration step failed during installer run with following error:

liquibase --driver=org.postgresql.Driver --classpath=/usr/share/java/postgresql-jdbc.jar:/var/lib/tomcat/webapps/candlepin/WEB-INF/classes/ --changeLogFile=db/changelog/changelog-update.xml --url=jdbc:postgresql:candlepin --username=candlepin  --password=<PASSWORD> migrate -Dcommunity=False

If the content id is only being referenced by the default environment and no place else then it leads to above failure.

There should be check needed to detect if there are any bad content definitions.


Additional info:

Original bugzilla for reference - https://bugzilla.redhat.com/show_bug.cgi?id=1503176

Comment 1 Satellite Program 2017-11-21 07:16:00 UTC
Upstream bug assigned to kgaikwad

Comment 4 Mike McCune 2018-02-01 18:03:52 UTC
this is taken care of with this bug:

https://bugzilla.redhat.com/show_bug.cgi?id=1520326

marking as a dupe

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