Comment 10 for bug 1671354

Revision history for this message
Christoph Fiehe (fiehe) wrote :

I think there is a bug in:
https://github.com/openstack/cinder/blob/stable/ocata/cinder/db/sqlalchemy/api.py#L2623

Changing line 2623 from
"conditional_update(context, model, {'deleted': True}, expected_values)" to
"conditional_update(context, model, {'deleted': True, 'deleted_at': timeutils.utcnow()}, expected_values)"
solves the issue and the "deleted_at" timestamp gets set correctly. With this fix "cinder-manage db purge 1" works like a charm ;-)