Bug 621493

Summary: Disabled cobbler when broken KS distro - many ISEs
Product: Red Hat Satellite 5 Reporter: Garik Khachikyan <gkhachik>
Component: OtherAssignee: Grant Gainey <ggainey>
Status: CLOSED DEFERRED QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: high Docs Contact:
Priority: high    
Version: 540CC: cperry, jsherril, mkoci
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: 2014-07-04 13:24:04 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: 462714    
Attachments:
Description Flags
cobbler traceback - broken KS distro none

Description Garik Khachikyan 2010-08-05 09:38:44 UTC
Created attachment 436789 [details]
cobbler traceback - broken KS distro

Description of problem:
Cobbler refuses to start/serve when there is "broken" KS distro available in the list (or: /var/lib/cobbler/config/distros.d)
The issue is that during it's service-start cobbler seems parses *.json files of the kickstart distros and analyzes them (like search for kernel distro files, etc.), and if there is, for some reason, not found the correct structure of the kernel, it throws an sys.out to the console and dies...
This kind of issue could happen when there is (in my case, for example) manually mounted an iso image, prepared the KS distro, and for some reason, when that mount point get lost, the next cobbler restart definitely will broke cobbler and many KS pages with it...

Version-Release number of selected component (if applicable):
cobbler-2.0.3.1-3.el5
spacewalk-java-1.1.41-1.el5
spacewalk-backend-1.1.42-1.el5

How reproducible:
always on broken KS distros

Steps to Reproduce:
1. Mount F13 iso to /tmp/F13-i386
2. Prepare a KS distro with a path to that mounted point
3. umount the directory
4. Restart SW
  
Actual results:
Terrible cobbler traceback in console, pages related KS not opening (500 ISE)

Expected results:
Just marking that distro-s to invalid, i assume, would be the best

Additional info:
Traceback email is attached.
Removing the "broken" distro file from /var/lib/cobbler/config/distros.d "fixes" the issue.