Bug 250588 - Build hangs in network tests
Summary: Build hangs in network tests
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: nagios-plugins
Version: 7
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Mike McGrath
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-08-02 11:06 UTC by Enrico Scholz
Modified: 2008-04-09 19:17 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-04-09 19:17:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Enrico Scholz 2007-08-02 11:06:33 UTC
Description of problem:

nagios-plugins buildprocess executes

| /bin/ping 127.0.0.1 -n 1 | egrep -i ^round-trip|^rtt

during %configure and 'make'. Fedora's 'ping' does not have an argument for -n
and command hangs with

| # ping 127.0.0.1 -n 1
| PING 1 (0.0.0.1) 56(124) bytes of data.
|         ~~~~~~~
| ... C-c ...
| --- 1 ping statistics ---
| 919 packets transmitted, 0 received, 100% packet loss, time 918037ms

In a restrictive environment like a buildsystem, such network access is
prohibited. When packets will be dropped, this command stays forever.


Beside this, builds should not make network tests.


Version-Release number of selected component (if applicable):

nagios-plugins-1.4.8-1


How reproducible:

100%

Comment 1 Dennis Gilmore 2007-08-02 18:15:22 UTC
Indeed the buildsystem makes no guarantee of network being available.  it should
be assumed that it is not.

Comment 2 Mike McGrath 2008-04-09 19:17:10 UTC
Ok, this is fixed.  I've got a patch ready I'll try to send it upstream.  Let me
know if this is an acceptable fix. 

Basically it tries the network and if it fails, it fails and doesn't affect the
package (basically I added a -w 5 to the pings it tries)

if thats not acceptable please re-open the ticket and I'll re-think the patch


Note You need to log in before you can comment on or make changes to this bug.