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 1741806 - No error message shown, when trying to start dnsmasq and port is already used by another process
Summary: No error message shown, when trying to start dnsmasq and port is already used...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: dnsmasq
Version: 7.6
Hardware: x86_64
OS: All
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Petr Menšík
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-16 07:17 UTC by Steffen Froemer
Modified: 2019-11-19 13:15 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1774028 (view as bug list)
Environment:
Last Closed: 2019-11-19 13:15:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Steffen Froemer 2019-08-16 07:17:07 UTC
Description of problem:
Starting the dnsmasq.service, when port 53 is already used by another process, the command is returning exitvalue 0 and failing silently.

Version-Release number of selected component (if applicable):
dnsmasq-2.76-9.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1. Install RHEL 7.6
2. yum install dnsmasq -y
3. python -m SimpleHTTPServer 53
4. systemctl start dnsmasq

Actual results:
Service fail to start silently. No output shown

Expected results:
# systemctl start dnsmasq
Job for dnsmasq.service failed because the control process exited with error code. See "systemctl status dnsmasq.service" and "journalctl -xe" for details.


Additional info:
[root@localhost ~]# systemctl start dnsmasq
[root@localhost ~]# echo $?
0
[root@localhost ~]# systemctl start httpd                                                                              
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
[root@localhost ~]# echo $?                                                                                            
1

Comment 2 Petr Menšík 2019-08-23 15:06:15 UTC
It is visible in systemctl dnsmasq status. But I admit that is not great way to check it.

It would require change of systemd service unit from Type=simple to forking or notify. Both implement status check and report if daemon fails.

I think notify is better alternative for systemd services is Type=notify, but no support for it exists in upstream. It should change way it switches to unprivileged user if abrt catching of core dumps should not break.
dnsmasq forks already second process, but not in way that can be reused for checking status on startup. Might be a little easier, but I think it is already considered superseded by notify. This is also not supported in current code.
Either way requires new code for reporting failure before serving requests.

Comment 3 Tomáš Hozza 2019-11-19 13:15:06 UTC
Hello.

RHEL-7 is in Maintenance Phase 1 in which qualified Critical and Important Security errata advisories (RHSAs) and Urgent Priority Bug Fix errata advisories (RHBAs) may be released as they become available [1]. This bugs is not critical and has no business justification or customer case attached. Since the functionality is still not implemented in upstream, it has been cloned into Fedora as Bug #1774028 for tracking purposes. There is no plan to add new features in dnsmasq in RHEL-7, therefore I'm closing this request as WONTFIX.

[1] https://access.redhat.com/support/policy/updates/errata#Maintenance_Support_1_Phase

Comment 4 RHEL Program Management 2019-11-19 13:15:13 UTC
Development Management has reviewed and declined this request. You may appeal this decision by using your Red Hat support channels, who will make certain  the issue receives the proper prioritization with product and development management.

https://www.redhat.com/support/process/production/#howto


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