Closed Bug 1019223 Opened 10 years ago Closed 8 years ago

401 Client Error: Unauthorized running DIY Server 1.5 tests on AWS rhel 6.5

Categories

(Cloud Services Graveyard :: Server: Sync, defect, P2)

All
Linux
defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: jbonacci, Unassigned)

Details

(Whiteboard: [qa+])

This is an AWS host I set up. It is running Red Hat Enterprise Linux Server release 6.5 (Santiago)


I can git clone and build syncserver.
But running "make test" gets me this:
...etc...

Cleaning up...
./local/bin/flake8 ./syncserver
./local/bin/nosetests -s syncstorage.tests
/home/ec2-user/syncserver/local/lib/python2.6/site-packages/mozsvc/user/__init__.py:16: DeprecationWarning: authenticated_userid: As of Pyramid 1.5 the "pyramid.security.authenticated_userid" API is now deprecated.  It will be removed in Pyramd 1.8.  Use the "authenticated_userid" attribute of the Pyramid request instead.
  from pyramid.security import authenticated_userid
..................................................................SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS..SSSSSSSSSSSSSSSS.SS/home/ec2-user/syncserver/local/lib/python2.6/site-packages/mozsvc/user/__init__.py:16: DeprecationWarning: authenticated_userid: As of Pyramid 1.5 the "pyramid.security.authenticated_userid" API is now deprecated.  It will be removed in Pyramd 1.8.  Use the "authenticated_userid" attribute of the Pyramid request instead.
  from pyramid.security import authenticated_userid
/home/ec2-user/syncserver/local/lib/python2.6/site-packages/mozsvc/user/__init__.py:16: DeprecationWarning: authenticated_userid: As of Pyramid 1.5 the "pyramid.security.authenticated_userid" API is now deprecated.  It will be removed in Pyramd 1.8.  Use the "authenticated_userid" attribute of the Pyramid request instead.
  from pyramid.security import authenticated_userid
................
----------------------------------------------------------------------
Ran 232 tests in 103.608s

OK (SKIP=147)
# Tokenserver tests currently broken due to incorrect file paths
# ./local/bin/nosetests -s tokenserver.tests
# Test against a running server
./local/bin/pserve syncserver/tests.ini 2> /dev/null & SERVER_PID=$!; \
	sleep 2; \
	./local/bin/python -m syncstorage.tests.functional.test_storage \
		--use-token-server http://localhost:5000/token/1.0/sync/1.5; \
	kill $SERVER_PID
Starting server in PID 5748.
serving on 0.0.0.0:5000 view at http://127.0.0.1:5000
Traceback (most recent call last):
  File "/usr/lib64/python2.6/runpy.py", line 122, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.6/runpy.py", line 34, in _run_code
    exec code in run_globals
  File "/home/ec2-user/syncserver/local/lib/python2.6/site-packages/syncstorage/tests/functional/test_storage.py", line 1275, in <module>
    res = run_live_functional_tests(TestStorage, sys.argv)
  File "/home/ec2-user/syncserver/local/lib/python2.6/site-packages/syncstorage/tests/functional/support.py", line 178, in run_live_functional_tests
    creds = authenticate_to_token_server(url, opts.email, opts.audience)
  File "/home/ec2-user/syncserver/local/lib/python2.6/site-packages/syncstorage/tests/functional/support.py", line 110, in authenticate_to_token_server
    r.raise_for_status()
  File "/home/ec2-user/syncserver/local/lib/python2.6/site-packages/requests/models.py", line 773, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized
Strange there here is that my other rhel AWS instance, running 6.4, does not exhibit this problem...
(Ubuntu is good, also)
Whiteboard: [qa+]
Priority: -- → P2
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
Product: Cloud Services → Cloud Services Graveyard
You need to log in before you can comment on or make changes to this bug.