==> /var/log/maas/regiond.log <== [110/9229]
2015-10-19 11:48:08 [-] Unhandled failure dispatching AMP command. This
is probably a bug. Please ensure that this error is handled within
appli cation code or declared in the signature of the UpdateLeases
command. [trusty-maas9:pid=5891:cmd=UpdateLeases:ask=3fe7]
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)
File ".../provisioningserver/utils/twisted.py", line 791, in _worker
return super(ThreadPool, self)._worker()
--- <exception caught here> ---
File ".../twisted/python/threadpool.py", line 191, in _worker
result = context.call(ctx, function, *args, **kwargs)
File ".../twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File ".../twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File ".../provisioningserver/utils/twisted.py", line 200, in wrapper
return func(*args, **kwargs)
File ".../maasserver/utils/orm.py", line 480, in
call_within_transaction
return func_outside_txn(*args, **kwargs)
File ".../maasserver/utils/orm.py", line 307, in retrier
return func(*args, **kwargs)
File ".../django/db/transaction.py", line 339, in inner
return func(*args, **kwargs)
File ".../maasserver/rpc/leases.py", line 51, in update_leases
StaticIPAddress.objects.update_leases(nodegroup, leases)
File ".../maasserver/models/staticipaddress.py", line 473, in
update_leases
subnet=ipaddress.subnet)
File ".../django/db/models/manager.py", line 154, in get_or_create
return self.get_queryset().get_or_create(**kwargs)
File ".../django/db/models/query.py", line 373, in get_or_create
return self.get(**lookup), False
File ".../django/db/models/query.py", line 310, in get
(self.model._meta.object_name, num))
maasserver.models.staticipaddress.MultipleObjectsReturned: get()
returned more than one StaticIPAddress -- it returned 7!
==> /var/log/maas/clusterd.log <==
2015-10-19 11:48:08+0800 [ClusterClient,client] Unhandled Error
Traceback (most recent call last):
Failure: twisted.protocols.amp.UnhandledCommand: ('UNHANDLED', 'Unknown
Error [trusty-maas9:pid=5891:cmd=UpdateLeases:ask=3fe7]')
Looking at this stacktrace I believe the title of this bug is completely incorrect. By looking at the trace it looks like something in the lease parsing is broken, whether or not you have no free addresses.