Hitachi drivers do not allow cloning volume to a different size

Bug #1554779 reported by Sean McGinnis
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Medium
Danny Al-Gaaf

Bug Description

It's possible to create a volume from a source volume with a different size. The create_cloned_volume call into the driver could have a larger volume['size'] than the source volume. So the driver will need to create the clone, then check if it needs to extend the volume to a new size.

Changed in cinder:
milestone: none → newton-1
aditi sharma (adi-sky17)
Changed in cinder:
assignee: nobody → aditi sharma (adi-sky17)
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/293950

Changed in cinder:
assignee: aditi sharma (adi-sky17) → Danny Al-Gaaf (danny-al-gaaf)
status: New → In Progress
Revision history for this message
Danny Al-Gaaf (danny-al-gaaf) wrote :
Revision history for this message
Danny Al-Gaaf (danny-al-gaaf) wrote :

@aditi: sorry, hope you didn't start working on this one, I've forgotten to assign the bug to me before starting to write code. If okay for you reassign to me ... see the patch above

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

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

commit dbf7495f5100edca6d05024a4a43f4683036f835
Author: Danny Al-Gaaf <email address hidden>
Date: Thu Mar 17 11:09:09 2016 +0100

    Hitachi drivers: resize volume if cloned image is larger

    Extend volume if during create_volume_from_snapshot() the new volume
    is larger than the image it was cloned from. Extended test cases to
    cover the change.

    Closes-Bug: #1554779

    Change-Id: I001d40e9aaa15dfa98230a1b6902b1d24931c9af
    Signed-off-by: Danny Al-Gaaf <email address hidden>

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/cinder 9.0.0.0b1

This issue was fixed in the openstack/cinder 9.0.0.0b1 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.