← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1247111] Re: Jenkins failed due to glance/tests/unit/test_cache_middleware.py

 

** Changed in: glance
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1247111

Title:
  Jenkins failed due to glance/tests/unit/test_cache_middleware.py

Status in OpenStack Image Registry and Delivery Service (Glance):
  Invalid

Bug description:
  When I sent my patch for review
  (https://review.openstack.org/#/c/46937/), Jenkins failed. Log:

  ERROR: glance.tests.unit.test_cache_middleware.TestCacheMiddlewareProcessRequest.test_process_request_without_download_image_policy
  2013-10-31 11:46:04.469 | ----------------------------------------------------------------------
  2013-10-31 11:46:04.470 | _StringException: Traceback (most recent call last):
  2013-10-31 11:46:04.470 |   File "/home/jenkins/workspace/gate-glance-python27/glance/tests/unit/test_cache_middleware.py", line 330, in test_process_request_without_download_image_policy
  2013-10-31 11:46:04.470 |     self.assertEqual(None, cache_filter.process_request(request))
  2013-10-31 11:46:04.470 |   File "/home/jenkins/workspace/gate-glance-python27/glance/api/middleware/cache.py", line 132, in process_request
  2013-10-31 11:46:04.470 |     return method(request, image_id, image_iterator)
  2013-10-31 11:46:04.470 |   File "/home/jenkins/workspace/gate-glance-python27/glance/api/middleware/cache.py", line 163, in _process_v1_request
  2013-10-31 11:46:04.470 |     image_meta = registry.get_image_metadata(request.context, image_id)
  2013-10-31 11:46:04.471 |   File "/home/jenkins/workspace/gate-glance-python27/glance/registry/client/v1/api.py", line 157, in get_image_metadata
  2013-10-31 11:46:04.471 |     return c.get_image(image_id)
  2013-10-31 11:46:04.471 |   File "/home/jenkins/workspace/gate-glance-python27/glance/registry/client/v1/client.py", line 143, in get_image
  2013-10-31 11:46:04.471 |     res = self.do_request("GET", "/images/%s" % image_id)
  2013-10-31 11:46:04.471 |   File "/home/jenkins/workspace/gate-glance-python27/glance/registry/client/v1/client.py", line 110, in do_request
  2013-10-31 11:46:04.471 |     **kwargs)
  2013-10-31 11:46:04.471 |   File "/home/jenkins/workspace/gate-glance-python27/glance/common/client.py", line 64, in wrapped
  2013-10-31 11:46:04.472 |     return func(self, *args, **kwargs)
  2013-10-31 11:46:04.472 |   File "/home/jenkins/workspace/gate-glance-python27/glance/common/client.py", line 383, in do_request
  2013-10-31 11:46:04.472 |     headers=copy.deepcopy(headers))
  2013-10-31 11:46:04.472 |   File "/home/jenkins/workspace/gate-glance-python27/glance/common/client.py", line 81, in wrapped
  2013-10-31 11:46:04.472 |     return func(self, method, url, body, headers)
  2013-10-31 11:46:04.472 |   File "/home/jenkins/workspace/gate-glance-python27/glance/common/client.py", line 460, in _do_request
  2013-10-31 11:46:04.473 |     c = connection_type(url.hostname, url.port, **self.connect_kwargs)
  2013-10-31 11:46:04.473 | TypeError: 'NoneType' object is not callable 

  
  I cannot reproduce this bug on my Fedora 18,  tox says everything is ok. This failure doesn't seem to be related to my changes to policy. On Ubunty test fails, but when I ran it in debug mode, there is no failure.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1247111/+subscriptions