swap_volume does not save changes made in _connect_volume

Bug #1375531 reported by Thang Pham
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Thang Pham

Bug Description

This is a bug reported by Nikola in a review - https://review.openstack.org/#/c/121965/8/nova/virt/libvirt/driver.py.

swap_volume does not save changes for connection_info. In swap_volume, a call is made to _connect_volume, which modifies connection_info. For example, in the LibvirtISCSIVolumeDriver, connection_info['data']['host_device'] = host_device. However, this update is not saved to the DB, such that any updates made within swap_volume are lost. We need to save any changes made in _connect_volume to the DB, as it is done elsewhere in the code, e.g. _get_guest_storage_config https://github.com/openstack/nova/blob/master/nova/virt/libvirt/driver.py#L3488.

Tags: volumes
Sean Dague (sdague)
Changed in nova:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

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

Reviewed: https://review.openstack.org/125208
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=beae8b764c48fcb3f6bfb245f75be04e428e1942
Submitter: Jenkins
Branch: master

commit beae8b764c48fcb3f6bfb245f75be04e428e1942
Author: Thang Pham <email address hidden>
Date: Tue Sep 30 15:14:29 2014 -0400

    Save bdm in swap_volume

    swap_volume does not save bdm changes for connection_info. In
    swap_volume, a call is made to _connect_volume that modifies
    connection_info. For example, in the LibvirtISCSIVolumeDriver,
    connection_info['data']['host_device'] = host_device. However,
    this update is not saved to the DB, such that any updates made
    within swap_volume are lost. Changes made in _connect_volume
    need to be saved to the DB.

    Change-Id: I19d5182d11097c4796093d77b5b7de11b7bc7bd8
    Closes-Bug: #1375531

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → kilo-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: kilo-2 → 2015.1.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.