vmbuilder EC2: Retry ec2-upload-bundle on failures
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
VMBuilder |
Fix Released
|
Undecided
|
Eric Hammond | ||
vm-builder (Ubuntu) |
Fix Released
|
Wishlist
|
Eric Hammond |
Bug Description
It is common experience for the ec2-upload-bundle command to fail when uploading one of the bundle files. Amazon's recommendation is to either:
1. Add a --retry option to ec2-upload-bundle. The drawback of this is that it will retry forever if failures are constant, but it is an easy fix.
2. Detect the failure and re-run ec2-upload-bundle using the --part option to tell it to start uploading at the failed part number. Exit with an error after some number of failures.
(Slightly obscure) docs for these options are available here:
Here's a sample of the failure (which I've experienced several times in only a dozen builds and that was using hosts on Amazon EC2 with their network).
Uploaded PREFIX.part.05 to https:/
Bundle upload failed.
, stderr: Error: failed to upload "/tmp/vmbuilder
This isn't urgent, but fixing this will reduce headaches for many people who will wait through a complete vmbuild run just to have the upload fail. It will also reduce support questions.
Until retries are automated, the workaround is for the user simply to run vmbuilder again.
Related branches
- Ubuntu Virtualisation team: Pending requested
Changed in vmbuilder: | |
assignee: | nobody → zulcss |
status: | New → Confirmed |
Changed in vm-builder: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
Changed in vmbuilder: | |
status: | Fix Committed → Fix Released |
Changed in vm-builder (Ubuntu): | |
status: | Fix Committed → Fix Released |
Taking this ticket since I am tired of having to restart 30+ minute builds when a single piece of the bundle fails to upload.