DoesNotExist: RegionControllerProcess matching query does not exist.

Bug #1566829 reported by Gavin Panella
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Blake Rouse

Bug Description

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.

Related branches

Changed in maas:
assignee: nobody → Blake Rouse (blake-rouse)
status: Triaged → In Progress
Changed in maas:
milestone: none → 2.0.0
Changed in maas:
status: In Progress → Fix Committed
Revision history for this message
Gavin Panella (allenap) wrote :
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.