Anh, what version of MariaDB are you using here please? I believe the difference in what schema migrations are non-impacting is quite dramatic between the different versions (at least that was true with MySQL 5.5->5.6).
* 013_build_request_extended_attrs.py (index added)
* 015_build_request_nullable_columns.py (drops a unique constraint)
* 020_block_device_mappings_mediumtext.py (does alter table to make things medium text)
* 021_build_requests_instance_mediumtext.py (as above)
I would reach out to Andrew Gardener on our team to help with this DB issue.
This certainly shouldn't be expected behaviour.
Anh, what version of MariaDB are you using here please? I believe the difference in what schema migrations are non-impacting is quite dramatic between the different versions (at least that was true with MySQL 5.5->5.6).
Sujitha, are you able to reproduce this?
From the logs, it looks like this line is failing, build_request. create( ): /github. com/openstack/ nova/blob/ stable/ mitaka/ nova/compute/ api.py# L951
https:/
As a nasty workaround, we could add a deadlock retry decorator: api.wrap_ db_retry( max_retries= 5, retry_on_ deadlock= True) /github. com/openstack/ nova/blob/ master/ nova/objects/ build_request. py#L162
@oslo_db_
On the DB method here:
https:/
But of course, we shouldn't be hitting a deadlock in the first place!
There are a few changes to the build_request, like adding an index and changing nullable columns that may be causing issues in this cluster setup if they happen while we are adding a build request into the DB. It would be interesting to know which one was taking a long time: /github. com/openstack/ nova/blob/ stable/ newton/ nova/db/ sqlalchemy/ api_migrations/ migrate_ repo/versions/
https:/
* 013_build_ request_ extended_ attrs.py (index added) request_ nullable_ columns. py (drops a unique constraint) device_ mappings_ mediumtext. py (does alter table to make things medium text) requests_ instance_ mediumtext. py (as above)
* 015_build_
* 020_block_
* 021_build_
I would reach out to Andrew Gardener on our team to help with this DB issue.