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 ;-)
I think there is a bug in: /github. com/openstack/ cinder/ blob/stable/ ocata/cinder/ db/sqlalchemy/ api.py# L2623
https:/
Changing line 2623 from update( context, model, {'deleted': True}, expected_values)" to update( context, model, {'deleted': True, 'deleted_at': timeutils. utcnow( )}, expected_values)"
"conditional_
"conditional_
solves the issue and the "deleted_at" timestamp gets set correctly. With this fix "cinder-manage db purge 1" works like a charm ;-)