I updated our maas staging environment to 2.9.2 with snap (moved DB off host to it’s own DB server, rebuilt region and reack controllers as 20.04 and re-paired. Using my home grown tool which leverages python-libmaas to talk to maas and do its thing. Updated python-libmaas to the current tag (0.6.6) Commissioning works great, however deployment does not My code calls machine.restore_networking_configuration() which previously worked against maas 2.6.2 but now fails against 2.9.2 I tried using machine.restore_default_configuration() instead and it results in pretty much the same stack trace.
File "./maasterblaster.py", line 720, in cleanup_machine machine.restore_default_configuration() File "/home/dandruczyk/libmaas/lib/python3.8/site-packages/maas/client/utils/maas_async.py", line 43, in wrapper result = eventloop.run_until_complete(result) File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete return future.result() File "/home/dandruczyk/libmaas/lib/python3.8/site-packages/maas/client/viscera/machines.py", line 788, in restore_default_configuration await self._handler.restore_default_configuration(system_id=self.system_id) File "/home/dandruczyk/libmaas/lib/python3.8/site-packages/maas/client/bones/__init__.py", line 307, in __call__ response = await self.bind(**params).call(**data) File "/home/dandruczyk/libmaas/lib/python3.8/site-packages/maas/client/bones/__init__.py", line 459, in dispatch response = await session.request( File "/home/dandruczyk/libmaas/lib/python3.8/site-packages/aiohttp/client.py", line 504, in _request await resp.start(conn) File "/home/dandruczyk/libmaas/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 847, in start message, payload = await self._protocol.read() # type: ignore # noqa File "/home/dandruczyk/libmaas/lib/python3.8/site-packages/aiohttp/streams.py", line 591, in read await self._waiter aiohttp.client_exceptions.ServerDisconnectedError
This is blocking our production upgrade which is sorely needed because maas 2.6.2 does NOT work well with 1000+ machines in it’s DB. Help!