Bug 983320
Summary: | NetworkManager dhcp4 dispatcher script contains incorrect server identifier | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Scott Shambarger <scott-fedora> | ||||
Component: | NetworkManager | Assignee: | Dan Williams <dcbw> | ||||
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 20 | CC: | cra, dcbw, hvtaifwkbgefbaei | ||||
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-06-29 12:04:08 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: | |||||||
Attachments: |
|
Description
Scott Shambarger
2013-07-11 00:31:09 UTC
Forgot to add all the relevant logs to the above report: Jul 10 16:16:23 dhclient[12533]: DHCPREQUEST on em1 to 192.168.100.1 port 67 (xid=0x51101039) Jul 10 16:16:23 dhclient[12533]: DHCPACK from 192.168.100.1 (xid=0x51101039) Jul 10 16:16:33 dhclient[12533]: DHCPREQUEST on em1 to 192.168.100.1 port 67 (xid=0x51101039) Jul 10 16:16:41 dhclient[12533]: DHCPREQUEST on em1 to 255.255.255.255 port 67 (xid=0x51101039) Jul 10 16:16:41 dhclient[12533]: DHCPNAK from 96.147.132.1 (xid=0x51101039) Jul 10 16:16:41 NetworkManager[546]: <info> (em1): DHCPv4 state changed renew -> expire Jul 10 16:16:41 dhclient[12533]: DHCPDISCOVER on em1 to 255.255.255.255 port 67 interval 8 (xid=0x255b9617) Jul 10 16:16:41 NetworkManager[546]: <info> (em1): DHCPv4 state changed expire -> preinit Jul 10 16:16:41 dhclient[12533]: DHCPREQUEST on em1 to 255.255.255.255 port 67 (xid=0x255b9617) Jul 10 16:16:41 dhclient[12533]: DHCPOFFER from 96.147.132.1 Jul 10 16:16:41 dhclient[12533]: DHCPACK from 96.147.132.1 (xid=0x255b9617) This message is a reminder that Fedora 18 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 18. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '18'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 18's end of life. Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 18 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior to Fedora 18's end of life. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Re-tested with NetworkManager-0.9.9.0-22.git20131003.fc20 and still received a stale server identifier in the dispatcher. Moving to F20 BTW, I've logged an upstream bug on bugzilla.gnome.org: Bug 721002 - NM dispatcher script DHCP4_ environment variables stale on bound after expire Tracked the problem down to nm-device.c... when the dhcp configuration is updated, the dispatcher is triggered before the dhcp4 state has been updated. I've attached a patch to re-orders the dhcp4 state change to before the call to dhcp4_lease_change. Applied to NetworkManager-0.9.9.0-22.git20131003 and tested, and the change does indeed fix the problem. I'll attach the patch, and see if I can create one for the upstream bug I filed too. Created attachment 846144 [details]
Patch to re-order dhcp4 state update before dhcp4_lease_change
Attached patch to upstream bug and sent to networkmanager-list. BTW, not sure if it's important, but for consistency perhaps the DHCP notifies should be sent before the IP notifies in notify_ip_properties()? (since DHCP would normally be expected to be updated before the ip settings?) broken in 0.9.9.0-38.git20131003.fc20. # cat /etc/NetworkManager/dispatcher.d/19-showenv #!/bin/bash env > /etc/dhcp/nm-showenv-"${1}"-"${2}".txt # pcregrep "192\.168\.1\.10\d" /etc/dhcp/nm-showenv-eno1-dhcp4-change.txt IP4_ADDRESS_0=192.168.1.101/24 192.168.1.1 DHCP4_IP_ADDRESS=192.168.1.102 # l /etc/dhcp/nm-showenv-eno1-dhcp4-change.txt -rw-r--r-- 1 root root 1354 2014-05-04 00:14:43.043124400 +0300 /etc/dhcp/nm-showenv-eno1-dhcp4-change.txt May 4 00:14:42 localhost dhclient[4462]: bound to 192.168.1.101 -- renewal in 41198 seconds. Comment 9 appears to be an unrelated bug... the server identifier is the dhcp server address, the "bound to" link is the client's assigned address. Might want to file a new bug. This message is a reminder that Fedora 20 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 20. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '20'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 20 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. |