Based on the patches, it seems, this got landed, and based on the snap version, I should have this fix.
I have deployed a brand new MAAS server (lab environment), and set all the interfaces of all my VMs to Auto-Assign (except for the external interface), but I am unable to deploy any VMs or machines through MAAS. I have the snap installed and using the maas-test-db. When I set the intrefaces to grab IP from DHCP, then MAAS successfully gives the IP via that method. Is there anything I am missing?
2020-12-29 15:10:43 maasserver.websockets.protocol: [critical] Error on request (56) machine.action: Failed to allocate the required AUTO IP addresses
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/10860/lib/python3.8/site-packages/provisioningserver/utils/twisted.py", line 825, in worker
return target()
File "/snap/maas/10860/usr/lib/python3/dist-packages/twisted/_threads/_threadworker.py", line 46, in work
task()
File "/snap/maas/10860/usr/lib/python3/dist-packages/twisted/python/context.py", line 122, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/snap/maas/10860/usr/lib/python3/dist-packages/twisted/python/context.py", line 85, in callWithContext
return func(*args,**kw)
File "/snap/maas/10860/lib/python3.8/site-packages/provisioningserver/utils/twisted.py", line 860, in callInContext
return func(*args, **kwargs)
File "/snap/maas/10860/lib/python3.8/site-packages/provisioningserver/utils/twisted.py", line 192, in wrapper
result = func(*args, **kwargs)
File "/snap/maas/10860/lib/python3.8/site-packages/maasserver/utils/orm.py", line 737, in call_within_transaction
return func_outside_txn(*args, **kwargs)
File "/snap/maas/10860/lib/python3.8/site-packages/maasserver/utils/orm.py", line 602, in __exit__ self.fire()
File "/snap/maas/10860/lib/python3.8/site-packages/provisioningserver/utils/twisted.py", line 192, in wrapper
result = func(*args, **kwargs)
File "/snap/maas/10860/lib/python3.8/site-packages/maasserver/utils/asynchronous.py", line 207, in fire self._fire_in_reactor(hook).wait(LONGTIME)
File "/snap/maas/10860/usr/lib/python3/dist-packages/crochet/_eventloop.py", line 231, in wait result.raiseException()
File "/snap/maas/10860/usr/lib/python3/dist-packages/twisted/python/failure.py", line 467, in raiseException
raise self.value.with_traceback(self.tb)
File "/snap/maas/10860/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/snap/maas/10860/usr/lib/python3/dist-packages/twisted/python/failure.py", line 491, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/snap/maas/10860/lib/python3.8/site-packages/maasserver/models/node.py", line 5555, in claim_auto_ips
yield self._claim_auto_ips()
File "/snap/maas/10860/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks
result = g.send(result)
File "/snap/maas/10860/lib/python3.8/site-packages/maasserver/models/node.py", line 4515, in _claim_auto_ips
raise StaticIPAddressExhaustion( maasserver.exceptions.StaticIPAddressExhaustion: Failed to allocate the required AUTO IP addresses
Happy to provide any other information if required
Based on the patches, it seems, this got landed, and based on the snap version, I should have this fix.
I have deployed a brand new MAAS server (lab environment), and set all the interfaces of all my VMs to Auto-Assign (except for the external interface), but I am unable to deploy any VMs or machines through MAAS. I have the snap installed and using the maas-test-db. When I set the intrefaces to grab IP from DHCP, then MAAS successfully gives the IP via that method. Is there anything I am missing?
nap list | grep maas g.8e920a12b 10860 2.9/stable canonical* -
maas 2.9.0-9137-
maas-cli 0.6.5 16 latest/stable canonical* -
maas-test-db 12.4-17-g.9e70484 60 2.9/stable canonical* -
2020-12-29 15:10:43 maasserver. websockets. protocol: [critical] Error on request (56) machine.action: Failed to allocate the required AUTO IP addresses python3. 8/threading. py", line 870, in run
self. _target( *self._ args, **self._kwargs) maas/10860/ lib/python3. 8/site- packages/ provisioningser ver/utils/ twisted. py", line 825, in worker maas/10860/ usr/lib/ python3/ dist-packages/ twisted/ _threads/ _threadworker. py", line 46, in work maas/10860/ usr/lib/ python3/ dist-packages/ twisted/ python/ context. py", line 122, in callWithContext text(). callWithContext (ctx, func, *args, **kw) maas/10860/ usr/lib/ python3/ dist-packages/ twisted/ python/ context. py", line 85, in callWithContext maas/10860/ lib/python3. 8/site- packages/ provisioningser ver/utils/ twisted. py", line 860, in callInContext maas/10860/ lib/python3. 8/site- packages/ provisioningser ver/utils/ twisted. py", line 192, in wrapper maas/10860/ lib/python3. 8/site- packages/ maasserver/ utils/orm. py", line 737, in call_within_ transaction txn(*args, **kwargs) maas/10860/ lib/python3. 8/site- packages/ maasserver/ utils/orm. py", line 602, in __exit__
self. fire() maas/10860/ lib/python3. 8/site- packages/ provisioningser ver/utils/ twisted. py", line 192, in wrapper maas/10860/ lib/python3. 8/site- packages/ maasserver/ utils/asynchron ous.py" , line 207, in fire
self. _fire_in_ reactor( hook).wait( LONGTIME) maas/10860/ usr/lib/ python3/ dist-packages/ crochet/ _eventloop. py", line 231, in wait
result. raiseException( ) maas/10860/ usr/lib/ python3/ dist-packages/ twisted/ python/ failure. py", line 467, in raiseException with_traceback( self.tb) maas/10860/ usr/lib/ python3/ dist-packages/ twisted/ internet/ defer.py" , line 1416, in _inlineCallbacks throwExceptionI ntoGenerator( g) maas/10860/ usr/lib/ python3/ dist-packages/ twisted/ python/ failure. py", line 491, in throwExceptionI ntoGenerator maas/10860/ lib/python3. 8/site- packages/ maasserver/ models/ node.py" , line 5555, in claim_auto_ips auto_ips( ) maas/10860/ usr/lib/ python3/ dist-packages/ twisted/ internet/ defer.py" , line 1418, in _inlineCallbacks maas/10860/ lib/python3. 8/site- packages/ maasserver/ models/ node.py" , line 4515, in _claim_auto_ips Exhaustion(
maasserver. exceptions. StaticIPAddress Exhaustion: Failed to allocate the required AUTO IP addresses
Traceback (most recent call last):
File "/usr/lib/
File "/snap/
return target()
File "/snap/
task()
File "/snap/
return self.currentCon
File "/snap/
return func(*args,**kw)
File "/snap/
return func(*args, **kwargs)
File "/snap/
result = func(*args, **kwargs)
File "/snap/
return func_outside_
File "/snap/
File "/snap/
result = func(*args, **kwargs)
File "/snap/
File "/snap/
File "/snap/
raise self.value.
File "/snap/
result = result.
File "/snap/
return g.throw(self.type, self.value, self.tb)
File "/snap/
yield self._claim_
File "/snap/
result = g.send(result)
File "/snap/
raise StaticIPAddress
Happy to provide any other information if required