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 1207810

Summary: RHEL7 gutterball installation missing c3p0 jar symlink
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: ReportingAssignee: Devan Goodwin <dgoodwin>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: bkearney, cwelton, dgoodwin, mstead
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-12 13:56:29 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:

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.