Public bug reported:

xenial 16.04
maas 2.0.0~beta2+bzr4920-0ubuntu1


browsing to Nodes, DNS, Networks, or DHCP Snippets (anything that has IP 
ranges) returns "index out of range"

initial investigation looks like the same problem as the divide by zero
error, MAASIPRange isnt being populated. Hard to see why that is though.

2016-04-14 21:22:43 [-] Error on request (15) subnet.list: list index out of 
range
Apr 14 21:22:43 hostname sh[46786]: #011--- <exception caught here> ---
Apr 14 21:22:43 hostname sh[46786]: #011  File 
"/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 246, in 
inContext
Apr 14 21:22:43 hostname sh[46786]: #011    result = inContext.theWork()
Apr 14 21:22:43 hostname sh[46786]: #011  File 
"/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 262, in 
<lambda>
Apr 14 21:22:43 hostname sh[46786]: #011    inContext.theWork = lambda: 
context.call(ctx, func, *args, **kw)
Apr 14 21:22:43 hostname sh[46786]: #011  File 
"/usr/lib/python3/dist-packages/twisted/python/context.py", line 118, in 
callWithContext
Apr 14 21:22:43 hostname sh[46786]: #011    return 
self.currentContext().callWithContext(ctx, func, *args, **kw)
Apr 14 21:22:43 hostname sh[46786]: #011  File 
"/usr/lib/python3/dist-packages/twisted/python/context.py", line 81, in 
callWithContext
Apr 14 21:22:43 hostname sh[46786]: #011    return func(*args,**kw)
Apr 14 21:22:43 hostname sh[46786]: #011  File 
"/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 874, 
in callInContext
Apr 14 21:22:43 hostname sh[46786]: #011    return func(*args, **kwargs)
Apr 14 21:22:43 hostname sh[46786]: #011  File 
"/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 516, in 
call_within_transaction
Apr 14 21:22:43 hostname sh[46786]: #011    return func_outside_txn(*args, 
**kwargs)
Apr 14 21:22:43 hostname sh[46786]: #011  File 
"/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 343, in retrier
Apr 14 21:22:43 hostname sh[46786]: #011    return func(*args, **kwargs)
Apr 14 21:22:43 hostname sh[46786]: #011  File 
"/usr/lib/python3.5/contextlib.py", line 30, in inner
Apr 14 21:22:43 hostname sh[46786]: #011    return func(*args, **kwds)
Apr 14 21:22:43 hostname sh[46786]: #011  File 
"/usr/lib/python3/dist-packages/maasserver/websockets/base.py", line 343, in 
list
Apr 14 21:22:43 hostname sh[46786]: #011    for obj in objs
Apr 14 21:22:43 hostname sh[46786]: #011  File 
"/usr/lib/python3/dist-packages/maasserver/websockets/base.py", line 343, in 
<listcomp>
Apr 14 21:22:43 hostname sh[46786]: #011    for obj in objs
Apr 14 21:22:43 hostname sh[46786]: #011  File 
"/usr/lib/python3/dist-packages/maasserver/websockets/base.py", line 195, in 
full_dehydrate
Apr 14 21:22:43 hostname sh[46786]: #011    return self.dehydrate(obj, data, 
for_list=for_list)
Apr 14 21:22:43 hostname sh[46786]: #011  File 
"/usr/lib/python3/dist-packages/maasserver/websockets/handlers/subnet.py", line 
41, in dehydrate
Apr 14 21:22:43 hostname sh[46786]: #011    metadata = 
IPRangeStatistics(full_range)
Apr 14 21:22:43 hostname sh[46786]: #011  File 
"/usr/lib/python3/dist-packages/provisioningserver/utils/network.py", line 155, 
in __init__
Apr 14 21:22:43 hostname sh[46786]: #011    self.first_address_value = 
self.ranges.first
Apr 14 21:22:43 hostname sh[46786]: #011  File 
"/usr/lib/python3/dist-packages/provisioningserver/utils/network.py", line 335, 
in first
Apr 14 21:22:43 hostname sh[46786]: #011    return self.ranges[0].first
Apr 14 21:22:43 hostname sh[46786]: #011builtins.IndexError: list index out of 
range

** Affects: maas (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: maas maasiprange

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1570606

Title:
  subnet.list: list index out of range

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/maas/+bug/1570606/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to