Bug 250588 - Build hangs in network tests
Build hangs in network tests
Product: Fedora
Classification: Fedora
Component: nagios-plugins (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Mike McGrath
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2007-08-02 07:06 EDT by Enrico Scholz
Modified: 2008-04-09 15:17 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-04-09 15:17:10 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Enrico Scholz 2007-08-02 07:06:33 EDT
Description of problem:

nagios-plugins buildprocess executes

| /bin/ping -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 -n 1
| PING 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):


How reproducible:

Comment 1 Dennis Gilmore 2007-08-02 14:15:22 EDT
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 15:17:10 EDT
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.