Log files deleted if SUT crashes

Bug #1314241 reported by Michael F. Miller
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Next Generation Checkbox (CLI)
Fix Released
Critical
Zygmunt Krynicki
PlainBox (Toolkit)
Fix Released
Critical
Zygmunt Krynicki

Bug Description

Checkbox will delete logs if test is continued after a crash, broken connection, etc.

Checkbox had run almost to completion during a cert run when power was lost to the SUT. After correcting the problem, rebooting the SUT, and restarting the cert the log files were overwritten, the test completed, and the results.html file was empty. See the attachment.
Tests had to be completely rerun.

Revision history for this message
Michael F. Miller (mikem1355) wrote :
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Can you share the version of checkbox and plainbox that was used during this experiment?

Also please tell us the way to reproduce the problem (we can crash the system by forcibly power cycling the computer)

Zygmunt Krynicki (zyga)
Changed in checkbox:
status: New → Incomplete
Revision history for this message
Michael F. Miller (mikem1355) wrote :

ii checkbox-ng 0.4~dev+bzr2944+pkg5~ubuntu14.04.1 all PlainBox based test runner
ii plainbox-provider-checkbox 0.5~dev+bzr2944+pkg3~ubuntu14.04.1 amd64 CheckBox provider for PlainBox
ii python3-checkbox-ng 0.4~dev+bzr2944+pkg5~ubuntu14.04.1 all PlainBox based test runner (Python 3 library)
ii python3-checkbox-support 0.3~dev+bzr2944+pkg2~ubuntu14.04.1 all collection of Python modules used by PlainBox providers

To reproduce the failure start the server cert and pull power or close ssh session. After restoring a connection to the SUT start the cert again, `canonical-certification-server`. You will be prompted to restart the test or start over. Select 'y' to continue the existing run. The existing .local/share/plainbox files will be overwritten. When the cert run ends the results.html and submission.xml files will contain data from where the test was restarted.
In my case the cert was _almost_ complete when power failed. Upon completion the files contained no test results.

Revision history for this message
Michael F. Miller (mikem1355) wrote :

Zygmunt, is there anything else you need from me?

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Thanks. I will need to investigate it more now. I wast just checking if you were using checkbox-ng or checkbox-legacy.

Changed in checkbox:
status: Incomplete → Triaged
importance: Undecided → Critical
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

This is now partially addressed by https://code.launchpad.net/~zkrynicki/checkbox/rewritten-multisession-run/+merge/217821

I will make the corresponding changes to checkbox-ng

Changed in checkbox:
status: Triaged → In Progress
assignee: nobody → Zygmunt Krynicki (zkrynicki)
affects: checkbox → checkbox-ng
Changed in plainbox:
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Zygmunt Krynicki (zkrynicki)
milestone: none → 0.6
Changed in checkbox-ng:
milestone: none → 0.4
Zygmunt Krynicki (zyga)
Changed in plainbox:
status: In Progress → Fix Committed
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

The checkbox-ng part is now fixed with the default of checkbox-cli --new-ui

Changed in checkbox-ng:
status: In Progress → Fix Committed
Changed in plainbox:
status: Fix Committed → Fix Released
Changed in checkbox-ng:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.