def _retype_error(context, volume, old_reservations, new_reservations, status_update):
    try:
        volume.update(status_update)
        volume.save()
    finally:
        QUOTAS.rollback(context, old_reservations)
        QUOTAS.rollback(context, new_reservations)
def _retype_error(context, volume, old_reservations, new_reservations, status_update):
    try:
        volume.update(status_update)
        volume.save()
    finally:
        QUOTAS.rollback(context, old_reservations)
        QUOTAS.rollback(context, new_reservations)