Bug 1133062 - Don't fail the %post script in katello-agent RPM install if connection fails
Summary: Don't fail the %post script in katello-agent RPM install if connection fails
Keywords:
Status: CLOSED DUPLICATE of bug 1130611
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: katello-agent
Version: 6.0.5
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Justin Sherrill
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-22 15:08 UTC by Mike McCune
Modified: 2019-04-01 20:26 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-16 19:02:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Mike McCune 2014-08-22 15:08:36 UTC
During installation of the katello-agent RPM we start the service and connect to the broker on the server.

If the firewall isn't configured correctly on the server the %post scriptlet will raise an error we should trap and let the %post script continue.  This will ensure the remainder of the %post will execute and the service will get added to chkconfig's auto started services.

 Installing : katello-agent-1.5.3-4.el6sat.noarch                        13/13Non-fatal POSTIN scriptlet failure in rpm package katello-agent-1.5.3-4.el6sat.noarch

Stopping goferd[FAILED]
Starting goferdTraceback (most recent call last):
  File "/usr/bin/goferd", line 17, in <module>
    from gofer.agent.main import main
  File "/usr/lib/python2.6/site-packages/gofer/agent/main.py", line 26, in <module>
    LogHandler.install()
  File "/usr/lib/python2.6/site-packages/gofer/agent/logutil.py", line 44, in install
    handler = LogHandler(address='/dev/log', facility=SysLogHandler.LOG_DAEMON)
  File "/usr/lib64/python2.6/logging/handlers.py", line 721, in __init__
    self._connect_unixsocket(address)
  File "/usr/lib64/python2.6/logging/handlers.py", line 737, in _connect_unixsocket
    self.socket.connect(address)
  File "<string>", line 1, in connect
socket.error: [Errno 111] Connection refused
[FAILED]
warning: %post(katello-agent-1.5.3-4.el6sat.noarch) scriptlet failed, exit status 1

Comment 1 RHEL Program Management 2014-08-22 15:23:07 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Mike McCune 2014-08-22 15:31:43 UTC
WORKAROUND/SOLUTION:

Configure the firewall properly on the Satellite server such that the gofer/amqp client can connect.

Comment 7 Justin Sherrill 2016-03-16 19:02:29 UTC
Duplicate of 1130611 which is making it to 6.2

*** This bug has been marked as a duplicate of bug 1130611 ***


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