exceptions in PeriodicImageDownloadService will cause it to stop running
Bug #1361897 reported by
Blake Rouse
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Julian Edwards |
Bug Description
Exceptions from _start_download() -- or anywhere in this function -- will propagate up to the TimerService (well, the LoopingCall that it uses internally) and cause it to stop running; it considers any uncaught error as fatal. You ought to catch exceptions and log them instead of letting them get up to the service. I've used a wrapper function named with the prefix try_ in lp:~allenap/maas/safe-check-node-power to do this.
Related branches
lp:~julian-edwards/maas/download-service-exceptions
- Jeroen T. Vermeulen (community): Approve
-
Diff: 121 lines (+50/-6)2 files modifiedsrc/provisioningserver/pserv_services/image_download_service.py (+22/-5)
src/provisioningserver/pserv_services/tests/test_image_download_service.py (+28/-1)
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | none → 1.7.0 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
What exceptions was it raising, out of interest?