Bug 1397497

Summary: Liquibase changed default blob type for PostgreSQL, causing the deploy to fail during liquibase update.
Product: [Community] Candlepin Reporter: David Šarman <dsarman>
Component: candlepinAssignee: Alex Wood <awood>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: low Docs Contact:
Priority: medium    
Version: 2.0CC: awood, bcourt, csnyder, redakkan, skallesh
Target Milestone: ---Keywords: Triaged
Target Release: ---   
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: 2019-09-24 17:13:51 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:

Description David Šarman 2016-11-22 16:08:41 UTC
Description of problem:
In Liquibase 3.5.2, the default blob type for PostgreSQL was changed from bytea to oid (see http://www.liquibase.org/2016/09/liquibase-3-5-2-released.html).
This causes the deploy(more specifically the liquibase update part) to fail.


How reproducible:
Always

Steps to Reproduce:
1.Update liquibase to version 3.5.2
2.Run deploy

Actual results:
Liquibase update fails with following exception:
Unexpected error running Liquibase: liquibase.exception.CustomChangeException: org.postgresql.util.PSQLException: ERROR: column "cert" is of type oid but expression is of type bytea
  Hint: You will need to rewrite or cast the expression.
  Position: 131

Expected results:
Liquibase update succeeds.

Comment 1 Barnaby Court 2016-11-28 16:00:47 UTC
We currently pin the version at 3.1.0, is there a particular feature you are looking for from 3.5.2?

Comment 2 Alex Wood 2016-11-29 14:43:03 UTC
Barnaby,

The Liquibase version now available in Fedora is now 3.5.2 so that's what bin/deploy is using.

David,

I've addressed that issue with 6f07576b11a65546efc44a83de9785b9f206f798 which is in master.  If you're working on a specific branch, you can cherry-pick that commit; it should apply cleanly.