Bug 797906 - Cobbler: physical machine provisioning - webui: ISE (logs: duplicate IP)
Summary: Cobbler: physical machine provisioning - webui: ISE (logs: duplicate IP)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 1.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Milan Zázrivec
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: 790326 space18
TreeView+ depends on / blocked
 
Reported: 2012-02-27 13:59 UTC by Lukas Pramuk
Modified: 2012-11-01 16:18 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-01 16:18:47 UTC
Embargoed:


Attachments (Terms of Use)

Description Lukas Pramuk 2012-02-27 13:59:57 UTC
Description of problem:
cannot provision physical machine through webUI:
after clicking [Schedule Kickstart and Finish] button i'm getting ISE 

Version-Release number of selected component (if applicable):
cobbler-2.0.7-15.el5sat (recommended by mzazrive for IPv6)
spacewalk-setup-1.6.5-1.el5
spacewalk-java-1.6.102-1.el5
spacewalk-taskomatic-1.6.102-1.el5
spacewalk-backend-tools-1.7.19-1.el5

How reproducible:
- currently 100% in my "setup" :)
- for various machines with various kickstart profiles

Steps to Reproduce:
1. navigate to Systems - <select a machine> - Provisioning - Kickstart at Spacewalk's webUI
2. click [Schedule Kickstart and Finish] button
3. get ISE Status 500
  
Actual results:
Getting ISE 

Expected results:
Getting the page showing a kickstarting progress

Additional info:

catalina.out:
 Mon Feb 27 07:48:15 2012 - INFO | Exception value: 'IP address duplicated: 192.168.122.1'

cobbler.log:
Mon Feb 27 07:48:15 2012 - INFO | find_items; ['system']
Mon Feb 27 07:48:15 2012 - INFO | Exception occured: cobbler.cexceptions.CX
Mon Feb 27 07:48:15 2012 - INFO | Exception value: 'IP address duplicated: 192.168.122.1'
Mon Feb 27 07:48:15 2012 - INFO | Exception Info:
  File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 1758, in _dispatch
    return method_handle(*params)
   File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 765, in modify_system
    return self.modify_item("system",object_id,attribute,arg,token)
   File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 758, in modify_item
    return method(arg)
   File "/usr/lib/python2.4/site-packages/cobbler/item_system.py", line 581, in modify_interface
    if field == "ipaddress"           : self.set_ip_address(value, interface)
   File "/usr/lib/python2.4/site-packages/cobbler/item_system.py", line 300, in set_ip_address
    raise CX("IP address duplicated: %s" % address)

Comment 2 Jan Pazdziora 2012-04-10 14:48:00 UTC
The code which raises the exception is

    def set_ip_address(self,address,interface):
        """
        Assign a IP or hostname in DHCP when this MAC boots.
        Only works if manage_dhcp is set in /etc/cobbler/settings
        """
        intf = self.__get_interface(interface)

        # FIXME: move duplicate supression code to the object validation
        # functions to take a harder line on supression?
        if address != "" and not str(self.config._settings.allow_duplicate_ips).lower() in [ "1", "y", "yes"]:
           matched = self.config.api.find_items("system", {"ip_address" : address})
           for x in matched:
               if x.name != self.name:
                   raise CX("IP address duplicated: %s" % address)

So it looks like cobbler already knows about system with the same IP address and is not happy about it.

Comment 4 Milan Zázrivec 2012-06-19 14:44:04 UTC
spacewalk.git master: 61b42bd084ebd879d8e7aba66bbcc7c3154f780e

Comment 5 Jan Pazdziora 2012-10-30 19:23:35 UTC
Moving ON_QA. Packages that address this bugzilla should now be available in yum repos at http://yum.spacewalkproject.org/nightly/

Comment 6 Jan Pazdziora 2012-11-01 16:18:47 UTC
Spacewalk 1.8 has been released: https://fedorahosted.org/spacewalk/wiki/ReleaseNotes18


Note You need to log in before you can comment on or make changes to this bug.