model_update in failover_replication is not being applied to the db model

Bug #1491587 reported by Patrick East
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Patrick East

Bug Description

In failover_replication we get some updates from the volume driver method and then the idea is to apply them to the volume being failed over. In this process we end up sending a dictionary that looks something like:

{'model': {'provider_location': 'foo'}} which should really be just {'provider_location':'foo'} when passed into db.volume_update(..)

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/219875

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

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

commit ca7050ec206284bf74cd06ab7b24178967c42bcc
Author: Patrick East <email address hidden>
Date: Wed Sep 2 13:58:02 2015 -0700

    Use consolidated update for failover_replication

    Right now it’s using a special built volume_updates dictionary that
    contains some fields *and* a model update. We then glom all of them
    together into an update dictionary for the volume model.

    This change simplifies them into a single model update more in-line with
    how the other volume API’s work for drivers.

    It also fixes a bug where the model_update property of the volume_update
    was not being applied to the db model.

    Change-Id: I8ad85bf0e62099a8ea4dd471dfcb64fa057f1021
    Closes-Bug: #1491587

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
milestone: none → liberty-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: liberty-rc1 → 7.0.0
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.