Bug 1169145 - glance -failed on ValueError: too many values to unpack
Summary: glance -failed on ValueError: too many values to unpack
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-glance
Version: 6.0 (Juno)
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ga
: 6.0 (Juno)
Assignee: hguemar
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-30 17:56 UTC by bkopilov
Modified: 2016-04-27 02:17 UTC (History)
9 users (show)

Fixed In Version: python-glance-store-0.1.10-1.el7ost
Doc Type: Bug Fix
Doc Text:
RBD driver in glance-store was returning incorrect values causing failure in glance.
Clone Of:
Environment:
Last Closed: 2015-02-09 20:05:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
glance api log (9.23 MB, text/plain)
2014-11-30 18:01 UTC, bkopilov
no flags Details
gz logs /var/log and /etc files (8.51 MB, application/x-gzip)
2014-12-01 09:40 UTC, bkopilov
no flags Details


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 122359 0 None None None Never

Description bkopilov 2014-11-30 17:56:33 UTC
Description of problem:

Running automation on new puddle  , these api tests failed :
tempest.api.image.v1.test_image_members.ImageMembersTest.test_add_image_member[gate]
tempest.api.image.v1.test_images.CreateRegisterImagesTest.test_register_http_image[gate]
tempest.api.image.v2.test_images.BasicOperationsImagesTest.test_register_upload_get_image_file[gate]




From log  :
python2.7/site-packages/routes/middleware.py:103
2014-11-25 03:42:14.948 28883 DEBUG glance.common.client [5a819ec5-1406-48c8-a119-4d1b42e4fce1 627ba52c25274338b226beacc52dd34c c0d9b1e15e154865b72d377b8005be18 - - -] Constructed URL: http://0.0.0.0:9191/images/ca5dc366-9c91-4b4d-8e8b-c07912dc569b _construct_url /usr/lib/python2.7/site-packages/glance/common/client.py:413
2014-11-25 03:42:14.996 28883 DEBUG glance.registry.client.v1.client [5a819ec5-1406-48c8-a119-4d1b42e4fce1 627ba52c25274338b226beacc52dd34c c0d9b1e15e154865b72d377b8005be18 - - -] Registry request GET /images/ca5dc366-9c91-4b4d-8e8b-c07912dc569b HTTP 200 request id req-ba8a8111-d35b-4890-8aec-aaf272c6d26d do_request /usr/lib/python2.7/site-packages/glance/registry/client/v1/client.py:122
2014-11-25 03:42:15.076 28883 INFO glance.wsgi.server [5a819ec5-1406-48c8-a119-4d1b42e4fce1 627ba52c25274338b226beacc52dd34c c0d9b1e15e154865b72d377b8005be18 - - -] Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/eventlet/wsgi.py", line 433, in handle_one_response
    result = self.application(self.environ, start_response)
  File "/usr/lib/python2.7/site-packages/webob/dec.py", line 130, in __call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/lib/python2.7/site-packages/webob/dec.py", line 195, in call_func
    return self.func(req, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/glance/common/wsgi.py", line 394, in __call__
    response = req.get_response(self.application)
  File "/usr/lib/python2.7/site-packages/webob/request.py", line 1296, in send
    application, catch_exc_info=False)
  File "/usr/lib/python2.7/site-packages/webob/request.py", line 1260, in call_application
    app_iter = application(self.environ, start_response)
  File "/usr/lib/python2.7/site-packages/webob/dec.py", line 130, in __call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/lib/python2.7/site-packages/webob/dec.py", line 195, in call_func
    return self.func(req, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/osprofiler/web.py", line 106, in __call__
    return request.get_response(self.application)
  File "/usr/lib/python2.7/site-packages/webob/request.py", line 1296, in send
    application, catch_exc_info=False)
  File "/usr/lib/python2.7/site-packages/webob/request.py", line 1260, in call_application
    app_iter = application(self.environ, start_response)
  File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token.py", line 748, in __call__
    return self._call_app(env, start_response)
  File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token.py", line 684, in _call_app
    return self._app(env, _fake_start_response)
  File "/usr/lib/python2.7/site-packages/webob/dec.py", line 130, in __call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/lib/python2.7/site-packages/webob/dec.py", line 195, in call_func
    return self.func(req, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/glance/common/wsgi.py", line 394, in __call__
    response = req.get_response(self.application)
  File "/usr/lib/python2.7/site-packages/webob/request.py", line 1296, in send
    application, catch_exc_info=False)
  File "/usr/lib/python2.7/site-packages/webob/request.py", line 1260, in call_application
    app_iter = application(self.environ, start_response)
  File "/usr/lib/python2.7/site-packages/paste/urlmap.py", line 203, in __call__
    return app(environ, start_response)
  File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
    return resp(environ, start_response)
  File "/usr/lib/python2.7/site-packages/routes/middleware.py", line 131, in __call__
    response = self.app(environ, start_response)
  File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
    return resp(environ, start_response)
  File "/usr/lib/python2.7/site-packages/webob/dec.py", line 130, in __call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/lib/python2.7/site-packages/webob/dec.py", line 195, in call_func
    return self.func(req, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/glance/common/wsgi.py", line 683, in __call__
    request, **action_args)
  File "/usr/lib/python2.7/site-packages/glance/common/wsgi.py", line 707, in dispatch
    return method(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/glance/api/v1/images.py", line 498, in show
    image_meta['location'])
  File "/usr/lib/python2.7/site-packages/glance/api/v1/images.py", line 460, in _get_from_store
    image_data, image_size = src_store.get(loc, context=context)
ValueError: too many values to unpack
Version-Release number of selected component (if applicable):





Ataching logs 


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 bkopilov 2014-11-30 18:01:38 UTC
Created attachment 962971 [details]
glance api log

Comment 3 Flavio Percoco 2014-12-01 09:32:16 UTC
Hey Benny,

could you please provide more info?

Is there a link to the build failure?

You didn't mention what package was use (I assume the latest). Also, you didn't provide the config files - I had to look at the glance-api configs in the log file but other confs are missing.

Thanks

Comment 4 bkopilov 2014-12-01 09:40:28 UTC
Created attachment 963195 [details]
gz logs /var/log and /etc files

Attaching all configuration files /etc/ and /var/log
its tar.gz file .
Benny

Comment 5 bkopilov 2014-12-01 09:46:12 UTC
Glance version: 
python-glance-store.noarch 0:0.1.8-1.el7ost 
openstack-glance-2014.2-1.el7ost.noarch
python-glance-2014.2-1.el7ost.noarch

Thanks , 
Benny

Comment 6 Tyler Wilson 2014-12-03 00:55:56 UTC
I can second this report, replicated with
[DEFAULT]
default_store = rbd
[glance_store]
stores = rbd
rbd_store_ceph_conf = /etc/ceph/ceph.conf
rbd_store_user = images
rbd_store_pool = images
rbd_store_chunk_size = 8

Can save an image to glance however making an instance from a glance-backed image has the same error in glance-api
File "/usr/lib/python2.7/site-packages/glance/api/v1/images.py", line 460, in _get_from_store
    image_data, image_size = src_store.get(loc, context=context)
ValueError: too many values to unpack

Comment 7 Flavio Percoco 2014-12-03 09:20:22 UTC
@Tyler That's very useful. Thanks for commenting.

I'll replicate the environment and take a look.

Comment 8 Flavio Percoco 2014-12-03 13:34:01 UTC
The fix for this issue landed upstream in september and it should be part of the next glance-store build.

Assigning @hguemar

Comment 9 hguemar 2014-12-03 14:14:04 UTC
ack

Comment 12 hguemar 2014-12-05 11:04:32 UTC
Fixed in RDO too

Comment 14 Lon Hohberger 2014-12-05 19:36:58 UTC
ERROR : Error appeared during Puppet run: 172.16.32.18_glance.pp
2014-12-05 11:30:02 Error: /Stage[main]/Glance::Registry/Exec[glance-manage db_sync]: Failed to call refresh: glance-manage db_sync returned 1 instead of one of [0]
2014-12-05 11:30:02 You will find full trace in log /var/tmp/packstack/20141205-112249-k8rmUw/manifests/172.16.32.18_glance.pp.log
2014-12-05 11:30:02 Please check log file /var/tmp/packstack/20141205-112249-k8rmUw/openstack-setup.log for more information
2014-12-05 11:30:02 

Works fine with 0.1.8-1

Comment 15 Lon Hohberger 2014-12-05 19:40:22 UTC
openstack-packstack-2014.2-0.9.dev1359.g40f3b9d.el7ost
openstack-puppet-modules-2014.2.6-1.el7ost

Comment 16 Flavio Percoco 2014-12-09 07:01:46 UTC
Lon,

The error shown in the build job is not related to this bug but to a missing oslo.serialization module.

@hguemar are you building that package already?

Comment 17 Haïkel Guémar 2015-01-06 15:10:56 UTC
Packages have been rebuilt.

Comment 18 Kevin Fox 2015-01-17 00:59:34 UTC
I think I've hit this too. RDO does not seem to be updated yet:
python-glance-store-0.1.8-1.el7.centos.noarch.rpm       

From: https://repos.fedorapeople.org/repos/openstack/openstack-juno/epel-7/

Comment 19 hguemar 2015-01-20 13:33:54 UTC
Kevin: package was built on RDO, it's stuck to step 2 in our CI.
https://copr.fedoraproject.org/coprs/jruzicka/rdo-juno-epel-7/build/64954/

Comment 20 Kevin Fox 2015-01-21 15:25:37 UTC
Yeah, that rpm fixed the issue. Thanks.

Comment 21 Scott Lewis 2015-02-09 20:05:09 UTC
This bug has been closed as a part of the RHEL-OSP 6 general availability release. For details, see https://rhn.redhat.com/errata/rhel7-rhos-6-errata.html


Note You need to log in before you can comment on or make changes to this bug.