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

Bug #1247111 reported by Julia Varlamova
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Invalid
Undecided
Unassigned

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.

Revision history for this message
Zhi Yan Liu (lzy-dev) wrote :

Julia Varlamova, I can't see this fails from other patchs, seems it's a invalid bug report to me.

And could you pls rebase patch #46937 manually? then to trigger a new Jenkins tests. I can check it more close after that, thanks.

Changed in glance:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.