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 1628111

Summary: upgrade of customer DB failed: Error running command: liquibase ...
Product: Red Hat Satellite Reporter: Jan Hutař <jhutar>
Component: CandlepinAssignee: Kevin Howell <khowell>
Status: CLOSED ERRATA QA Contact: Jan Hutař <jhutar>
Severity: high Docs Contact:
Priority: high    
Version: 6.4CC: bcourt, inecas, jhutar, khowell, mbacovsk, mmccune, pcreech
Target Milestone: 6.4.0Keywords: Triaged, Upgrades
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: candlepin-2.4.7-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1628594 1628595 (view as bug list) Environment:
Last Closed: 2018-10-16 19:04:49 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: 1628595    
Bug Blocks: 1603061    

Description Jan Hutař 2018-09-12 09:09:40 UTC
Description of problem:
[...]
Upgrade Step: migrate_candlepin...

########## ERROR ############
Error running command: 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://localhost/candlepin --username=candlepin --password=jFWAERT4FBBA5m4XdcjtuNB7CJ6q2X4M --logLevel=severe migrate -Dcommunity=False
Status code: 65280
[...]


Version-Release number of selected component (if applicable):
6.3.3 upgrade to satellite-6.4.0-14.el7sat.noarch


How reproducible:
always


Steps to Reproduce:
1. Have a Satellite with big customer DB
2. # yum -y upgrade
3. # satellite-installer --upgrade


Actual results:
Upgrade fails


Expected results:
Should work

Comment 8 Kevin Howell 2018-09-13 13:59:03 UTC
The java version that gets pulled in is not what we intended to install. We need Java 8 in candlepin, and only Java 7 got installed.

Looks like our Requires line is wrong. It's currently:

Requires: java >= 0:1.8.0

Needs to be either:

1) Requires: java >= 1:1.8.0
2) Requires: java-headless >= 1:1.8.0

If any beta users encounter this, the workaround is to install java 8 manually:

yum install -y java-1.8.0

Then proceed w/ upgrade per usual:

satellite-installer --upgrade

Comment 9 Patrick Creech 2018-09-24 14:45:39 UTC
snap 23, not 63

Comment 11 Bryan Kearney 2018-10-16 19:04:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:2927