IBM FlashSystem driver does not honor create from snapshot volume size

Bug #1560655 reported by Sean McGinnis
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Low
John Cates

Bug Description

create_volume_from_snapshot can specify a volume size larger than the orginal snapshot. Current code does not appear to handle this size difference.

Changed in cinder:
importance: Undecided → Low
Changed in cinder:
status: New → Confirmed
assignee: nobody → Danny Al-Gaaf (danny-al-gaaf)
status: Confirmed → In Progress
Changed in cinder:
assignee: Danny Al-Gaaf (danny-al-gaaf) → Erlon R. Cruz (sombrafam)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on cinder (master)

Change abandoned by Sean McGinnis (<email address hidden>) on branch: master
Review: https://review.openstack.org/336092
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Changed in cinder:
assignee: Erlon R. Cruz (sombrafam) → Xinli Guan (xinli-v)
Revision history for this message
Xinli Guan (xinli-v) wrote :

YanLin;

During investigation of patch 336092, I figured out that you have already created a patch to fix the issue regarding the larger size of the volume.

Now, the core team wants to switch back to the solution that each driver will fix the the issue locally instead of using a generic solution.

Could you please restor your patch and finish it?

Changed in cinder:
assignee: Xinli Guan (xinli-v) → YanLin Ren (renylin)
YanLin Ren (renylin)
Changed in cinder:
assignee: YanLin Ren (renylin) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by Jay Bryant (<email address hidden>) on branch: master
Review: https://review.openstack.org/336092
Reason: It was decided that we wouldn't go down this path so we this patch can be abandoned.

Changed in cinder:
status: In Progress → New
John Cates (jccates)
Changed in cinder:
assignee: nobody → John Cates (jccates)
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/511346

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

Reviewed: https://review.openstack.org/511346
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=927367cd9af6adf260bea4da4dcc5cc94eaa7b13
Submitter: Zuul
Branch: master

commit 927367cd9af6adf260bea4da4dcc5cc94eaa7b13
Author: John Cates <email address hidden>
Date: Wed Oct 11 16:58:50 2017 -0500

    FlashSystems: permit snapshot/clone volumes larger than source

    Permit clone volumes and volumes created from snapshots to
    be larger than their source volumes; implemented in response
    to failures in the following CI tests:
      * VolumesSnapshotTestJSON.test_volume_from_snapshot
      * VolumesCloneTest.test_create_from_volume

    Change-Id: I21511e5c4db62563c61815c1671e8bb44ad3f427
    Closes-Bug: #1560655

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 12.0.0.0b2

This issue was fixed in the openstack/cinder 12.0.0.0b2 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/531236

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (driverfixes/ocata)

Fix proposed to branch: driverfixes/ocata
Review: https://review.openstack.org/531239

Revision history for this message
John Cates (jccates) wrote :

Redhat asked me to submit this fix to stable/pike and driverfixes/ocata.

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

Reviewed: https://review.openstack.org/531239
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=47192b622f53ebaf9cd0f1781e650e4f064ce70b
Submitter: Zuul
Branch: driverfixes/ocata

commit 47192b622f53ebaf9cd0f1781e650e4f064ce70b
Author: John Cates <email address hidden>
Date: Wed Oct 11 16:58:50 2017 -0500

    FlashSystems: permit snapshot/clone volumes larger than source

    Permit clone volumes and volumes created from snapshots to
    be larger than their source volumes; implemented in response
    to failures in the following CI tests:
      * VolumesSnapshotTestJSON.test_volume_from_snapshot
      * VolumesCloneTest.test_create_from_volume

    Change-Id: I21511e5c4db62563c61815c1671e8bb44ad3f427
    Closes-Bug: #1560655
    (cherry picked from commit 927367cd9af6adf260bea4da4dcc5cc94eaa7b13)

tags: added: in-driverfixes-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (stable/pike)

Reviewed: https://review.openstack.org/531236
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=78c2ff9f9d213dc81027ebf7470dfd6d6cd54be3
Submitter: Zuul
Branch: stable/pike

commit 78c2ff9f9d213dc81027ebf7470dfd6d6cd54be3
Author: John Cates <email address hidden>
Date: Wed Oct 11 16:58:50 2017 -0500

    FlashSystems: permit snapshot/clone volumes larger than source

    Permit clone volumes and volumes created from snapshots to
    be larger than their source volumes; implemented in response
    to failures in the following CI tests:
      * VolumesSnapshotTestJSON.test_volume_from_snapshot
      * VolumesCloneTest.test_create_from_volume

    Change-Id: I21511e5c4db62563c61815c1671e8bb44ad3f427
    Closes-Bug: #1560655
    (cherry picked from commit 927367cd9af6adf260bea4da4dcc5cc94eaa7b13)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 11.1.0

This issue was fixed in the openstack/cinder 11.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/560609

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

Reviewed: https://review.openstack.org/560609
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=06d77dbc1e8326124fa5a0607a006055c6c874c9
Submitter: Zuul
Branch: stable/ocata

commit 06d77dbc1e8326124fa5a0607a006055c6c874c9
Author: John Cates <email address hidden>
Date: Wed Oct 11 16:58:50 2017 -0500

    FlashSystems: permit snapshot/clone volumes larger than source

    Permit clone volumes and volumes created from snapshots to
    be larger than their source volumes; implemented in response
    to failures in the following CI tests:
      * VolumesSnapshotTestJSON.test_volume_from_snapshot
      * VolumesCloneTest.test_create_from_volume

    Change-Id: I21511e5c4db62563c61815c1671e8bb44ad3f427
    Closes-Bug: #1560655
    (cherry picked from commit 927367cd9af6adf260bea4da4dcc5cc94eaa7b13)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 10.0.7

This issue was fixed in the openstack/cinder 10.0.7 release.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.