unallocated node started manually, causes AssertionError for purpose poweroff

Bug #1340188 reported by Blake Rouse
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Blake Rouse

Bug Description

2014-07-10 09:29:05-0400 [HTTPPageGetter,client] Unhandled error in Deferred:
2014-07-10 09:29:05-0400 [HTTPPageGetter,client] Unhandled Error
 Traceback (most recent call last):
   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 382, in callback
     self._startRunCallbacks(result)
   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/tftp/protocol.py", line 67, in _startSession
     context, self.backend.get_reader, datagram.filename)
   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/provisioningserver/tftp.py", line 143, in generate
     self, kernel_params=kernel_params, **params)
   File "/usr/lib/python2.7/dist-packages/provisioningserver/boot/pxe.py", line 120, in get_reader
     kernel_params.subarch)
   File "/usr/lib/python2.7/dist-packages/provisioningserver/boot/__init__.py", line 210, in get_template
     raise AssertionError(error)
 exceptions.AssertionError: No PXE template found in u'/etc/maas/templates/pxe' for:
   Purpose: u'poweroff', Arch: u'amd64', Subarch: u'generic'
 This can happen if you manually power up a node when its state is not one that allows it. Is the node in the 'Declared' or 'Ready' states? It needs to be Enlisting, Commissioning or Allocated.

Related branches

Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
milestone: none → 1.6.1
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.