Hi,

I have been setting up cobbler over the last couple of days. All has
been going well, can network boot using profiles. Was trying to add a
system with a fixed IP address (would like DHCP to configure this for
me). So tried the following and got these errors when I try to add an ip
address:

#cobbler system add --name=leo-d --mac=00:10:18:41:49:38
--profile=optiportal
#cobbler system edit --name=leo-d --interface=eth1 --ip=192.168.1.4
invalid format for IP address (192.168.1.4)

I am not sure what is wrong with the format of my IP address?

/var/log/cobbler/cobbler.log

# tail -n20 /var/log/cobbler/cobbler.log 
Thu Dec 17 16:33:18 2009 - INFO | get_item; ['system', 'leo-d']
Thu Dec 17 16:33:18 2009 - DEBUG | authorize; ['<DIRECT>',
'modify_system', <cobbler.item_system.System instance at
0x7fc460088050>, 'modify_interface', True]
Thu Dec 17 16:33:18 2009 - INFO | REMOTE authorization result: True;
user(?)
Thu Dec 17 16:33:18 2009 - INFO | find_items; ['system']
Thu Dec 17 16:33:18 2009 - INFO | Exception occured: <class
'cobbler.cexceptions.CX'>
Thu Dec 17 16:33:18 2009 - INFO | Exception value: 'invalid format for
IP address (192.168.1.4)'
Thu Dec 17 16:33:18 2009 - INFO | Exception Info:
  File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 1725,
in _dispatch
    return method_handle(*params)
   File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 829,
in xapi_object_edit
    self.modify_system(handle, 'modify_interface', imods, token)
   File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 755,
in modify_system
    return self.modify_item("system",object_id,attribute,arg,token)
   File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 748,
in modify_item
    return method(arg)
   File "/usr/lib/python2.6/site-packages/cobbler/item_system.py", line
511, in modify_interface
    if field == "ipaddress"     : self.set_ip_address(value, interface)
   File "/usr/lib/python2.6/site-packages/cobbler/item_system.py", line
295, in set_ip_address
    raise CX(_("invalid format for IP address (%s)") % address)

Any help would be appreciated?
Thanks,
Ashley

-- 
Ashley Wright
HPC and Research Support Group
Queensland University of Technology (QUT)

_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to