RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 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 "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". 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 "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-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 1425869 - Radiusd does not trigger modules.sql.fail trap if it can't connect to mysql server
Summary: Radiusd does not trigger modules.sql.fail trap if it can't connect to mysql s...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: freeradius
Version: 7.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Nikolai Kondrashov
QA Contact: Jaroslav Aster
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-22 16:00 UTC by Jaroslav Aster
Modified: 2019-03-06 01:52 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-01 20:38:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Reproducer script. (2.02 KB, application/x-shellscript)
2017-02-22 16:01 UTC, Jaroslav Aster
no flags Details
Log file for the old version of freeradius. (36.22 KB, text/plain)
2017-02-22 16:01 UTC, Jaroslav Aster
no flags Details
Log file for the new version of freeradius. (36.57 KB, text/plain)
2017-02-22 16:02 UTC, Jaroslav Aster
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:1954 0 normal SHIPPED_LIVE freeradius bug fix and enhancement update 2017-08-01 18:29:54 UTC

Description Jaroslav Aster 2017-02-22 16:00:33 UTC
Description of problem:

Radiusd does not trigger modules.sql.fail trap if it can't connect to mysql server. It triggers only modules.sql.close, but there is written in trigger.conf, that fail and close are two different actions.

# A connection to the DB has been closed
close = "${snmptrap}::serverModuleConnectionDown ${args}"

# Failed to open a new connection to the DB
fail = "${snmptrap}::serverModuleConnectionFail ${args}"

It is a regression. Older version freeradius-3.0.4-7.el7_3 triggers it.

See radiusd log files for old and new version or run reproducer trigger_reproducer.sh.


Version-Release number of selected component (if applicable):

freeradius-3.0.12-1.el7


How reproducible:

100%


Steps to Reproduce:

1, Install dependencies.

yum install -y freeradius freeradius-utils net-snmp net-snmp-utils freeradius-mysql mariadb-server mariadb-libs mariadb

Run trigger_reproducer.sh, it is attached, and check radiusd log, which is printed in the end of the reproducer.

trigger_reproducer.sh


Actual results:

Radiusd does not trigger modules.sql.fail if it can't connect to MySQL server.


Expected results:

Radius triggers modules.sql.fail.

Comment 1 Jaroslav Aster 2017-02-22 16:01:18 UTC
Created attachment 1256525 [details]
Reproducer script.

Comment 2 Jaroslav Aster 2017-02-22 16:01:56 UTC
Created attachment 1256526 [details]
Log file for the old version of freeradius.

Comment 3 Jaroslav Aster 2017-02-22 16:02:21 UTC
Created attachment 1256527 [details]
Log file for the new version of freeradius.

Comment 4 Nikolai Kondrashov 2017-02-24 16:39:51 UTC
Issue reported upstream: https://github.com/FreeRADIUS/freeradius-server/issues/1923

Comment 8 errata-xmlrpc 2017-08-01 20:38:04 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/RHEA-2017:1954


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