[LVM] Volume migration destroys volume data
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Critical
|
Mitsuhiro Tanino | ||
Juno |
Fix Released
|
High
|
Mitsuhiro Tanino | ||
Kilo |
Fix Released
|
High
|
Mitsuhiro Tanino |
Bug Description
When I migrated 1GB volume between two LVM backends on the same server, it looks like volume migration was succeeded, but the volume data was broken in fact.
The root cause is migrate_volume in lvm.py does not pass volume size in MiB but passes volume size in GiB to copy_volume().
The size argument of copy_volume() requires MiB value. As a result, copy_volume() copied only 1MiB head of 1GiB volume to the destination volume, and then the volume data was corrupted.
<dd command>
"sudo cinder-rootwrap /etc/cinder/
<Log>
2015-05-12 19:56:57.647 DEBUG oslo_concurrenc
2015-05-12 19:56:57.706 DEBUG oslo_concurrenc
2015-05-12 19:56:57.706 DEBUG cinder.volume.utils [req-94fbff8c-
Changed in cinder: | |
assignee: | nobody → Mitsuhiro Tanino (mitsuhiro-tanino) |
Changed in cinder: | |
importance: | Undecided → High |
milestone: | none → liberty-1 |
Changed in cinder: | |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | liberty-1 → 7.0.0 |
Fix proposed to branch: master /review. openstack. org/182832
Review: https:/