Error reported by unit tests seems to be correct, because we have an inconsistency.
In the model we see [1]: sa.Index('volumes_service_uuid_idx', 'deleted', 'service_uuid'),
While in the migrations we see something different [2][3]: sa.Index('volumes_service_uuid_idx', 'service_uuid', 'deleted'),
I don't know why we don't see this failure all the time and why it's not reproducible locally.
[1]: https://github.com/openstack/cinder/blob/45fd889c7820135e61bba9dbfd73f81192b6ccc3/cinder/db/sqlalchemy/models.py#L317 [2]: https://github.com/openstack/cinder/blob/45fd889c7820135e61bba9dbfd73f81192b6ccc3/cinder/db/migrations/versions/921e1a36b076_initial.py#L232 [3]: https://github.com/openstack/cinder/blob/45fd889c7820135e61bba9dbfd73f81192b6ccc3/cinder/db/legacy_migrations/versions/135_cinder_init.py#L212
Error reported by unit tests seems to be correct, because we have an inconsistency.
In the model we see [1]:
sa.Index( 'volumes_ service_ uuid_idx' , 'deleted', 'service_uuid'),
While in the migrations we see something different [2][3]:
sa.Index( 'volumes_ service_ uuid_idx' , 'service_uuid', 'deleted'),
I don't know why we don't see this failure all the time and why it's not reproducible locally.
[1]: https:/ /github. com/openstack/ cinder/ blob/45fd889c78 20135e61bba9dbf d73f81192b6ccc3 /cinder/ db/sqlalchemy/ models. py#L317 /github. com/openstack/ cinder/ blob/45fd889c78 20135e61bba9dbf d73f81192b6ccc3 /cinder/ db/migrations/ versions/ 921e1a36b076_ initial. py#L232 /github. com/openstack/ cinder/ blob/45fd889c78 20135e61bba9dbf d73f81192b6ccc3 /cinder/ db/legacy_ migrations/ versions/ 135_cinder_ init.py# L212
[2]: https:/
[3]: https:/