Fix volume copy logic

Bug #1890979 reported by haixin
This bug affects 1 person
Affects Status Importance Assigned to Milestone
In Progress

Bug Description

when we migration, retype or backup an volume, it need to call _transfer_data function in, especially in the RBD volume that we use a lot.

   if the volume is thin volume, and the file in the volume is sparse file, this means it may not the end of file when we read b'',if we break here will lead to Incomplete file,This is a serious situation for mirror image。
   so we should not break, we should continue and seek the offset of dest. in order to get the full data of src volume.

haixin (haixin77)
Changed in cinder:
assignee: nobody → haixin (haixin77)
haixin (haixin77)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master

Changed in cinder:
status: New → In Progress
Eric Harney (eharney)
Changed in cinder:
importance: Undecided → High
haixin (haixin77)
summary: - Optimize volume copy logic
+ Fix volume copy logic
Revision history for this message
Gorka Eguileor (gorka) wrote :

Haixin, could you provide a way to reproduce this issue and confirm that it's actually happening?

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

Other bug subscribers