Comment 12 for bug 1902425

Revision history for this message
Arif Ali (arif-ali) wrote :

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
maas 2.9.0-9137-g.8e920a12b 10860 2.9/stable canonical* -
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
        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