Bug 473885

Summary: "ipcalc: netmask or prefix expected " during network initialization
Product: [Fedora] Fedora Reporter: Joachim Backes <joachim.backes>
Component: dhcpAssignee: David Cantrell <dcantrell>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 10CC: ajschult784, dcantrell, notting, wwoods
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-12-07 04:24:15 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 Joachim Backes 2008-12-01 10:26:12 UTC
Description of problem:
During bootup and each "/etc/init.d/network restart" getting the following message (new in F10 - did't get in F9):

------------------------ snip ---------------------
Bringing up loopback interface:
Bringing up interface eth0:
Determining IP information for eth0...Nothing to flush.
ipcalc: netmask or prefix expected
Usage: ipcalc [OPTION...]
  -b, --broadcast     Display calculated broadcast address
  -h, --hostname      Show hostname determined via DNS
  -m, --netmask       Display default netmask for IP (class A, B, or C)
  -n, --network       Display network address
  -p, --prefix        Display network prefix
  -s, --silent        Don't ever display error messages

Help options:
  -?, --help          Show this help message
  --usage             Display brief usage message
Nothing to flush.
Nothing to flush.
-------------------------- snip ----------------------
Version-Release number of selected component (if applicable):
initscripts-8.86-1.i386

How reproducible:
Each time

Steps to Reproduce:
1.Boot the box, or restart the network
2.
3.
  
Actual results:
ipcalc warning

Expected results:
no ipcalc warning

Additional info:
1. The network runs OK
2. NetworkManager is switched off on my box. But the messages appears too if I use NetworkManager

Comment 1 Bill Nottingham 2008-12-01 17:12:01 UTC
Please attach your config files.

Comment 2 Joachim Backes 2008-12-01 17:52:18 UTC
/etc/sysconfig/network-scripts/ifcfg-eth0:

# nVidia Corporation nForce2 Ethernet Controller
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:0c:76:c0:40:36
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
PEERDNS=no
IPV6INIT=no
NM_CONTROLLED=no

Do you need more config files?

Comment 3 Bill Nottingham 2008-12-01 18:15:38 UTC
Can you attach your /var/run/dhclient-eth0.lease file?

This *looks* to be coming from dhclient-script.

Comment 4 Joachim Backes 2008-12-02 06:01:17 UTC
I'm sorry, but there is no file  /var/run/dhclient-eth0.lease. The only one is /var/run/dhclient-eth0.pid

Comment 5 David Cantrell 2008-12-04 03:44:27 UTC
I've got a patch for dhclient-script coming in a testing update.

Comment 6 Fedora Update System 2008-12-04 03:49:50 UTC
dhcp-4.0.0-33.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/dhcp-4.0.0-33.fc10

Comment 7 Joachim Backes 2008-12-04 07:21:37 UTC
By installing dhclient from this package, I got rid from the ipcalc message.

Comment 8 Fedora Update System 2008-12-07 04:24:12 UTC
dhcp-4.0.0-33.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Andrew Schultz 2008-12-16 05:44:47 UTC
Despite the announcement here and on the fedora-package-announce list and the status listed on https://admin.fedoraproject.org/updates/dhcp-4.0.0-33.fc10 it seems this update has not hit the fedora repositories.

http://download.fedora.redhat.com:/pub/fedora/linux/updates/10/i386/ still has 4.0.0-32 (which seems to have gone out just ~9 minutes before 4.0.0-33).