use ip instead of ifconfig in nova/network/linux_net.py

Bug #713766 reported by Christian Berendt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Wishlist
Unassigned

Bug Description

there are several calls to ifconfig. i think it's better to use ip instead of ifconfig, because it's obsolete on systems with Linux kernel newer than 2.0. (Take a look into IFCONFIG(8)).

# grep -n ifconfig nova/network/linux_net.py
183: _execute("sudo ifconfig %s up" % interface)
198: _execute("sudo ifconfig %s %s broadcast %s netmask %s up" % \
206: _execute("sudo ifconfig %s up" % bridge)
208: _execute("sudo ifconfig %s up" % bridge)
336: (_out, err) = _execute("ifconfig %s" % device, check_exit_code=False)

Related branches

Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Thierry Carrez (ttx) wrote :

We should check that the fix for bug 710959 catches all of them.

Revision history for this message
Christian Berendt (berendt) wrote :

I replaced all calls to ifconfig with calls to ip. This should also fix #710959. Please proof the functionality on some systems before commiting the patch ;)

Changed in nova:
status: Confirmed → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → 2011.2
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.