<div class="gmail_quote">On Mon, Jan 19, 2009 at 11:32 PM, Darryl L. Pierce <span dir="ltr"><<a href="mailto:dpierce@redhat.com">dpierce@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The last network interface touched by the script is checked to see if it<br>
has active ARP entries. If not then the restart is considered a failure<br>
even through the service itself restarted.<br>
</blockquote><div><br>Background of this patch is that /etc/init.d/network script returns 0 even after printing FAILED for some interfaces.<br>Unfortunately checking for ARP cache entries is fragile: works after successful DHCP session, but fails if we configured static IP<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">+    if [[ $net_check =~ "no match found" ]]; then<br>
         log "Error configuring network, see $OVIRT_LOGFILE"<br>
</blockquote><div><br>should also return non-0 error code otherwise confusing  success message is printed right after error:<br><br><a href="http://apevec.fedorapeople.org/o-c-netcfg-fail-no-dhcp.png">http://apevec.fedorapeople.org/o-c-netcfg-fail-no-dhcp.png</a><br>
<br></div></div><br>