1) change `max_threads_for_database_pool = 1` in /src/maasserver/utils/threads.py
2) run `sudo maas init region+rack --database-uri maas-test-db:///`
3) createadmin
4) login
The import image page does not work
You could also
1) change `max_threads_for_database_pool = 1` in /src/maasserver/utils/threads.py
2) add some log debug statements in the deferred functions
3) login and make a POST call to `/MAAS/api/2.0/boot-resources/op-import` to trigger the deadlock
check the logs: the second deferred function is never called.
I confirm this is a bug. Some ways to reproduce:
1) change `max_threads_ for_database_ pool = 1` in /src/maasserver /utils/ threads. py
2) run `sudo maas init region+rack --database-uri maas-test-db:///`
3) createadmin
4) login
The import image page does not work
You could also for_database_ pool = 1` in /src/maasserver /utils/ threads. py api/2.0/ boot-resources/ op-import` to trigger the deadlock
1) change `max_threads_
2) add some log debug statements in the deferred functions
3) login and make a POST call to `/MAAS/
check the logs: the second deferred function is never called.