← Back to team overview

registry team mailing list archive

Re: [Bug 610140] [NEW] r164 - ApiEc2TestCase failures - HTTPHeaders

 

On 07/26/2010 06:38 PM, Jay Pipes wrote:
> Public bug reported:
> 
> Clean trunk at r164, this morning I get:
> 
> ===============================================================================
> [ERROR]: nova.tests.api_unittest.ApiEc2TestCase.test_describe_instances
> 
> Traceback (most recent call last):
>   File "/home/jpipes/repos/nova/data-store-driver/nova/test.py", line 222, in run
>     d = self._maybeInlineCallbacks(testMethod)
>   File "/home/jpipes/repos/nova/data-store-driver/nova/test.py", line 182, in _maybeInlineCallbacks
>     g = f()
>   File "/home/jpipes/repos/nova/data-store-driver/nova/tests/api_unittest.py", line 182, in test_describe_instances
>     self.assertEqual(self.ec2.get_all_instances(), [])
>   File "/home/jpipes/virtenvs/nova/data-store-driver/lib/python2.6/site-packages/boto-2.0b1-py2.6.egg/boto/ec2/connection.py", line 376, in get_all_instances
>     return self.get_list('DescribeInstances', params, [('item', Reservation)])
>   File "/home/jpipes/virtenvs/nova/data-store-driver/lib/python2.6/site-packages/boto-2.0b1-py2.6.egg/boto/connection.py", line 621, in get_list
>     response = self.make_request(action, params, path, verb)
>   File "/home/jpipes/virtenvs/nova/data-store-driver/lib/python2.6/site-packages/boto-2.0b1-py2.6.egg/boto/connection.py", line 608, in make_request
>     headers=headers)
>   File "/home/jpipes/virtenvs/nova/data-store-driver/lib/python2.6/site-packages/boto-2.0b1-py2.6.egg/boto/connection.py", line 477, in make_request
>     return self._mexe(method, path, data, headers, host, sender)
>   File "/home/jpipes/virtenvs/nova/data-store-driver/lib/python2.6/site-packages/boto-2.0b1-py2.6.egg/boto/connection.py", line 406, in _mexe
>     connection.request(method, path, data, headers)
>   File "/home/jpipes/repos/nova/data-store-driver/nova/tests/api_unittest.py", line 129, in request
>     host=self.host)
>   File "/home/jpipes/repos/nova/data-store-driver/nova/tests/api_unittest.py", line 46, in boto_to_tornado
>     headers = httpserver.HTTPHeaders()
> exceptions.AttributeError: 'module' object has no attribute 'HTTPHeaders'
> ===============================================================================
> [ERROR]: nova.tests.api_unittest.ApiEc2TestCase.test_get_all_key_pairs
> 
> Traceback (most recent call last):
>   File "/home/jpipes/repos/nova/data-store-driver/nova/test.py", line 222, in run
>     d = self._maybeInlineCallbacks(testMethod)
>   File "/home/jpipes/repos/nova/data-store-driver/nova/test.py", line 182, in _maybeInlineCallbacks
>     g = f()
>   File "/home/jpipes/repos/nova/data-store-driver/nova/tests/api_unittest.py", line 196, in test_get_all_key_pairs
>     rv = self.ec2.get_all_key_pairs()
>   File "/home/jpipes/virtenvs/nova/data-store-driver/lib/python2.6/site-packages/boto-2.0b1-py2.6.egg/boto/ec2/connection.py", line 1242, in get_all_key_pairs
>     return self.get_list('DescribeKeyPairs', params, [('item', KeyPair)])
>   File "/home/jpipes/virtenvs/nova/data-store-driver/lib/python2.6/site-packages/boto-2.0b1-py2.6.egg/boto/connection.py", line 621, in get_list
>     response = self.make_request(action, params, path, verb)
>   File "/home/jpipes/virtenvs/nova/data-store-driver/lib/python2.6/site-packages/boto-2.0b1-py2.6.egg/boto/connection.py", line 608, in make_request
>     headers=headers)
>   File "/home/jpipes/virtenvs/nova/data-store-driver/lib/python2.6/site-packages/boto-2.0b1-py2.6.egg/boto/connection.py", line 477, in make_request
>     return self._mexe(method, path, data, headers, host, sender)
>   File "/home/jpipes/virtenvs/nova/data-store-driver/lib/python2.6/site-packages/boto-2.0b1-py2.6.egg/boto/connection.py", line 406, in _mexe
>     connection.request(method, path, data, headers)
>   File "/home/jpipes/repos/nova/data-store-driver/nova/tests/api_unittest.py", line 129, in request
>     host=self.host)
>   File "/home/jpipes/repos/nova/data-store-driver/nova/tests/api_unittest.py", line 46, in boto_to_tornado
>     headers = httpserver.HTTPHeaders()
> exceptions.AttributeError: 'module' object has no attribute 'HTTPHeaders'
> 
> Is this a twisted versioning issue?
> 
> ** Affects: nova
>      Importance: Undecided
>          Status: New
> 

This is a tornado versioning issue, the following patch fixes it:
http://pastebin.ubuntu.com/469186/

Best regards

-- 
Muharem Hrnjadovic <muharem@xxxxxxxxxx>
Public key id   : B2BBFCFC
Key fingerprint : A5A3 CC67 2B87 D641 103F  5602 219F 6B60 B2BB FCFC

-- 
r164 - ApiEc2TestCase failures - HTTPHeaders
https://bugs.launchpad.net/bugs/610140
You received this bug notification because you are a member of Registry
Administrators, which is subscribed to OpenStack.



References