Bug 250588

Summary: Build hangs in network tests
Product: [Fedora] Fedora Reporter: Enrico Scholz <rh-bugzilla>
Component: nagios-pluginsAssignee: Mike McGrath <mmcgrath>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 7CC: jose.p.oliveira.oss
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: 2008-04-09 19:17:10 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 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