Bug 547605

Summary: dnsmasq init.d script kills wrong dnsmasq processes
Product: [Fedora] Fedora Reporter: James Ralston <ralston>
Component: dnsmasqAssignee: Patrick Laughton <jima>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: itamar, jima, markmc, nphilipp, veillard
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.52-1.fc11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-16 13:15:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
fix dnsmasq init.d script to not kill wrong dnsmasq processes
none
make sure init.d script condrestart() identifies correct dnsmasq process none

Description James Ralston 2009-12-15 05:17:54 UTC
Created attachment 378428 [details]
fix dnsmasq init.d script to not kill wrong dnsmasq processes

If libvirt is installed, it runs a separate dnsmasq process:

/usr/sbin/dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/default.pid --conf-file= --listen-address ... --except-interface lo --dhcp-range ...,...

The dnsmasq init.d script does not use the proper init.d functions that are constrained to consider only dnsmasq processes specified in the pid file. As a result, a "service dnsmasq stop" will kill libvirt's dnsmasq process.

The attached patch corrects the init.d script behavior. Please apply.

Version:

0:dnsmasq-2.51-1.fc12.x86_64

Comment 1 James Ralston 2009-12-15 05:25:11 UTC
Ok, I see now that this was partially fixed in Rawhide (bug 512664), but not completely.

I'll rework this patch against Rawhide's dnsmasq.

Comment 2 Itamar Reis Peixoto 2009-12-15 05:31:51 UTC
(In reply to comment #1)

ok, thanks.

Comment 3 Nils Philippsen 2010-01-12 11:41:41 UTC
Ping? If you don't have the time, I can rework the above patch against Rawhide and build updated packages, just give me a shout.

Comment 4 Itamar Reis Peixoto 2010-01-12 14:42:26 UTC
(In reply to comment #3)
go ahead.

Comment 5 James Ralston 2010-01-13 21:18:44 UTC
Created attachment 383561 [details]
make sure init.d script condrestart() identifies correct dnsmasq process

Here's a reworked patch for the init.d script against current Rawhide.

Comment 6 Itamar Reis Peixoto 2010-01-26 16:41:02 UTC
fixed here.

http://koji.fedoraproject.org/koji/buildinfo?buildID=153129

should I push an update for F-12 and F-11 ?

Comment 7 Fedora Update System 2010-01-26 17:33:45 UTC
dnsmasq-2.52-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/dnsmasq-2.52-1.fc12

Comment 8 Nils Philippsen 2010-01-26 18:01:45 UTC
> should I push an update for F-12 and F-11 ?    

That'd be great.

Comment 9 Fedora Update System 2010-01-26 18:58:27 UTC
dnsmasq-2.52-1.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/dnsmasq-2.52-1.fc11

Comment 10 Fedora Update System 2010-01-28 00:57:29 UTC
dnsmasq-2.52-1.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update dnsmasq'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2010-1152

Comment 11 Fedora Update System 2010-01-28 00:59:34 UTC
dnsmasq-2.52-1.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update dnsmasq'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-1160

Comment 12 Fedora Update System 2010-02-16 13:15:45 UTC
dnsmasq-2.52-1.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2010-02-16 13:22:07 UTC
dnsmasq-2.52-1.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.