twisted Unhandled Error when region can't reach upstream boot resource
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Julian Edwards |
Bug Description
If the region controller can't reach its upstream boot resource URL to check for images to sync, an unhandled exception is raised and a big log stack trace gets dumped to maas-django.log. Instead, we should alert the admin that the boot resources URL can't be reached.
Here's the stack trace:
ERROR 2014-10-22 10:41:04,913 twisted Unhandled Error
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.run()
File "/usr/lib/
self.
--- <exception caught here> ---
File "/usr/lib/
result = context.call(ctx, function, *args, **kwargs)
File "/usr/lib/
return self.currentCon
File "/usr/lib/
return func(*args,**kw)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
image_
File "/usr/lib/
source['url'], keyring=
File "/usr/lib/
dumper.
File "/usr/lib/
content, payload = reader.
File "/usr/lib/
raw = self.source(
File "/usr/lib/
self.open()
File "/usr/lib/
self.fd = self._open()
File "/usr/lib/
return opener(*oargs, offset=self.offset)
File "/usr/lib/
self.req = requests.get(url, stream=True, auth=auth, headers=headers)
File "/usr/lib/
return request('get', url, **kwargs)
File "/usr/lib/
return session.
File "/usr/lib/
resp = self.send(prep, **send_kwargs)
File "/usr/lib/
r = adapter.
File "/usr/lib/
raise ConnectionError(e)
requests.
Related branches
- Blake Rouse (community): Approve
-
Diff: 427 lines (+108/-83)9 files modifiedsrc/maasserver/bootresources.py (+4/-0)
src/maasserver/bootsources.py (+28/-40)
src/maasserver/enum.py (+1/-0)
src/maasserver/eventloop.py (+0/-6)
src/maasserver/models/bootsource.py (+2/-2)
src/maasserver/models/tests/test_bootsource.py (+3/-2)
src/maasserver/tests/test_bootresources.py (+20/-16)
src/maasserver/tests/test_bootsources.py (+50/-7)
src/maasserver/tests/test_eventloop.py (+0/-10)
Changed in maas: | |
assignee: | nobody → Julian Edwards (julian-edwards) |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Crash - so critical. Looks like a potential release blocker to me as well as this is an easy mistake to make.