Bug 126058
| Summary: | Host unreachable after network restart | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Ivan Gyurdiev <ivg231> |
| Component: | dhcp | Assignee: | Daniel Walsh <dwalsh> |
| Status: | CLOSED ERRATA | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | athlon | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2004-06-24 21:13:28 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: | |||
|
Description
Ivan Gyurdiev
2004-06-15 17:01:32 UTC
Could you get the previous version and install it and see if the
problem goes away.
The following is the latest patch that was applied.
--- dhcp-3.0.1rc12/client/scripts/linux.inherit-leases 2004-06-10
13:08:54.816030416 -0400
+++ dhcp-3.0.1rc12/client/scripts/linux 2004-06-10 13:18:39.232185656
-0400
@@ -123,16 +123,18 @@
# Bring down alias interface. Its routes will disappear too.
ifconfig $interface:0- inet 0
fi
- if [ $relmajor -lt 2 ] || ( [ $relmajor -eq 2 ] && [ $relminor -eq
0 ] )
- then
+ if [ x$keep_old_ip == xyes ]; then
+ ifconfig $interface up
+ elif [ $relmajor -lt 2 ] || ( [ $relmajor -eq 2 ] && [ $relminor
-eq 0 ] ) then
ifconfig $interface inet 0.0.0.0 netmask 0.0.0.0 \
broadcast 255.255.255.255 up
- # Add route to make broadcast work. Do not omit netmask.
- route add default dev $interface netmask 0.0.0.0
else
ifconfig $interface 0 up
fi
+ # Add route to make broadcast work. Do not omit netmask.
+ route add default dev $interface netmask 0.0.0.0
+
# We need to give the kernel some time to get the interface up.
sleep 1
--- dhcp-3.0.1rc12/client/dhclient.c.inherit-leases 2004-06-10
13:08:54.709046680 -0400
+++ dhcp-3.0.1rc12/client/dhclient.c 2004-06-10 13:08:54.891019016 -0400
@@ -387,6 +387,16 @@
continue;
script_init (ip -> client,
"PREINIT", (struct string_list *)0);
+ if (/* Has an active lease */
+ ip -> client -> active &&
+ !ip -> client -> active -> is_bootp &&
+ ip -> client -> active -> expiry > cur_time &&
+ /* Which is same as current ip */
+ ip -> primary_address.s_addr != 0 &&
+ ip -> client -> active -> address.len == 4 &&
+ memcmp (ip -> client -> active -> address.iabuf,
+ &ip->primary_address, 4) == 0)
+ client_envadd (ip -> client, "", "keep_old_ip", "%s", "yes");
if (ip -> client -> alias)
script_write_params (ip -> client, "alias_",
ip -> client -> alias);
Yes, I backed out this patch from the specfile and rebuilt. Without it, network works upon restart. Reinstalled new rpms, restarted network, stopped working again. I can confirm the same problem! The problem is we have two patches here, Do either of you know which patch is causing the problem. IE can either of you check if you move these lines back to where they used to be, does it work properly? + # Add route to make broadcast work. Do not omit netmask. + route add default dev $interface netmask 0.0.0.0 Can you send me a patch. Source RPMS are horrible to work with. Isn't it convenient how you can --short-circuit for bi and bc, but not bb.... Fixed in -rc14 An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2004-566.html |