stfc / rucio

Rucio - Scientific Data Management
http://rucio.cern.ch
Apache License 2.0
0 stars 0 forks source link

Tests fail to bootstrap if run twice in succession #30

Closed elichad closed 4 years ago

elichad commented 4 years ago

Tests cannot be run multiple times in succession (single-VO or multi-VO) - something within the authentication process fails to return an account. Not sure if this is a VO issue or if it just flags the problem up. Maybe something to do with the caching of the authentication token.

From httpd/error_log on the second run:

Traceback (most recent call last):
[Fri Apr 17 14:26:02.735515 2020] [:error] [pid 1866:tid 140000412190464]   File "/usr/lib/python2.7/site-packages/rucio/web/rest/common.py", line 58, in rucio_loadhook
[Fri Apr 17 14:26:02.735523 2020] [:error] [pid 1866:tid 140000412190464]     auth = validate_auth_token(auth_token)
[Fri Apr 17 14:26:02.735526 2020] [:error] [pid 1866:tid 140000412190464]   File "/usr/lib/python2.7/site-packages/rucio/api/authentication.py", line 265, in validate_auth_token
[Fri Apr 17 14:26:02.735528 2020] [:error] [pid 1866:tid 140000412190464]     vo = auth['account'].vo
[Fri Apr 17 14:26:02.735530 2020] [:error] [pid 1866:tid 140000412190464] TypeError: 'NoneType' object has no attribute '__getitem__'