Bug 1023384

Summary: different error message when size is too small between clone from image and clone from volume
Product: Red Hat OpenStack Reporter: Dafna Ron <dron>
Component: openstack-cinderAssignee: Flavio Percoco <fpercoco>
Status: CLOSED ERRATA QA Contact: Yogev Rabl <yrabl>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.0CC: ddomingo, eharney, fpercoco, jruzicka, nlevinki, yeylon
Target Milestone: rc   
Target Release: 5.0 (RHEL 7)   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: openstack-cinder-2014.1-4.el6ost Doc Type: Bug Fix
Doc Text:
In previous releases, if a source of a volume or image was larger than the destination, then cloning the source or image resulted in inconsistent errors, depending on the source type. This release applies several consistency fixes to the error messaging system of volume clones, as well as volume clones from: * images, * snapshots, and * other volumes In addition, with this release error messages now indicate the unit (for example, GB).
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-08 15:30:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dafna Ron 2013-10-25 10:17:01 UTC
Description of problem:

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.

Version-Release number of selected component (if applicable):

openstack-cinder-2013.2-0.11.rc1.el6ost.noarch
python-cinder-2013.2-0.11.rc1.el6ost.noarch
python-cinderclient-1.0.6-1.el6ost.noarch

How reproducible:

100%

Steps to Reproduce:
1. create an image and a volume 
2. clone a volume from the image but give new volume size smaller than the image 
3. clone a volume from the volume but give a new volume size smaller than the src volume. 

Actual results:

we get different error messages 

Expected results:

we should get the same error messages 

Additional info:

Comment 2 Yogev Rabl 2014-06-25 12:51:24 UTC
verified in version:

openstack-cinder-2014.1-6.el7ost.noarch
python-cinder-2014.1-6.el7ost.noarch
python-cinderclient-1.0.9-1.el7ost.noarch

Comment 5 errata-xmlrpc 2014-07-08 15:30:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2014-0852.html

Comment 6 Red Hat Bugzilla 2023-09-14 01:52:40 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days