confconsole: default route not saved when configuring a static IP

Bug #303498 reported by Liraz
10
Affects Status Importance Assigned to Milestone
TurnKey Linux
Fix Released
High
Alon Swartz
2009.02-hardy-x86
New
Undecided
Unassigned

Bug Description

Jewok discovered that the default gateway is not setup correctly in /etc/network/interfaces when configuring a static IP with the configuration console.

Liraz (liraz-siri)
Changed in turnkeylinux:
assignee: nobody → alonswartz
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Alon Swartz (alonswartz) wrote :

This issue has been solved, and a fix commited to the turnkeylinux code repository and package archive.
Version: confconsole_0.9.1+2+g5e40435

The fix will be included in all new appliances, and current appliances can update using APT.

Changed in turnkeylinux:
status: Confirmed → Fix Committed
Revision history for this message
Jim Ewald (jewald) wrote :

The latest patch version is generating a Python TypeError when setting a static IP address on the appliance. I set all four fields in the static IP GUI and then selcted <OK>. Here is the traceback:

Traceback (most recent call last):
  File "/usr/bin/confconsole", line 208, in <module>
     main()
  File "/usr/bin/confconsole", line 204, in main
    TurnkeyConsole().loop()
  File "/usr/bin/confconsole", line 201, in loop
    self.dialog_adv()
  File "/usr/bin/confconsole", line 144, in dialog_adv
    method()
  File "/usr/bin/confconsole", line 167, in _adv_staticip
    err - ifutil.set_ipconf(*input)
  File "/usr/lib/confconsole/ifutil.py", line 234, in set_ipconf
    net.set_staticip(addr, netmask, gateway)
TypeError: set_staticIP() takes exactly 3 arguments (4 given)

The /etc/network/interfaces file is not updated after this error occurs.

Revision history for this message
Alon Swartz (alonswartz) wrote :

oh my, what a blunder...
I've updated the code and archive repositories with a fix: confconsole_0.9.1+3+g6fb0bec

Revision history for this message
Jim Ewald (jewald) wrote :

I wanted to confirm that the latest patch is working correctly. Thanks!

Revision history for this message
Alon Swartz (alonswartz) wrote :

fixed along with alot of other confconsole fixes and improvements in 2009.02 release

Changed in turnkeylinux:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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