exceptions.AttributeError: 'NoneType' object has no attribute 'is_superuser'

Bug #1437388 reported by Raphaël Badin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Raphaël Badin

Bug Description

During the commissioning of a node, the following exception got raised: http://paste.ubuntu.com/10689640/

Tags: websocket

Related branches

Revision history for this message
Blake Rouse (blake-rouse) wrote :

Strange the NodeHandler should not be created without setting the user. Which means the user for that websocket is most likely None as well.

Code that is at fault is most likely in src/maasserver/websockets/protocol.py

Was anything special done to make this occur? Any thing that could help reproduce this issue?

Revision history for this message
Raphaël Badin (rvb) wrote :

This happened while commissioning a bunch of nodes and looking at the UI… but apart from that, I can't think of anything to help reproduce… I'll add more details here if I see it happen again and come across more information.

Changed in maas:
milestone: none → next
Revision history for this message
Raphaël Badin (rvb) wrote :

This happens when restarting the region and the cluster (for instance during an upgrade): the user object is lost but the session is still valid… hence the AttributeError exception.

Revision history for this message
Blake Rouse (blake-rouse) wrote :

Can you tell if the websocket connection goes down and re-connects? The region read the session_id from the connection, and authenticate again.

Changed in maas:
milestone: next → 1.8.0
Raphaël Badin (rvb)
Changed in maas:
assignee: nobody → Raphaël Badin (rvb)
status: Triaged → In Progress
Raphaël Badin (rvb)
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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