Red Hat Bugzilla – Bug 801433
changes to kickstart channels via API calls don't get changed in the kickstart file
Last modified: 2012-11-01 12:18:52 EDT
Description of problem:
Using the perl API (for spacewalk 1.7), I can remove/add channels to a kickstart profile using kickstart.profile.setChildChannels.
However: using the webinterface, I see that, when I download the kickstart file, the old channels are still being used in the profile (the "repo --name" lines). Just pressing "Update kickstart" fixes it, but this seems very weird to me: shouldn't API kickstart changes in fact *change* the kickstart?
Version-Release number of selected component (if applicable):
Always, see problem description
kickstart file still uses the old channels
kickstart file should use the new channels
I found that by removing /var/lib/rhn/kickstarts/wizard/<ks-label>-<orgid>.cfg prior to calling kickstart.profile.setChildChannels, the kickstart file gets regenerated properly. But this would mean I always need to be on the spacewalk server when changing channels via the API.
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