[2.0rc1] after upgrade from 2.0b3, Error on request (13) subnet.list: 'NoneType' object is not iterable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Mike Pontillo |
Bug Description
After an upgrade from 2.0b3, we see this repeatedly:
2016-07-07 00:32:55 [-] 127.0.0.1 - - [07/Jul/
2016-07-07 00:32:57 [HTTPChannel,
2016-07-07 00:32:57 [-] /usr/lib/
2016-07-07 00:32:57 [-] 127.0.0.1 - - [07/Jul/
2016-07-07 00:32:57 [-] 127.0.0.1 - - [07/Jul/
2016-07-07 00:32:57 [-] 127.0.0.1 - - [07/Jul/
2016-07-07 00:32:57 [-] 127.0.0.1 - - [07/Jul/
2016-07-07 00:32:57 [-] 127.0.0.1 - - [07/Jul/
2016-07-07 00:32:57 [-] 127.0.0.1 - - [07/Jul/
2016-07-07 00:32:57 [-] 127.0.0.1 - - [07/Jul/
2016-07-07 00:32:57 [HTTPChannel,
2016-07-07 00:32:58 [-] Error on request (13) subnet.list: 'NoneType' object is not iterable
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
return target()
File "/usr/lib/
task()
File "/usr/lib/
task()
--- <exception caught here> ---
File "/usr/lib/
result = inContext.theWork()
File "/usr/lib/
inContext.
File "/usr/lib/
return self.currentCon
File "/usr/lib/
return func(*args,**kw)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
return func_outside_
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
return func(*args, **kwds)
File "/usr/lib/
for obj in objs
File "/usr/lib/
for obj in objs
File "/usr/lib/
data[
File "/usr/lib/
return " ".join(
builtins.
Related branches
- Blake Rouse (community): Approve
-
Diff: 45 lines (+16/-1)2 files modifiedsrc/maasserver/websockets/handlers/subnet.py (+2/-0)
src/maasserver/websockets/handlers/tests/test_subnet.py (+14/-1)
- Mike Pontillo (community): Approve
-
Diff: 62 lines (+22/-1)3 files modifieddocs/changelog.rst (+6/-0)
src/maasserver/websockets/handlers/subnet.py (+2/-0)
src/maasserver/websockets/handlers/tests/test_subnet.py (+14/-1)
Changed in maas: | |
importance: | Undecided → High |
assignee: | nobody → Mike Pontillo (mpontillo) |
milestone: | none → 2.1.0 |
milestone: | 2.1.0 → 2.0.0 |
status: | New → Triaged |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
2016-07-06 22:46:03 [-] Error on request (13) subnet.list: 'NoneType' object is not iterable python3. 5/threading. py", line 862, in run _target( *self._ args, **self._kwargs) python3/ dist-packages/ provisioningser ver/utils/ twisted. py", line 904, in worker python3/ dist-packages/ twisted/ _threads/ _threadworker. py", line 46, in work python3/ dist-packages/ twisted/ _threads/ _team.py" , line 190, in doWork python3/ dist-packages/ twisted/ python/ threadpool. py", line 246, in inContext python3/ dist-packages/ twisted/ python/ threadpool. py", line 262, in <lambda> theWork = lambda: context.call(ctx, func, *args, **kw) python3/ dist-packages/ twisted/ python/ context. py", line 118, in callWithContext text(). callWithContext (ctx, func, *args, **kw) python3/ dist-packages/ twisted/ python/ context. py", line 81, in callWithContext python3/ dist-packages/ provisioningser ver/utils/ twisted. py", line 937, in callInContext python3/ dist-packages/ maasserver/ utils/orm. py", line 602, in call_within_ transaction txn(*args, **kwargs) python3/ dist-packages/ maasserver/ utils/orm. py", line 421, in retrier python3. 5/contextlib. py", line 30, in inner python3/ dist-packages/ maasserver/ websockets/ base.py" , line 344, in list python3/ dist-packages/ maasserver/ websockets/ base.py" , line 344, in <listcomp> python3/ dist-packages/ maasserver/ websockets/ base.py" , line 185, in full_dehydrate field_name] = dehydrate_ method( field_obj) python3/ dist-packages/ maasserver/ websockets/ handlers/ subnet. py", line 46, in dehydrate_ dns_servers sorted( dns_servers) ) TypeError: 'NoneType' object is not iterable
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
return target()
File "/usr/lib/
task()
File "/usr/lib/
task()
--- <exception caught here> ---
File "/usr/lib/
result = inContext.theWork()
File "/usr/lib/
inContext.
File "/usr/lib/
return self.currentCon
File "/usr/lib/
return func(*args,**kw)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
return func_outside_
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
return func(*args, **kwds)
File "/usr/lib/
for obj in objs
File "/usr/lib/
for obj in objs
File "/usr/lib/
data[
File "/usr/lib/
return " ".join(
builtins.
2016-07-06 22:46:06 [HTTPChannel, 14,127. 0.0.1] Closing connection: <STATUSES= GOING_AWAY> 2016:22: 46:06 +0000] "GET /MAAS/zones/ HTTP/1.1" 200 1910 "http:// 192.168. 0.141/MAAS/" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0" 2016:22: 46:12 +0000] "GET /MAAS/ HTTP/1.1" 200 1610 "http:// 192.168. 0.141/MAAS/ zones/" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0" 10,127. 0.0.1] Opening connection with IPv4Address(TCP, '127.0.0.1', 34434) 10,127. 0.0.1] Closing connection: <STATUSES= GOING_AWAY> 2016:22: 46:21 +0000] "GET /MAAS/images/ HTTP/1.1" 200 2702 "http:// 192.168. 0.141/MAAS/" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0"
2016-07-06 22:46:07 [-] 127.0.0.1 - - [06/Jul/
2016-07-06 22:46:13 [-] 127.0.0.1 - - [06/Jul/
2016-07-06 22:46:14 [HTTPChannel,
2016-07-06 22:46:20 [HTTPChannel,
2016-07-06 22:46:22 [-] 127.0.0.1 - - [06/Jul/
2016-07...