Bug 1207810 - RHEL7 gutterball installation missing c3p0 jar symlink
Summary: RHEL7 gutterball installation missing c3p0 jar symlink
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Reporting
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Devan Goodwin
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-31 18:45 UTC by Mike McCune
Modified: 2017-09-19 17:10 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-12 13:56:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Mike McCune 2015-03-31 18:45:25 UTC
* Install Satellite 6.1 Beta
* Notice that the status API for gutterball returns nothing:

# curl -k https://localhost:8443/gutterball/status
#

* should see:

#  curl -k https://localhost:8443/gutterball/status
{
  "version" : "1.0.13",
  "release" : "1",
  "request_locale" : "en_US"

* Dustin narrowed it down to a missing symlink in the gutterball jar dir:

# ls  /var/lib/tomcat/webapps/gutterball/WEB-INF/lib/ | grep c3p0
hibernate4-c3p0.jar


* that should be:

c3p0.jar
hibernate4-c3p0.jar

Comment 2 Devan Goodwin 2015-04-01 15:13:14 UTC
Fixed in candlepin.git: 5615d2eb32f2c7f6f986c43c7b1774a402c44f54

Will appear in: gutterball-1.0.15-1

Comment 3 Michael Stead 2015-04-24 17:41:54 UTC
To work around the issue for gutterball-1.0.14-1, as root:

$ cd /var/lib/tomcat/webapps/gutterball/WEB-INF/lib

# Create the missing symlink for c3p0.jar
$ ln -s /usr/share/java/c3p0.jar c3p0.jar

# Check to make sure that the symlink was correctly created.
# No need to worry about the permissions.
# hibernate4-c3p0.jar should already be there.
$ ls -al | grep c3p0
lrwxrwxrwx. 1 root   root     24 Apr 16 15:31 c3p0.jar -> /usr/share/java/c3p0.jar
lrwxrwxrwx. 1 tomcat tomcat   35 Apr 15 21:51 hibernate4-c3p0.jar -> /usr/share/java/hibernate4-c3p0.jar

#Restart tomcat
$ systemctl restart tomcat

# Verify that gutterball has started
$ curl -k https://localhost:8443/gutterball/status
{
  "version" : "1.0.14",
  "release" : "1",
  "request_locale" : "en_US"
}

NOTE:
====
Your c3p0 lib references should be:
/var/lib/tomcat/webapps/candlepin/WEB-INF/lib/c3p0.jar -> /usr/share/java/c3p0.jar -> /usr/share/java/c3p0-0.9.1.2.jar

Comment 6 Bryan Kearney 2015-04-30 16:31:17 UTC
I installed GA SNAP2 on RHEL7 and it installed correctly

[root@dhcp137-206 gems]# rpm -qa | grep gutterball
rubygem-hammer_cli_gutterball-0.0.1.2-1.el7sat.noarch
gutterball-1.0.15.0-1.el7.noarch
gutterball-certs-1.0-1.noarch
ruby193-rubygem-foreman_gutterball-0.0.1.9-1.el7sat.noarch

[root@dhcp137-206 gems]# uname -a
Linux dhcp137-206.rdu.redhat.com 3.10.0-229.1.2.el7.x86_64 #1 SMP Fri Mar 6 17:12:08 EST 2015 x86_64 x86_64 x86_64 GNU/Linux

[root@dhcp137-206 gems]# curl -k https://localhost:8443/gutterball/status
{
  "version" : "1.0.15.0",
  "release" : "1",
  "request_locale" : "en_US"
}[root@dhcp137-206 gems]#

Comment 7 Bryan Kearney 2015-08-11 13:30:21 UTC
This bug is slated to be released with Satellite 6.1.

Comment 8 Bryan Kearney 2015-08-12 13:56:29 UTC
This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015.


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