Merge lp://staging/~qzhang/lava-dispatcher/fix-867858 into lp://staging/lava-dispatcher

Proposed by Spring Zhang
Status: Merged
Merged at revision: 132
Proposed branch: lp://staging/~qzhang/lava-dispatcher/fix-867858
Merge into: lp://staging/lava-dispatcher
Diff against target: 72 lines (+17/-7)
2 files modified
lava_dispatcher/actions/deploy.py (+10/-6)
lava_dispatcher/actions/launch_control.py (+7/-1)
To merge this branch: bzr merge lp://staging/~qzhang/lava-dispatcher/fix-867858
Reviewer Review Type Date Requested Status
Paul Larson (community) Approve
Spring Zhang (community) Needs Resubmitting
Review via email: mp+78704@code.staging.launchpad.net

Description of the change

Clean test results on both master and test image to fix bug 867858

To post a comment you must log in.
Revision history for this message
Yongqin Liu (liuyq0307) wrote :

In my opinion, it's better to delete the directory ['/tmp/%s' % self.context.lava_result_dir] first before copy the bundles to the directory.

Then, the bundles in that directory will all be files from result_disk.
There will no garbage files in the target [/tmp] directory.

129. By Spring Zhang

Clean the result directory on master image before getting result

Revision history for this message
Spring Zhang (qzhang) wrote :

OK, let's make it simpler

review: Needs Resubmitting
Revision history for this message
Paul Larson (pwlars) wrote :

I'm not sure it wouldn't be safer to just make sure the first thing we do before trying to deploy an image, is to reformat the partitions. There's a window of opportunity, where you could have a failure before the image deploy step gets to the point of formatting the partitions (for instance, if there's a failure during l-m-c). If anything is leftover from the previous run, then we could pick it up accidentally.

130. By Spring Zhang

Format testboot and testrootfs partition before deployment

Revision history for this message
Spring Zhang (qzhang) wrote :

Add multiple emergency exits:)

review: Needs Resubmitting
Revision history for this message
Paul Larson (pwlars) wrote :

Hi Spring, a couple of problems here still.

1. I don't think we need to format the partitions twice.
2. There's still a window of opportunity where we could fail earlier before the formatting takes place. For instance, if the network fails to come up. I would suggest moving the formatting into a _format_foo() method, call the logging bit to give info that we are formatting, and call it very very early in run().

review: Needs Fixing
131. By Spring Zhang

merge with mainline

132. By Spring Zhang

make the formating start early

Revision history for this message
Spring Zhang (qzhang) wrote :

I put the format just after system enters master image.
For Android test result will store on random directory after another bug fixed, I didn't handle Android part.

But still have one concern, does it need to umount the test partitions when deploying tarball for Ubuntu desktop image will mount it automatically if the formatting occurs before system enters Gnome.

review: Needs Resubmitting
Revision history for this message
Paul Larson (pwlars) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches