Comment 0 for bug 1445942

Revision history for this message
Andres Rodriguez (andreserl) wrote : Unable to determine purpose for node: '%s'", u'node-08.maas'

When trying to deploy a window image, it is unable to determine the purpose and maas then crashes:

==> /var/log/maas/regiond.log <==
2015-04-19 23:40:31 [maasserver] ERROR: Unable to determine purpose for node: 'node-08.maas'
2015-04-19 23:40:31 [-] Unhandled Error
        Traceback (most recent call last):
          File "/usr/lib/python2.7/threading.py", line 783, in __bootstrap
            self.__bootstrap_inner()
          File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
            self.run()
          File "/usr/lib/python2.7/threading.py", line 763, in run
            self.__target(*self.__args, **self.__kwargs)
        --- <exception caught here> ---
          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/provisioningserver/utils/twisted.py", line 151, in wrapper
            return func(*args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/maasserver/utils/orm.py", line 404, in call_within_transaction
            return func_outside_txn(*args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/maasserver/utils/orm.py", line 300, 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/rpc/nodes.py", line 193, in request_node_info_by_mac_address
            return (node, node.get_boot_purpose())
          File "/usr/lib/python2.7/dist-packages/maasserver/models/node.py", line 1819, in get_boot_purpose
            preseed_type = get_deploying_preseed_type_for(self)
          File "/usr/lib/python2.7/dist-packages/maasserver/preseed.py", line 379, in get_deploying_preseed_type_for
            purpose = get_available_purpose_for_node(purpose_order, node)
          File "/usr/lib/python2.7/dist-packages/maasserver/preseed.py", line 348, in get_available_purpose_for_node
            "Unable to determine purpose for node: '%s'", node.fqdn)
        maasserver.exceptions.PreseedError: (u"Unable to determine purpose for node: '%s'", u'node-08.maas')

2015-04-19 23:40:31 [RegionServer,5,127.0.0.1] RegionServer connection lost (HOST:IPv4Address(TCP, '127.0.0.1', 44884) PEER:IPv4Address(TCP, '12
7.0.0.1', 57821))

==> /var/log/maas/clusterd.log <==
2015-04-19 23:40:31+0800 [ClusterClient,client] Unhandled error in Deferred:
2015-04-19 23:40:31+0800 [ClusterClient,client] Unhandled Error
        Traceback (most recent call last):
        Failure: twisted.protocols.amp.UnknownRemoteError: Code<UNKNOWN>: Unknown Error