error message on wrong volume size is different between clone from volume and clone from image

Bug #1244609 reported by Dafna Ron on 2013-10-25
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Low
John Griffith

Bug Description

I am working with gluster configured as cinder backend.
if I try to clone a volume from image when the new volume size is smaller than the image we get the following error:

[root@cougar06 ~(keystone_admin)]# cinder create 10 --image-id 0924d3a4-d163-4ae5-8f57-fb9f1912ee26 --display-name dafna_new

ERROR: Invalid input received: Image minDisk size 20 is larger than the volume size 10.

if I try to clone a volume from a volume when the new volume is smaller than the volume we clone from we get the following error:

[root@cougar06 ~(keystone_admin)]# cinder create 10 --source-volid c3b6cb41-d78d-420d-b64c-d5f3782f7772 --display-name new_clone

ERROR: Invalid input received: Clones currently disallowed when 10 < 20. They must be >= original volume size.

Swapnil Kulkarni (coolsvap) wrote :
Changed in python-cinderclient:
status: New → In Progress
assignee: nobody → Swapnil Kulkarni (coolsvap)
importance: Undecided → Low
affects: python-cinderclient → cinder
Changed in cinder:
milestone: none → icehouse-3
Changed in cinder:
assignee: Swapnil Kulkarni (coolsvap) → John Griffith (john-griffith)

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

commit e011130104950c854bc9e139e24422b753653063
Author: Swapnil Kulkarni <email address hidden>
Date: Tue Jan 21 21:04:10 2014 +0530

    Updated error messages for volume clone

    Updated error messages for volume clone from image,
    snapshot and volume to be consistent across.
    Updated error messages to indicate the unit (GB).

    Change-Id: I9f51ad0c9ce40864a838fca06583d7d4283e61d8
    Closes-Bug: #1244609

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2014-03-05
Changed in cinder:
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2014-04-17
Changed in cinder:
milestone: icehouse-3 → 2014.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers