Observed when running locally:
Failed to update this region's process and endpoints; dunedin:pid=3240 record's may be out of date
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File ".../src/provisioningserver/utils/twisted.py", line 842, in worker
return target()
File "/usr/lib/python3/dist-packages/twisted/_threads/_threadworker.py", line 46, in work
task()
File "/usr/lib/python3/dist-packages/twisted/_threads/_team.py", line 190, in doWork
task()
--- <exception caught here> ---
File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 246, in inContext
result = inContext.theWork()
File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 262, in <lambda>
inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File ".../src/provisioningserver/utils/twisted.py", line 200, in wrapper
return func(*args, **kwargs)
File ".../src/maasserver/utils/__init__.py", line 165, in call_with_lock
return func(*args, **kwargs)
File ".../src/maasserver/utils/orm.py", line 516, in call_within_transaction
return func_outside_txn(*args, **kwargs)
File ".../src/maasserver/utils/orm.py", line 343, in retrier
return func(*args, **kwargs)
File "/usr/lib/python3.5/contextlib.py", line 30, in inner
return func(*args, **kwds)
File ".../src/maasserver/rpc/regionservice.py", line 1081, in update
process = RegionControllerProcess.objects.get(id=self.processId.value)
File "/usr/lib/python3/dist-packages/django/db/models/manager.py", line 127, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/usr/lib/python3/dist-packages/django/db/models/query.py", line 334, in get
self.model._meta.object_name
maasserver.models.regioncontrollerprocess.DoesNotExist: RegionControllerProcess matching query does not exist.
This cropped up again when trying to land https:/ /code.launchpad .net/~allenap/ maas/thread- pool-context- -bug-1568051/ +merge/ 291528.