Merge lp:~mpontillo/maas/bug-1458894-ioerror-during-image-download into lp:~maas-committers/maas/trunk
Proposed by
Mike Pontillo
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Andres Rodriguez | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 3969 | ||||
Proposed branch: | lp:~mpontillo/maas/bug-1458894-ioerror-during-image-download | ||||
Merge into: | lp:~maas-committers/maas/trunk | ||||
Diff against target: |
63 lines (+30/-0) 2 files modified
src/provisioningserver/import_images/download_descriptions.py (+9/-0) src/provisioningserver/import_images/tests/test_download_descriptions.py (+21/-0) |
||||
To merge this branch: | bzr merge lp:~mpontillo/maas/bug-1458894-ioerror-during-image-download | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Blake Rouse (community) | Approve | ||
Review via email: mp+260222@code.launchpad.net |
Commit message
Log a single message if SimpleStreams throws an IOError while syncing images, rather than leaving the IOError uncaught and logging a stack trace.
To post a comment you must log in.
I don't really like this as it affects the region calling the cluster to update the boot images. I don't know if waiting in the thread for 30 seconds is the best thing to do as it will hold the import lock and it will look like from the region that the cluster is importing images, but really it is waiting 30 seconds to try again.
I think this retry logic should be handled in the ImageDownloadSe rvice, and can be used to pause inside the reactor. Causing it to not block a thread.