Bug 561068

Summary: Can't provision system using newest version of cobbler
Product: [Community] Spacewalk Reporter: Justin Sherrill <jsherril>
Component: WebUIAssignee: Justin Sherrill <jsherril>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: low    
Version: 0.7CC: cperry
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-16 12:56:30 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: 543511    

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