Cannot create a volume from an image after the image's properties were edited

Bug #1467538 reported by Yogev Rabl
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Invalid
Undecided
Unassigned

Bug Description

Description of problem:
The creation of a volume from an image failed after the minimum RAM, minimum disk and shared properties have been edited.
Cinder was able to create a volume from images that their properties were not edited (and were different than 0)

Version-Release number of selected component (if applicable):
python-cinder-2015.1.0-2.el7ost.noarch
python-cinderclient-1.1.1-1.el7ost.noarch
openstack-cinder-2015.1.0-2.el7ost.noarch
openstack-glance-2015.1.0-6.el7ost.noarch

How reproducible:
100%

Steps to Reproduce:
1. Create an image
2. Edit the image properties (min. RAM/Disk or shared/protected)
3. Create a volume from the image

Actual results:
In the Horizon the error message is: Error: Unable to create volume.
In the CLI the error is:
ERROR: Internal Server Error (HTTP 500) (Request-ID: req-1afecc0d-2647-4387-83cc-11ba214b2cad)

Expected results:
A new volume can be created from any image

Additional info:
attached: the error from the cinder's api log

Revision history for this message
Yogev Rabl (yrabl) wrote :
Revision history for this message
Liyingjun (liyingjun) wrote :

Can't reproduce on upstream

Revision history for this message
Yogev Rabl (yrabl) wrote :

Which OS are you using?

Lisa Li (lisali)
Changed in cinder:
assignee: nobody → Lisa Li (lisali)
Revision history for this message
Lisa Li (lisali) wrote :

I also can't recreate the bug.
Please add the detailed command you run.
And plus cinder-api, cinder-volume and cinder-scheduler logs better.

Changed in cinder:
assignee: Lisa Li (lisali) → nobody
Revision history for this message
Yogev Rabl (yrabl) wrote :

Lisa, can you please add the versions of the packages of Glance/Cinder that you are currently using?

Revision history for this message
Lisa Li (lisali) wrote :

I use devstack to install my environment.
$ cinder --version
1.2.1
cinder-manage --version
2015.2.0
$ glance --version
0.18.0
$ glance-manage --version
2015.2.0

Lisa Li (lisali)
Changed in cinder:
status: New → Incomplete
Revision history for this message
Cyril Roelandt (cyril-roelandt) wrote :

I have just taken a look at this issue, and tried to reproduce it in devstack. Just like Lisa, I could not witness the bug.

1) I used the "cirros-0.3.4-x86_64-uec" image provided by devstack.

2) I edited it by running:

$ glance image-update d164e9b7-aaed-4717-b21c-b2ccf4beb80e --min-ram 128 --min-disk 1 --protected True

And checked that the image had been correctly updated using "glance image-show"

3) I created a volume from this image by running:

$ cinder create 1 --display-name test2 --image-id cirros-0.3.4-x86_64-uec --availability-zone nova

It worked perfectly, and the volume appears as "available" in the list returned by "cinder list".

Revision history for this message
Karthik Prabhu Vinod (karthik-prabhu-vinod) wrote :

Hi ,

I was unable to reproduce the bug with the below versions too. I even tried updating the glance image multiple times...but the issue was not reproducible

My service versions:

ubuntu@karthikvm:~/devstack$ cinder --version
1.6.0
ubuntu@karthikvm:~/devstack$ cinder-manage --version
8.0.0
ubuntu@karthikvm:~/devstack$ glance-manage --version
12.0.0

Regards,
Karthik Prabhu

Changed in cinder:
status: Incomplete → Invalid
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.