Bug 561068 - Can't provision system using newest version of cobbler
Summary: Can't provision system using newest version of cobbler
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: WebUI
Version: 0.7
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Justin Sherrill
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space08
TreeView+ depends on / blocked
 
Reported: 2010-02-02 15:54 UTC by Justin Sherrill
Modified: 2010-02-16 12:59 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-02-16 12:56:30 UTC
Embargoed:


Attachments (Terms of Use)

Description Justin Sherrill 2010-02-02 15:54:54 UTC
When trying to re-provision a machine that does not have a system record defined, you will get an ISE with the newest version of cobbler.

The reason is that the get_system api call to cobbler is now returning a "~" instead of an empty map.  


Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map
	at org.cobbler.CobblerObject.lookupDataMapByName(CobblerObject.java:121)
	at org.cobbler.SystemRecord.lookupByName(SystemRecord.java:77)
	at com.redhat.rhn.manager.kickstart.cobbler.CobblerSystemCreateCommand.store(CobblerSystemCreateCommand.java:219)
	at com.redhat.rhn.manager.kickstart.KickstartScheduleCommand.store(KickstartScheduleCommand.java:583)
	at com.redhat.rhn.frontend.action.kickstart.ScheduleKickstartWizardAction.runThird(ScheduleKickstartWizardAction.java:458)



Seems like an api change in cobbler, will investigate that as well as put in a workaround.

Comment 1 Justin Sherrill 2010-02-02 16:06:17 UTC
Version of cobbler causing the problem:


[root@columbia cobbler]# rpm -q cobbler
cobbler-2.0.2-2.el5

Comment 2 Justin Sherrill 2010-02-02 16:18:55 UTC
Workaround for this issue on the spacewalk side of things:

d4343dd6afa1a5b4bf5b7b1ebfaa5933e01748bb

Comment 3 Michael Mráka 2010-02-16 12:59:58 UTC
Spacewalk 0.8 has been released


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