Bug 797906
| Summary: | Cobbler: physical machine provisioning - webui: ISE (logs: duplicate IP) | ||
|---|---|---|---|
| Product: | [Community] Spacewalk | Reporter: | Lukas Pramuk <lpramuk> |
| Component: | Server | Assignee: | Milan Zázrivec <mzazrivec> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 1.6 | CC: | jpazdziora |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-11-01 16:18:47 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 790326, 871344 | ||
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.
spacewalk.git master: 61b42bd084ebd879d8e7aba66bbcc7c3154f780e Moving ON_QA. Packages that address this bugzilla should now be available in yum repos at http://yum.spacewalkproject.org/nightly/ Spacewalk 1.8 has been released: https://fedorahosted.org/spacewalk/wiki/ReleaseNotes18 |
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)