Failed at functional tests & ./.probetests

Asked by Hugo Kou

Hi guys
When I run ./.functests & ./.probetests
there are several errors

 ./.functests
((((((((((((((((((MONITOR)))))))))))))))))))
Ran 141 tests in 95.209s

OK
.......EE.E.E.
======================================================================
ERROR: test_cross_account_container (test.functionalnosetests.test_container.TestContainer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/hugo/swift/trunk/test/functionalnosetests/test_container.py", line 375, in test_cross_account_container
    resp = retry(get2, use_account=2)
  File "/home/hugo/swift/trunk/test/functionalnosetests/swift_testing.py", line 99, in retry
    swift_test_key[use_account])
  File "/home/hugo/swift/trunk/swift/common/client.py", line 174, in get_auth
    http_reason=resp.reason)
ClientException: Auth GET failed: http://127.0.0.1:11000/v1.0 401 Unauthorized
-------------------- >> begin captured logging << --------------------
root: DEBUG: HTTP PERF: 1.90763 seconds to PUT 127.0.0.1:8080 /v1/AUTH_ae29c45345154fcea16a67f858b60de4/6ba26921ba144a6d83af0dd8ff1dd1b0 (-)
root: DEBUG: HTTP PERF: 1.91357 seconds to HEAD 127.0.0.1:8080 /v1/AUTH_ae29c45345154fcea16a67f858b60de4/6ba26921ba144a6d83af0dd8ff1dd1b0 (-)
root: DEBUG: HTTP PERF: 0.00212 seconds to GET 127.0.0.1:11000 /v1.0 (-)
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test_cross_account_public_container (test.functionalnosetests.test_container.TestContainer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/hugo/swift/trunk/test/functionalnosetests/test_container.py", line 422, in test_cross_account_public_container
    resp = retry(get2, use_account=2)
  File "/home/hugo/swift/trunk/test/functionalnosetests/swift_testing.py", line 99, in retry
    swift_test_key[use_account])
  File "/home/hugo/swift/trunk/swift/common/client.py", line 174, in get_auth
    http_reason=resp.reason)
ClientException: Auth GET failed: http://127.0.0.1:11000/v1.0 401 Unauthorized
-------------------- >> begin captured logging << --------------------
root: DEBUG: HTTP PERF: 2.04006 seconds to PUT 127.0.0.1:8080 /v1/AUTH_ae29c45345154fcea16a67f858b60de4/fef027f388de48678761715cecbec718 (-)
root: DEBUG: HTTP PERF: 2.04579 seconds to HEAD 127.0.0.1:8080 /v1/AUTH_ae29c45345154fcea16a67f858b60de4/fef027f388de48678761715cecbec718 (-)
root: DEBUG: HTTP PERF: 0.00268 seconds to GET 127.0.0.1:11000 /v1.0 (-)
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test_nonadmin_user (test.functionalnosetests.test_container.TestContainer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/hugo/swift/trunk/test/functionalnosetests/test_container.py", line 480, in test_nonadmin_user
    resp = retry(get3, use_account=3)
  File "/home/hugo/swift/trunk/test/functionalnosetests/swift_testing.py", line 99, in retry
    swift_test_key[use_account])
  File "/home/hugo/swift/trunk/swift/common/client.py", line 174, in get_auth
    http_reason=resp.reason)
ClientException: Auth GET failed: http://127.0.0.1:11000/v1.0 401 Unauthorized
-------------------- >> begin captured logging << --------------------
root: DEBUG: HTTP PERF: 2.34257 seconds to PUT 127.0.0.1:8080 /v1/AUTH_ae29c45345154fcea16a67f858b60de4/5e066338e1d745cd975bd4ef9774b3a2 (-)
root: DEBUG: HTTP PERF: 2.34907 seconds to HEAD 127.0.0.1:8080 /v1/AUTH_ae29c45345154fcea16a67f858b60de4/5e066338e1d745cd975bd4ef9774b3a2 (-)
root: DEBUG: HTTP PERF: 0.00328 seconds to GET 127.0.0.1:11000 /v1.0 (-)
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test_private_object (test.functionalnosetests.test_object.TestObject)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/hugo/swift/trunk/test/functionalnosetests/test_object.py", line 98, in test_private_object
    resp = retry(get, use_account=3)
  File "/home/hugo/swift/trunk/test/functionalnosetests/swift_testing.py", line 99, in retry
    swift_test_key[use_account])
  File "/home/hugo/swift/trunk/swift/common/client.py", line 174, in get_auth
    http_reason=resp.reason)
ClientException: Auth GET failed: http://127.0.0.1:11000/v1.0 401 Unauthorized
-------------------- >> begin captured logging << --------------------
root: DEBUG: HTTP PERF: 0.10660 seconds to PUT 127.0.0.1:8080 /v1/AUTH_ae29c45345154fcea16a67f858b60de4/85aa0c7e674245bbb6f15483b56f31af (-)
root: DEBUG: HTTP PERF: 0.14014 seconds to PUT 127.0.0.1:8080 /v1/AUTH_ae29c45345154fcea16a67f858b60de4/85aa0c7e674245bbb6f15483b56f31af/88b699f10b714fa0873b1a47d50e4673 (-)
root: DEBUG: HTTP PERF: 0.00194 seconds to GET 127.0.0.1:11000 /v1.0 (-)
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 14 tests in 3.210s

FAILED (errors=4)

((((((((((((((((((((syslog)))))))))))))))))))
Nov 9 11:20:15 ubuntu proxy-server STDOUT: self.send_error(400, "Bad request syntax (%r)" % requestline)
Nov 9 11:20:15 ubuntu proxy-server STDOUT: File "/usr/lib/python2.6/BaseHTTPServer.py", line 357, in send_error
Nov 9 11:20:15 ubuntu proxy-server STDOUT: error: [Errno 32] Broken pipe
Nov 9 11:20:41 ubuntu proxy-server STDOUT: self.send_error(400, "Bad request syntax (%r)" % requestline)
Nov 9 11:20:41 ubuntu proxy-server STDOUT: File "/usr/lib/python2.6/BaseHTTPServer.py", line 357, in send_error
Nov 9 11:20:41 ubuntu proxy-server STDOUT: error: [Errno 32] Broken pipe

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
gholt (gholt) said :
#1

It is most likely you don't have the additional test accounts needed to run those functional tests.

The SAIO docs go into this a bit indirectly in this section, steps 9, 13, and 14: http://swift.openstack.org/development_saio.html#setting-up-scripts-for-running-swift

You should just be able to run these commands and then the functional tests again:

swift-auth-add-user -K devauth -a test tester testing
swift-auth-add-user -K devauth -a test2 tester2 testing2
swift-auth-add-user -K devauth test tester3 testing3

You may need to change the super_admin key of 'devauth' to your own if you changed that.

Can you help with this problem?

Provide an answer of your own, or ask Hugo Kou for more information if necessary.

To post a message you must log in.