Hello Uwe, I see your problem. I want to ask, what led you to your solution and why didn't you just store/update the file, when a kickstrat gets renamed?
Sorry, it took me that long to check your patch. Regards, Tomas -- Tomas Lestach RHN Satellite Engineering, Red Hat On Tuesday 08 of November 2011 15:09:57 Uwe Gansert wrote: > Hi, > > I noticed something that I would call a little bug in spacewalk. > If you have uploaded/created a kickstart/autoyast profile and then you > rename the profile in the webfrontend, the filename in > /var/lib/rhn/kickstarts/uploads/ or /var/lib/rhn/kickstarts/wizard/ stays > the same. > That leads to problems when you create a 2nd profile now with the old name > that was used before. > So if you have created a kickstart "test_profile" and then you rename it > later to "webserver_profile" and then you create a new "test_profile", your > webserver_profile is lost as a file. > > I have attached a patch that solves the problem but I'm not sure if it's the > best way to fix it. > Something I don't do in the patch is deleting the old files if a rename has > happened. > > What the patch does is: > * change getCobblerFileName() to always calculate the name and never read it > from the cobbler DB > > * create an empty file if you used the wizard and did a rename of a profile, > because otherwise cobbler would complain that it can not find the new file. > That's only needed with a wizard profile > > * if you rename a profile, change the "Kickstart" (filepath) in cobbler too > > I'm not 100% happy with the empty file creation but I did not see an easy > way how to solve it differently. _______________________________________________ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel