Bug 1193944

Summary: dhclient & dhcpd don't work with bind-9.10 when running in background
Product: [Fedora] Fedora Reporter: Jiri Popelka <jpopelka>
Component: dhcpAssignee: Jiri Popelka <jpopelka>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: high    
Version: 22CC: jpopelka, psimerda, thozza
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-19 14:57:50 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:
Bug Depends On:    
Bug Blocks: 1181562    

Description Jiri Popelka 2015-02-18 15:36:29 UTC
Using dhcp-4.3.1/2 together with bind-9.10.1/2

Run 'dhclient em1', dhclient obtains an address, then goes to running in background and stops reacting. Once the address lifetime decreases to 0, it's removed from interface and machine is left without address.

When I prevent it from daemonizing by using -d, i.e. 'dhclient -d em1', it works, but it's impossible to stop it (Ctrl+C) and I have to 'kill -9' it.

Dhcpd seems to have the same problem.

strace shows a lot of futex() calls, but I don't know if that's related.

Comment 1 Jiri Popelka 2015-02-18 15:59:08 UTC
http://fedoraproject.org/wiki/Changes/BIND_9.10
says that:
Adaptive mutex locks are now used on systems which support them.

If that's related, maybe we can try to disable them somehow.

Comment 2 Jiri Popelka 2015-02-18 16:29:07 UTC
The only work-around until we have a fix is to downgrade back to bind-9.9
https://koji.fedoraproject.org/koji/buildinfo?buildID=598877
https://koji.fedoraproject.org/koji/buildinfo?buildID=599854

I put the x86_64 rpms also to
https://jpopelka.fedorapeople.org/dhcp/bz1193944/
in case the koji builds are deleted any time soon.

Comment 3 Jiri Popelka 2015-02-18 17:16:25 UTC
(In reply to Jiri Popelka from comment #1)
> http://fedoraproject.org/wiki/Changes/BIND_9.10
> says that:
> Adaptive mutex locks are now used on systems which support them.
> 
> If that's related, maybe we can try to disable them somehow.

Building bind neither with 
--with-locktype=standard
nor
--with-locktype=adaptive
makes any change.

Comment 4 Jiri Popelka 2015-02-19 08:38:05 UTC
(In reply to Jiri Popelka from comment #2)
> The only work-around until we have a fix is to downgrade back to bind-9.9

Or to start playing with internal dhcp client in NetworkManager:
# echo "dhcp=internal" >> /etc/NetworkManager/NetworkManager.conf

Comment 5 Jiri Popelka 2015-02-19 14:57:50 UTC

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