[Bug 868253] New: DHCP leaases are not entered in the dhcpd.leases file
https://bugzilla.novell.com/show_bug.cgi?id=868253 https://bugzilla.novell.com/show_bug.cgi?id=868253#c0 Summary: DHCP leaases are not entered in the dhcpd.leases file Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: bernet@physik.uzh.ch QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0 Hi there, DHCP leases are not entered in the dhcpd.leases file after the first rewrite of the dhcpd.leases file. On my machine the dhcpd.leases file is rewritten every hour. The leases are written to dhcpd.leases until it tries to rewrite the file. dhcpd.leases~ is deleted, but then something fails. dhcpd.leases is not moved to dhcpd.leases~ but also not populated anymore. lsof of the dhcpd process shows the /var/lib/dhcp/db/dhcpd.leases has been deleted ... dhcpd 26423 dhcpd 6u REG 8,6 38254 784945 /var/lib/dhcp/db/dhcpd.leases.xxxxx (deleted) dhcp version 4.2.5.P1-0.6.5.1 Reproducible: Always Steps to Reproduce: 1. wait until the file /var/lib/dhcp/db/dhcpd.leases get rewritten 2. no new leases are added to file /var/lib/dhcp/db/dhcpd.leases and the /var/lib/dhcp/db/dhcpd.leases~ file has been removed Actual Results: no new leases are added to file /var/lib/dhcp/db/dhcpd.leases and the /var/lib/dhcp/db/dhcpd.leases~ file has been removed Expected Results: /var/lib/dhcp/db/dhcpd.leases should be copied to /var/lib/dhcp/db/dhcpd.leases~ and new leases should be added to /var/lib/dhcp/db/dhcpd.leases It's not an apparmor problem. I see the same behaviour with apparmor stopped. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=868253 https://bugzilla.novell.com/show_bug.cgi?id=868253#c zhang jiajun <jzhang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jzhang@suse.com AssignedTo|bnc-team-screening@forge.pr |mt@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=868253 https://bugzilla.novell.com/show_bug.cgi?id=868253#c1 --- Comment #1 from Roland Bernet <bernet@physik.uzh.ch> 2014-04-29 10:44:55 UTC --- I investigated a bit further. The problem arises because at start of the dhcp deamon (at least in the chroot environement) the new created dhcpd.leases file belongs to root. The deamon however runs as user dhcpd and therefore is not allowed to rename etc. the dhcpd.leases file. If the owner of the dhcpd.leases file is changed by hand after the daemon start with e.g. chown dhcpd:nogroup /var/lib/dhcpd/db/dhcpd.leases* everything is working fine. Not sure if this needs to be fixed in dhcpd itself or in systemd. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=868253 https://bugzilla.novell.com/show_bug.cgi?id=868253#c2 Marius Tomaschewski <mt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |bernet@physik.uzh.ch --- Comment #2 from Marius Tomaschewski <mt@suse.com> 2014-06-10 03:06:44 UTC --- This needed a fix inside of the daemon to chown the leasedb before it changes to the run user. A fixed package (using a fixed dir) should appear soon at: http://download.opensuse.org/repositories/home:/mtomaschewski:/branches:/ope... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=868253 https://bugzilla.novell.com/show_bug.cgi?id=868253#c3 --- Comment #3 from Bernhard Wiedemann <bwiedemann@suse.com> 2014-06-10 06:00:28 CEST --- This is an autogenerated message for OBS integration: This bug (868253) was mentioned in https://build.opensuse.org/request/show/236699 13.1 / dhcp https://build.opensuse.org/request/show/236700 Factory / dhcp -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=868253 https://bugzilla.novell.com/show_bug.cgi?id=868253#c4 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:running:57787:low --- Comment #4 from Swamp Workflow Management <swamp@suse.de> 2014-06-11 13:39:18 UTC --- An update workflow for this issue was started. This issue was rated as low. Please submit fixed packages until 2014-07-09. https://swamp.suse.de/webswamp/wf/57787 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=868253 https://bugzilla.novell.com/show_bug.cgi?id=868253#c5 Roland Bernet <bernet@physik.uzh.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|bernet@physik.uzh.ch | --- Comment #5 from Roland Bernet <bernet@physik.uzh.ch> 2014-06-11 13:58:20 UTC --- (In reply to comment #2)
This needed a fix inside of the daemon to chown the leasedb before it changes to the run user.
A fixed package (using a fixed dir) should appear soon at:
http://download.opensuse.org/repositories/home:/mtomaschewski:/branches:/ope...
Just a short note to confirm that the new package in the download link above fixes the problem. Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=868253 https://bugzilla.novell.com/show_bug.cgi?id=868253#c6 Marius Tomaschewski <mt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Marius Tomaschewski <mt@suse.com> 2014-06-11 14:38:17 UTC --- Thanks and sorry for the delay! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=868253 https://bugzilla.novell.com/show_bug.cgi?id=868253#c9 --- Comment #9 from Swamp Workflow Management <swamp@suse.de> 2014-06-18 09:04:59 UTC --- openSUSE-RU-2014:0812-1: An update that has two recommended fixes can now be installed. Category: recommended (moderate) Bug References: 868250,868253 CVE References: Sources used: openSUSE 13.1 (src): dhcp-4.2.5.P1-0.6.9.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=868253 https://bugzilla.novell.com/show_bug.cgi?id=868253#c10 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:57787:low |maint:running:57787:low | |maint:released:sle11-sp3:58 | |113 --- Comment #10 from Swamp Workflow Management <swamp@suse.de> 2014-07-07 15:50:43 UTC --- Update released for: dhcp, dhcp-client, dhcp-debuginfo, dhcp-debugsource, dhcp-devel, dhcp-relay, dhcp-server Products: SLE-DEBUGINFO 11-SP3 (i386, ia64, ppc64, s390x, x86_64) SLE-DESKTOP 11-SP3 (i386, x86_64) SLE-SDK 11-SP3 (i386, ia64, ppc64, s390x, x86_64) SLE-SERVER 11-SP3 (i386, ia64, ppc64, s390x, x86_64) SLES4VMWARE 11-SP3 (i386, x86_64) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=868253 https://bugzilla.novell.com/show_bug.cgi?id=868253#c11 --- Comment #11 from Swamp Workflow Management <swamp@suse.de> 2014-07-07 19:05:02 UTC --- SUSE-RU-2014:0877-1: An update that has 5 recommended fixes can now be installed. Category: recommended (low) Bug References: 835818,842360,868250,868253,878846 CVE References: Sources used: SUSE Linux Enterprise Software Development Kit 11 SP3 (src): dhcp-4.2.4.P2-0.20.1 SUSE Linux Enterprise Server 11 SP3 for VMware (src): dhcp-4.2.4.P2-0.20.1 SUSE Linux Enterprise Server 11 SP3 (src): dhcp-4.2.4.P2-0.20.1 SUSE Linux Enterprise Desktop 11 SP3 (src): dhcp-4.2.4.P2-0.20.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=868253 https://bugzilla.novell.com/show_bug.cgi?id=868253#c Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:57787:low |maint:released:sle11-sp3:58 |maint:released:sle11-sp3:58 |113 |113 | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=868253 https://bugzilla.novell.com/show_bug.cgi?id=868253#c Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:released:sle11-sp3:58 |maint:released:sle11-sp3:58 |113 |113 maint:running:57787:low -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com