Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1109276 - Cobbler incompatible with newer koan; can't kickstart guests
Summary: Cobbler incompatible with newer koan; can't kickstart guests
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 2.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Stephen Herr
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
: 927060 928678 953939 (view as bug list)
Depends On:
Blocks: space22
TreeView+ depends on / blocked
 
Reported: 2014-06-13 14:38 UTC by Stephen Herr
Modified: 2014-07-17 08:41 UTC (History)
4 users (show)

Fixed In Version: spacewalk-java-2.2.115 spacewalk-schema-2.2.30 cobbler20-2.0.11-27
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-17 08:41:23 UTC
Embargoed:


Attachments (Terms of Use)

Description Stephen Herr 2014-06-13 14:38:03 UTC
Description of problem:
Currently the version of cobbler20 that we ship with Spacewalk is slightly incompatible with newer koan builds like the ones in Fedora. It makes it impossible to kickstart guests. See https://www.redhat.com/archives/spacewalk-list/2012-December/msg00153.html

How reproducible:
Always

Steps to Reproduce:
1. Attempt to kickstart a KVM guest on a Fedora 20 host

Actual results:
<type 'exceptions.KeyError'> 'interface_type'

Expected results:
Guest successfully kickstarts.

Comment 1 Stephen Herr 2014-06-13 14:59:23 UTC
Looks like these upstream cobbler commits are what we're missing:
3e264f186ad7a1964b7a2330ff6f2f73ffa26770
cf1ca6a021c20deb25019d597d504bbda43e008b

Comment 2 Stephen Herr 2014-06-13 17:29:05 UTC
Part of this problem is resolved by Spacewalk master commit:
0775a2f53835455c7ccb5e6ba3525c1f2a0064a2

However there are still additional problems, like getting cobbler to return the correct arch which newer koan pays attention to.

Comment 3 Jan Pazdziora 2014-06-19 08:36:12 UTC
How stable is currently cobbler in EPEL and/or in Fedoras? There were problems with SELinux there in the past but maybe they have been resolved by the respective maintainers in the mean time and cobbler20 could be retired?

Comment 4 Stephen Herr 2014-06-19 12:21:41 UTC
I don't know, it's worth investigating. I'll leave the NEEDINFO flag on until I've checked.

Comment 5 Stephen Herr 2014-06-24 21:10:27 UTC
Either way we'll need to correctly set the Cobbler arch for distributions so that we can correctly interoperate with newer koan packages. Committing to Spacewalk master:
5bb82df36c82ace0df08667244a011ac16b60307

Comment 6 Stephen Herr 2014-06-24 22:14:08 UTC
Checkstyle fix:
74a0b1896889347ac302fd5f22ca681fa31e43ad

Comment 7 Stephen Herr 2014-07-01 19:23:44 UTC
CobblerSyncTask is supposed to be able to sync Distros / Kickstart Trees that have changed, but this has apparently been broken for a long time. These commits fix it and forces one sync to happen the next something changes in Cobbler or Taskomatic is restarted.
c6b9ad6028b764068490c7eee8d8451fe103666b
6e9b576f13989f7c353fc6da6983c17bcf22de77

Comment 8 Stephen Herr 2014-07-01 19:55:12 UTC
With these changes Spacewalk now works correctly with the koan packages available in EPEL and Fedora, and can do virtual guest provisionings.

Comment 9 Stephen Herr 2014-07-01 19:55:55 UTC
And Checkstyle fix:
9a01c0db9f5cf3bd00f6b8b218889a1c8c5cdb9d

Comment 10 Stephen Herr 2014-07-01 20:06:00 UTC
*** Bug 928678 has been marked as a duplicate of this bug. ***

Comment 11 Stephen Herr 2014-07-01 20:11:18 UTC
*** Bug 953939 has been marked as a duplicate of this bug. ***

Comment 12 Stephen Herr 2014-07-01 20:23:58 UTC
*** Bug 927060 has been marked as a duplicate of this bug. ***

Comment 13 Stephen Herr 2014-07-01 23:22:06 UTC
It turns out my first attempt to patch cobbler was not entirely successfull, we also need commits cc07f358 and de0aacd4 from upstream.

Committing:
4f926acb4da33d235ab81d682c04546d7dccc4af

Comment 14 Milan Zázrivec 2014-07-17 08:41:23 UTC
Spacewalk 2.2 has been released:

    https://fedorahosted.org/spacewalk/wiki/ReleaseNotes22


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