Preparation of RegionAdvertisingService failed: MultipleObjectsReturned: Got more than one node

Bug #1554494 reported by Gavin Panella
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
High
Gavin Panella

Bug Description

Preparation of RegionAdvertisingService failed; will try again in 5 seconds.
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1184, in gotResult
    _inlineCallbacks(r, g, deferred)
  File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1126, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File ".../maasserver/rpc/regionservice.py", line 960, in _prepareService
    "5 seconds." % self.__class__.__name__))
--- <exception caught here> ---
  File ".../maasserver/rpc/regionservice.py", line 954, in _prepareService
    yield d
  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 ".../provisioningserver/utils/twisted.py", line 197, in wrapper
    return func(*args, **kwargs)
  File ".../maasserver/utils/__init__.py", line 165, in call_with_lock
    return func(*args, **kwargs)
  File ".../maasserver/utils/orm.py", line 404, in call_with_connection
    return func(*args, **kwargs)
  File ".../maasserver/utils/__init__.py", line 165, in call_with_lock
    return func(*args, **kwargs)
  File ".../maasserver/utils/orm.py", line 448, in call_within_transaction
    return func_outside_txn(*args, **kwargs)
  File ".../maasserver/utils/orm.py", line 275, in retrier
    return func(*args, **kwargs)
  File "/usr/lib/python3.5/contextlib.py", line 30, in inner
    return func(*args, **kwds)
  File ".../maasserver/rpc/regionservice.py", line 985, in prepare
    Q(interface__mac_address__in=mac_addresses)))
  File ".../maasserver/utils/orm.py", line 113, in get_one
    raise exception_class("Got more than one %s." % object_name.lower())
maasserver.models.node.MultipleObjectsReturned: Got more than one node.

Related branches

Gavin Panella (allenap)
Changed in maas:
status: Triaged → In Progress
assignee: nobody → Gavin Panella (allenap)
Gavin Panella (allenap)
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers