Bug 1014016

Summary: glance api hangs with low (1) workers on multiple parallel image creation requests
Product: Red Hat OpenStack Reporter: Alan Pevec <apevec>
Component: openstack-glanceAssignee: Flavio Percoco <fpercoco>
Status: CLOSED ERRATA QA Contact: Yogev Rabl <yrabl>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.0CC: abaron, afazekas, ddomingo, eglynn, fpercoco, hateya, sclewis, yeylon
Target Milestone: beta   
Target Release: 4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: openstack-glance-2013.2-3.el6ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1008818 Environment:
Last Closed: 2013-12-20 00:25:27 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 Alan Pevec 2013-10-01 09:28:55 UTC
+++ This bug was initially created as a clone of Bug #1008818 +++

Description of problem:
Glance api can hang in registry notification.

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

How reproducible:
Usually

Steps to Reproduce:
1. openstack-config --set /etc/glance/glance-api.conf DEFAULT workers 1 
2. service openstack-glance-api restart
3. Try several times:
for ((a=0; a<16; a++)) do
        glance  image-create --name image-$a --container-format bare --disk-format raw --file /etc/passwd &
done

Actual results:
glance image-list # Times out
API service hangs for forever.

glance-api service restart is required to continue the normal operation.

Expected results:
Service does noh hangs.


Additional info:
- On F19-devstack havana, RHEL-RDO-havana with pyhon-qpid 0.14 .. 0.24
- Tested on a 2 Core VM
- With rabbitMq the response is 500, so the bug can be related to the glance-registry. 

- No issue seen with workers=2 yet.
- glnace image-create command without the --file argument also can cause hanging issues.

Comment 2 Scott Lewis 2013-11-19 16:54:23 UTC
Auto adding >= MODIFIED bugs to beta

Comment 4 Yogev Rabl 2013-12-03 15:14:32 UTC
verified on:

python-glanceclient-0.10.0-1.el6ost.noarch
python-glance-2013.2-3.el6ost.noarch
openstack-glance-2013.2-3.el6ost.noarch

Comment 7 errata-xmlrpc 2013-12-20 00:25:27 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-2013-1859.html