Comment 1 for bug 2012289

Revision history for this message
Gorka Eguileor (gorka) wrote :

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