OVO destroy methods don't update the instance

Bug #1604347 reported by Gorka Eguileor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Gorka Eguileor

Bug Description

None of the Versioned Objects destroy methods we have update the instance fields, so after doing a destroy on an instance the status, deleted, and deleted_at fields will still be the same as they were before, leaving the instance in an inconsistent state.

Gorka Eguileor (gorka)
Changed in cinder:
assignee: nobody → Gorka Eguileor (gorka)
summary: - OVO destory methods don't update the instance
+ OVO destroy methods don't update the instance
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/344223

Changed in cinder:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/344223
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=b03f539e6e106480f0caea2f561757e0049f9505
Submitter: Jenkins
Branch: master

commit b03f539e6e106480f0caea2f561757e0049f9505
Author: Gorka Eguileor <email address hidden>
Date: Tue Jul 19 12:37:02 2016 +0200

    Update OVO instance on destroy method call

    None of the Versioned Objects destroy methods we have update the
    instance fields, so after doing a destroy on an instance the status,
    deleted, and deleted_at fields will still be the same as they were
    before, leaving the instance in an inconsistent state.

    This is important because our workers decorator for the HA A-A cleanup
    mechanism relies on the status of the resources being properly updated
    by the operations.

    Change-Id: I4f15356931007e2ca725e477327c1ef67c7db487
    Closes-Bug: #1604347

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/cinder 9.0.0.0b3

This issue was fixed in the openstack/cinder 9.0.0.0b3 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.