Bug 1270627

Summary: report a result whenever extendtesttime.sh is run in /distribution/reservesys
Product: [Retired] Beaker Reporter: Dan Callaghan <dcallagh>
Component: testsAssignee: Dan Callaghan <dcallagh>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: dcallagh, dowang, mjia, rjoost
Target Milestone: 21.1Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-15 07:09:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dan Callaghan 2015-10-12 00:57:58 UTC
To make it easier to see when a reservation has been extended, and for how long, we can make extendtesttime.sh report a result every time it's run. We can record the number of seconds it has been extended for as the result score.

Alex Todorov has contributed a patch for this: http://gerrit.beaker-project.org/4427

Comment 1 Dan Callaghan 2015-10-13 06:01:10 UTC
Tagged as /distribution/reservesys 3.4-6.

Comment 3 Dan Callaghan 2015-10-13 06:26:34 UTC
Steps to verify:
1. Run a job with /distribution/reservesys (for example, use Reserve Workflow)
2. Wait for the system to be reserved, e-mail sent
3. Log in and extend the watchdog by 2 hours by running: extendtesttime.sh 2

Expected results:
In the recipe, a new result for /distribution/reservesys named "extend-test-time" appears, with the score equal to the number of hours reservation was extended by.

Comment 4 Dan Callaghan 2015-10-13 06:31:23 UTC
While trying this out on beaker-devel, I noticed that each extendtesttime.sh invocation does dmesg and AVC checking which creates new task log files. For some reason the log files are prefixed with some kind of UUID, like this:

    c8066e33-56e2-48b1-8b3b-56b336298dd4-console_dmesg--distribution-reservesys-extend-test-time.log
    c8066e33-56e2-48b1-8b3b-56b336298dd4-avc_log--distribution-reservesys-extend-test-time.log
    73933e3c-20a5-43ca-9ef9-a3a4a3da7fb2-avc_log--distribution-reservesys-extend-test-time.log

I've never seen that before, not sure where the UUID is coming from... anyway I guess it's not a big deal.

Comment 6 Dan Callaghan 2015-10-15 07:09:44 UTC
/distribution/reservesys 3.4-6 has been released.