Bug 1503164

Summary: Installation fails in disconnected environment
Product: [Community] Candlepin Reporter: Barnaby Court <bcourt>
Component: candlepinAssignee: Alex Wood <awood>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 2.1CC: awood, bbuckingham, csnyder, ehelms, jswensso, katello-qa-list, kupo, mstead, redakkan, skallesh
Target Milestone: ---Keywords: Triaged
Target Release: 2.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: candlepin-2.1.8-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1501846
: 1504710 (view as bug list) Environment:
Last Closed: 2017-10-26 22:04:31 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: 1501846, 1504710, 1540672    

Comment 1 Alex Wood 2017-10-19 21:23:42 UTC
This issue was caused by changeset files that referenced the version 3.5 Liquibase schema.  Liquibase 3.5 is available in Fedora (which most of our developers use) but only 3.1 is available in RHEL.  When Liquibase parses a changelog file and sees a version of the schema that isn't available (i.e. not packaged in the Liquibase jar file) it attempts to access the schema over http.  Version 3.1 is less that 3.5 so any RHEL 7 machine is going to download the schema.  In the disconnected case, the schema is unreachable and Liquibase fails.

Comment 2 Alex Wood 2017-10-20 13:54:17 UTC
Users encountering this bug can fix it manually using sed:

$ sed -i '1,10s/3.5.xsd/3.1.xsd/' /var/lib/tomcat/webapps/candlepin/WEB-INF/classes/db/changelog/*.xml