Bug 1503164 - Installation fails in disconnected environment
Summary: Installation fails in disconnected environment
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 2.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 2.1
Assignee: Alex Wood
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: 1501846 1504710 1540672
TreeView+ depends on / blocked
 
Reported: 2017-10-17 13:14 UTC by Barnaby Court
Modified: 2018-01-31 17:04 UTC (History)
10 users (show)

Fixed In Version: candlepin-2.1.8-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1501846
: 1504710 (view as bug list)
Environment:
Last Closed: 2017-10-26 22:04:31 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github candlepin candlepin pull 1773 0 None None None 2017-10-19 21:23:41 UTC

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


Note You need to log in before you can comment on or make changes to this bug.