Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 632628

Summary: RFE: Save the ks.cfg used for the Recipe
Product: [Retired] Beaker Reporter: Alexander Todorov <atodorov>
Component: schedulerAssignee: Dan Callaghan <dcallagh>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 0.5CC: bpeck, dcallagh, jstancek, jstodola, kbaker, mcsontos, rmancy
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-26 06:40:00 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:

Description Alexander Todorov 2010-09-10 15:36:32 UTC
Description of problem:
Currently Beaker uses Cobbler/SNAKE to generate ks.cfg data and the ks.cfg file is of the form:
http://server-url/cblr/svc/op/ks/system/system-hostname

This gets overwritten every time the systems starts a new job/recipe. 

I'm requesting that the ks.cfg file used for the current recipe is stored along side the console.log file. This is mostly useful for debugging when the jobs fail.

Comment 1 Bill Peck 2010-09-10 15:44:51 UTC
beaker-watchdog will pick this up if the file exists in /var/log/cobbler/anamon/HOSTNAME/ks.cfg

The problem is we rely on %pre to kick off a trigger which pulls the ks.cfg and then uploads it to the above directory. If %pre never runs on the system then we never get the ks.cfg.

The best place to do this may be in the call to clear console log.  Although the name for that should probably be changed to prepare_system or something more generic.

Then we could do the following to capture the ks.cfg

wget -O /var/log/cobbler/anamon/HOSTNAME http://localhost/cblr/svc/blah/HOSTNAME

Then the beaker-watchdog would pick it up right away.

Comment 2 Alexander Todorov 2012-04-26 11:20:04 UTC
Hi Bill,
there's now a ks.cfg file under the logs button. Looks like this has been fixed in the mean time. Can you confirm?

Comment 3 Bill Peck 2012-04-30 17:11:07 UTC
Nope, this isn't fixed yet.

Comment 4 Dan Callaghan 2012-04-30 22:44:03 UTC
It will be fixed in 0.9.0 though. I've already done the work as part of bug 781917. There will be a link on the recipe page to view the kickstart which we generated for that recipe.

Comment 5 Bill Peck 2012-05-03 13:44:27 UTC
*** Bug 709498 has been marked as a duplicate of this bug. ***

Comment 6 Bill Peck 2012-05-03 13:45:31 UTC
*** Bug 818569 has been marked as a duplicate of this bug. ***

Comment 9 Dan Callaghan 2012-06-26 06:40:00 UTC
Beaker 0.9.0 has been released.