Red Hat Bugzilla – Bug 517146
Deletion of org does not result in deletion of associated Kickstart profiles from Cobbler
Last modified: 2013-10-01 17:39:19 EDT
Description of problem:
If a user deletes an org from their Satellite, the Kickstart profiles that they have created will not be deleted from Cobbler, and can be viewed from another org.
Version-Release number of selected component (if applicable):
530, Stage build
Steps to Reproduce:
1. Create an org and grant it provisioning entitlements
2. Create several kickstart profiles under this org
3. Delete this org
4. Create another org and grant it provisioning entitlements
5. Login as the orgadmin for this new org
Old org's profiles can be viewed from the SDC of any Provisioning-entitled system
Old org's profiles cannot be viewed from the SDC of any Provisioning-entitled system
Appears to be due to the fact that an orphaned cfg file is left behind after deletion of the first org's kickstart profile:
# ll /var/lib/rhn/kickstarts/wizard
-rw-r--r-- 1 tomcat tomcat 8081 Oct 21 09:01 bz-517146-ks--43.cfg
^ cfg file for ks profile from deleted org #43.
In the new org, this cfg file shows up as a non-Satellite-managed kickstart profile. The associated ks profile data in the database has been deleted; it's just the cfg file that needs to be deleted.
*** Bug 837796 has been marked as a duplicate of this bug. ***
No, this is actually due to the fact that the Cobbler profiles are not removed when the Org is deleted.
$ cobbler profile list
Satellite 5.6 has been released. This bug was tracked under the release.
This bug was either VERIFIED or RELEASE_PENDING (re-verified prior shortly
Moving to CLOSED CURRENT_RELEASE.
Text from Upgrade Erratum follows:
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.