Comment 9 for bug 1992185

Revision history for this message
Alvin Cura (alvinc) wrote :

No dice. regiond.log tells me

2023-01-23 20:28:03 metadataserver.api_twisted: [critical] Failed to process status message instantly.
 Traceback (most recent call last):
   File "/usr/lib/python3.8/threading.py", line 870, in run
     self._target(*self._args, **self._kwargs)
   File "/snap/maas/23947/lib/python3.8/site-packages/provisioningserver/utils/twisted.py", line 821, in worker
     return target()
   File "/snap/maas/23947/usr/lib/python3/dist-packages/twisted/_threads/_threadworker.py", line 46, in work
     task()
   File "/snap/maas/23947/usr/lib/python3/dist-packages/twisted/_threads/_team.py", line 190, in doWork
     task()
 --- <exception caught here> ---
   File "/snap/maas/23947/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 250, in inContext
     result = inContext.theWork()
   File "/snap/maas/23947/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 266, in <lambda>
     inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
   File "/snap/maas/23947/usr/lib/python3/dist-packages/twisted/python/context.py", line 122, in callWithContext
     return self.currentContext().callWithContext(ctx, func, *args, **kw)
   File "/snap/maas/23947/usr/lib/python3/dist-packages/twisted/python/context.py", line 85, in callWithContext
     return func(*args,**kw)
   File "/snap/maas/23947/lib/python3.8/site-packages/provisioningserver/utils/twisted.py", line 856, in callInContext
     return func(*args, **kwargs)
   File "/snap/maas/23947/lib/python3.8/site-packages/provisioningserver/utils/twisted.py", line 202, in wrapper
     result = func(*args, **kwargs)
   File "/snap/maas/23947/lib/python3.8/site-packages/metadataserver/api_twisted.py", line 564, in _processMessageNow
     self._processMessage(node, message)
   File "/snap/maas/23947/lib/python3.8/site-packages/maasserver/utils/orm.py", line 756, in call_within_transaction
     return func_outside_txn(*args, **kwargs)
   File "/snap/maas/23947/lib/python3.8/site-packages/maasserver/utils/orm.py", line 559, in retrier
     return func(*args, **kwargs)
   File "/usr/lib/python3.8/contextlib.py", line 75, in inner
     return func(*args, **kwds)
   File "/snap/maas/23947/lib/python3.8/site-packages/metadataserver/api_twisted.py", line 472, in _processMessage
     _create_vmhost_for_deployment(node)
   File "/snap/maas/23947/lib/python3.8/site-packages/metadataserver/api_twisted.py", line 266, in _create_vmhost_for_deployment
     discover_and_sync_vmhost(pod, node.owner)
   File "/snap/maas/23947/lib/python3.8/site-packages/maasserver/vmhost.py", line 77, in discover_and_sync_vmhost
     raise PodProblem(str(error))
 maasserver.exceptions.PodProblem: Failed talking to pod: 'NoneType' object has no attribute 'get'