Remove or cancel Timeout exceptions in unit tests

Bug #773585 reported by David Goetz
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Invalid
Undecided
Unassigned

Bug Description

Hi everyone today i tried to install Swift using the guide at http://swift.openstack.org/development_saio.html,
When i run the test "cd ~/swift/trunk; ./.unittests" this is what is put out

root@ACRS-HVM1:~/bin# cd ~/swift/trunk; ./.unittests
..........................................SSSSSSSS..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/eventlet/hubs/hub.py", line 329, in fire_timers
    timer()
  File "/usr/lib/pymodules/python2.6/eventlet/hubs/timer.py", line 56, in __call__
    cb(*args, **kw)
TypeError: exceptions must be classes, or instances, not str
EF............................................................................................
======================================================================
ERROR: test_acc_or_con_missing_returns_404 (test.unit.proxy.test_server.TestObjectController)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/swift/trunk/test/unit/proxy/test_server.py", line 1329, in test_acc_or_con_missing_returns_404
    resp = getattr(controller, 'DELETE')(req)
  File "/root/swift/trunk/swift/proxy/server.py", line 81, in wrapped
    return func(*a, **kw)
  File "/root/swift/trunk/swift/proxy/server.py", line 97, in wrapped
    return func(*a, **kw)
  File "/root/swift/trunk/swift/proxy/server.py", line 1115, in DELETE
    partition, 'DELETE', req.path_info, headers)
  File "/root/swift/trunk/swift/proxy/server.py", line 531, in make_requests
    response = [resp for resp in pile if resp]
  File "/usr/lib/pymodules/python2.6/eventlet/greenpool.py", line 218, in next
    return self.waiters.get().wait()
  File "/usr/lib/pymodules/python2.6/eventlet/greenthread.py", line 166, in wait
    return self._exit_event.wait()
  File "/usr/lib/pymodules/python2.6/eventlet/event.py", line 116, in wait
    return hubs.get_hub().switch()
  File "/usr/lib/pymodules/python2.6/eventlet/hubs/hub.py", line 172, in switch
    return self.greenlet.switch()
MessageTimeout: 42 seconds: my error message

======================================================================
FAIL: test_bad_metadata (test.unit.proxy.test_server.TestObjectController)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/swift/trunk/test/unit/proxy/test_server.py", line 1427, in test_bad_metadata
    self.assertEquals(resp.status_int, 201)
AssertionError: 503 != 201

Name Stmts Exec Cover Missing
--------------------------------------------------------------------
swift 3 3 100%
swift.account 0 0 100%
swift.account.auditor 57 12 21% 30-37, 41-62, 66-84, 93-103
swift.account.reaper 204 23 11% 55-74, 78-82, 86-90, 94-98, 106-113, 122-132, 147-174, 213-266, 304-364, 387-415
swift.account.replicator 8 8 100%
swift.account.server 215 171 79% 62-63, 66, 69, 82-83, 86, 114, 137-138, 141, 156-158, 172, 255-269, 275-276, 280, 283, 286, 301, 307-311, 315, 327, 335-337
swift.common 0 0 100%
swift.common.bench 177 31 17% 32-33, 36, 42-78, 83-84, 91-104, 107-116, 119, 125-129, 132-139, 145-148, 151-157, 161-177, 183-186, 189-205, 211-218, 222-248
swift.common.bufferedhttp 64 46 71% 64-65, 122, 124, 155-169
swift.common.client 428 327 76% 28-29, 33-34, 39-43, 82, 124, 129, 134, 188-191, 217-225, 229, 231, 233, 249, 293-302, 332-344, 349, 351, 353, 355, 370, 399-402, 447-457, 520-533, 562-565, 599, 601, 603, 605, 616-627, 750, 754, 775, 797
swift.common.compressing_file_reader 31 31 100%
swift.common.constraints 73 73 100%
swift.common.daemon 38 35 92% 46-48
swift.common.db 730 631 86% 134-135, 230, 241, 298-301, 336-342, 354-356, 407-409, 425, 466, 472-474, 498-501, 529-535, 547, 582, 594, 597, 651, 732-734, 750, 762-763, 770-772, 800-803, 835, 841, 843, 866-868, 875, 893-895, 944-946, 971, 1067, 1201, 1216-1217, 1224-1226, 1236-1238, 1271-1274, 1288-1290, 1336, 1338, 1346-1360, 1374-1376, 1403-1405, 1430-1432, 1454, 1515
swift.common.db_replicator 316 192 60% 58, 180, 188, 193-195, 220-224, 233, 266, 285-287, 293, 295-296, 298, 306-312, 336, 344-345, 349-350, 354-357, 364-374, 391-398, 401-405, 413-414, 416-427, 430, 440-445, 458-477, 480-503, 514-522, 528-539
swift.common.direct_client 167 18 10% 34-36, 53-72, 94-124, 129-138, 163-182, 202-231, 257-287, 305-314, 338-347, 370-403
swift.common.exceptions 25 25 100%
swift.common.internal_proxy 85 79 92% 53, 115, 123, 127, 185, 207
swift.common.manager 321 321 100%
swift.common.memcached 187 171 91% 81-85, 101, 170-171, 206-208, 245-246, 275-276, 311-312
swift.common.middleware 0 0 100%
swift.common.middleware.acl 47 47 100%
swift.common.middleware.catch_errors 20 15 75% 43-48
swift.common.middleware.domain_remap 56 51 91% 108-113
swift.common.middleware.healthcheck 15 12 80% 42-44
swift.common.middleware.memcache 14 9 64% 36-42
swift.common.middleware.ratelimit 124 124 100%
swift.common.middleware.staticweb 219 213 97% 114-115, 150, 511, 516, 519
swift.common.middleware.swauth 721 668 92% 18-19, 83, 90, 97-98, 199, 202-235, 264-265, 317, 319-321, 348-349, 916, 1014-1015, 1044-1046, 1333, 1336, 1340, 1345, 1348, 1353
swift.common.middleware.swift3 231 225 97% 215, 337, 395-398, 446-447
swift.common.ring 2 2 100%
swift.common.ring.builder 256 227 88% 73-99, 102, 130, 147
swift.common.ring.ring 68 64 94% 33, 58, 67, 81
swift.common.utils 492 444 90% 71-72, 98, 134, 261, 317, 612-615, 644-648, 675-690, 701-707, 835-837, 873-876, 884, 889, 894, 962
swift.common.wsgi 111 38 34% 78-80, 82, 101-190
swift.container 0 0 100%
swift.container.auditor 58 12 20% 30-38, 42-64, 68-87, 96-106
swift.container.replicator 8 8 100%
swift.container.server 254 208 81% 102, 122-123, 134-135, 139, 142, 157, 163, 170-171, 175, 178, 195, 216-217, 220, 247, 343-357, 363-364, 368, 371, 374, 390, 396-400, 412, 420-422
swift.container.updater 166 106 63% 78-79, 89-99, 105-157, 201, 203, 237-240, 274-278
swift.obj 0 0 100%
swift.obj.auditor 115 113 98% 133-134
swift.obj.replicator 334 270 80% 150-154, 166-169, 222-225, 230-235, 237, 240, 261, 274, 284, 310, 331-332, 350, 365-368, 370-373, 385, 400-401, 433, 438-442, 451, 461-464, 479-480, 483, 493-494, 518-520, 527-529, 544-556
swift.obj.server 465 429 92% 114, 232-233, 281-282, 364-365, 457, 460, 493, 566, 639, 675, 699-716, 724, 731-734, 747, 753, 759-761
swift.obj.updater 140 99 70% 63-101, 112-114, 134, 139, 142-146, 167-172
swift.proxy 0 0 100%
swift.proxy.server 983 909 92% 19-20, 163-164, 210-216, 257-263, 385, 453-463, 509, 599, 616-617, 621-625, 705-713, 730-733, 735-738, 762, 766-769, 784, 795-800, 826, 1025, 1027-1030, 1099-1101, 1123, 1174, 1254, 1292, 1449, 1471, 1506, 1548, 1567, 1590-1592
swift.stats 0 0 100%
swift.stats.access_processor 150 137 91% 69-72, 76-79, 145-146, 162, 164, 171, 176, 200-202
swift.stats.account_stats 64 14 21% 36-51, 55-58, 63-112
swift.stats.log_processor 293 256 87% 46, 97-111, 124-125, 136-137, 199, 204-207, 211, 227-240, 497, 520-524
swift.stats.log_uploader 104 104 100%
swift.stats.stats_processor 30 26 86% 32, 38-41
--------------------------------------------------------------------
TOTAL 8669 7027 81%
----------------------------------------------------------------------
Ran 818 tests in 92.575s
FAILED (SKIP=8, errors=1)

can someone please help me

Greg Lange (greglange)
Changed in swift:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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