AttributeError: 'NoneType' object has no attribute 'render_json'

Bug #1569984 reported by Andres Rodriguez on 2016-04-13
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Critical
Mike Pontillo

Bug Description

2016-04-13 23:58:48 [-] Error on request (39) subnet.list: 'NoneType' object has no attribute 'render_json'
        Traceback (most recent call last):
          File "/usr/lib/python3.5/threading.py", line 862, in run
            self._target(*self._args, **self._kwargs)
          File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 841, in worker
            return target()
          File "/usr/lib/python3/dist-packages/twisted/_threads/_threadworker.py", line 46, in work
            task()
          File "/usr/lib/python3/dist-packages/twisted/_threads/_team.py", line 190, in doWork
            task()
        --- <exception caught here> ---
          File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 246, in inContext
            result = inContext.theWork()
          File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 262, in <lambda>
            inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
          File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 118, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 81, in callWithContext
            return func(*args,**kw)
          File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 874, in callInContext
            return func(*args, **kwargs)
          File "/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 516, in call_within_transaction
            return func_outside_txn(*args, **kwargs)
          File "/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 343, in retrier
            return func(*args, **kwargs)
          File "/usr/lib/python3.5/contextlib.py", line 30, in inner
            return func(*args, **kwds)
          File "/usr/lib/python3/dist-packages/maasserver/websockets/base.py", line 343, in list
            for obj in objs
          File "/usr/lib/python3/dist-packages/maasserver/websockets/base.py", line 343, in <listcomp>
            for obj in objs
          File "/usr/lib/python3/dist-packages/maasserver/websockets/base.py", line 195, in full_dehydrate
            return self.dehydrate(obj, data, for_list=for_list)
          File "/usr/lib/python3/dist-packages/maasserver/websockets/handlers/subnet.py", line 43, in dehydrate
            include_ranges=True, include_suggestions=True)
          File "/usr/lib/python3/dist-packages/provisioningserver/utils/network.py", line 297, in render_json
            self.suggested_dynamic_range.render_json()
        builtins.AttributeError: 'NoneType' object has no attribute 'render_json'

Related branches

Changed in maas:
assignee: nobody → Mike Pontillo (mpontillo)
importance: Undecided → Critical
status: New → In Progress
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers