[Bug 1431150] [NEW] While trying to load the node details page, logfile shows weird error

Andres Rodriguez andreserl at ubuntu-pe.org
Thu Mar 12 05:26:46 UTC 2015


Public bug reported:

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'

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

** Description changed:

  Loading a node details page with 16 node sin it, a weird message is
- displayed on the logs:
+ 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'
+  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'

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to maas in Ubuntu.
https://bugs.launchpad.net/bugs/1431150

Title:
  While trying to load the node details page, logfile shows weird error

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



More information about the Ubuntu-server-bugs mailing list