Comment 2 for bug 1950648

Revision history for this message
Jacopo Rota (r00ta) wrote :

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
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.