Accesing node listing page shows 0 nodes, 0 devices until refresh

Bug #1431150 reported by Andres Rodriguez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
maas (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Loading a node details page with 16 node sin it, a weird message is displayed on the logs (note that it seems that it takes longer than expected to load the page)

2015-03-12 05:25:25 [maas.websocket.listener] Unhandled Error
 Traceback (most recent call last):
   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 423, in errback
     self._startRunCallbacks(fail)
   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 490, in _startRunCallbacks
     self._runCallbacks()
   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 577, in _runCallbacks
     current.result = callback(current.result, *args, **kw)
   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1155, in gotResult
     _inlineCallbacks(r, g, deferred)
 --- <exception caught here> ---
   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1097, in _inlineCallbacks
     result = result.throwExceptionIntoGenerator(g)
   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
     return g.throw(self.type, self.value, self.tb)
   File "/usr/lib/python2.7/dist-packages/maasserver/websockets/protocol.py", line 342, in onNotify
     self.processNotify, handler, channel, action, obj_id)
   File "/usr/lib/python2.7/dist-packages/twisted/python/threadpool.py", line 191, in _worker
     result = context.call(ctx, function, *args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 118, in callWithContext
     return self.currentContext().callWithContext(ctx, func, *args, **kw)
   File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 81, in callWithContext
     return func(*args,**kw)
   File "/usr/lib/python2.7/dist-packages/maasserver/utils/orm.py", line 326, in call_within_transaction
     result = func_outside_txn(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/maasserver/utils/orm.py", line 266, in retrier
     return func(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/django/db/transaction.py", line 339, in inner
     return func(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/maasserver/websockets/protocol.py", line 349, in processNotify
     return handler.on_listen(channel, action, obj_id)
   File "/usr/lib/python2.7/dist-packages/maasserver/websockets/base.py", line 363, in on_listen
     obj = self.listen(channel, action, pk)
   File "/usr/lib/python2.7/dist-packages/maasserver/websockets/base.py", line 385, in listen
     self._meta.pk: pk
   File "/usr/lib/python2.7/dist-packages/maasserver/websockets/handlers/node.py", line 192, in get_object
     if self.user.is_superuser:
 exceptions.AttributeError: 'NoneType' object has no attribute 'is_superuser'

description: updated
summary: - While trying to load the node details page, logfile shows weird error
+ Accesing node listing page shows 0 nodes, 0 devices until refresh
Changed in maas (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.