getSiteSummaryWeb broken
Hi, Since 15 September this has been broken. Any ideas? It appears to need more arguments or something. Cheers adminClient = RPCClient('WorkloadManagement/WMSAdministrator', timeout=60) summary = adminClient.getSiteSummaryWeb({}, [], 0, -1) print summary {'CallStack': [' File "/opt/dirac/Linux_x86_64_glibc-2.12/lib/python2.7/threading.py", line 774, in __bootstrap\n self.__bootstrap_inner()\n', ' File "/opt/dirac/Linux_x86_64_glibc-2.12/lib/python2.7/threading.py", line 801, in __bootstrap_inner\n self.run()\n', ' File "/opt/dirac/DIRAC/Core/Utilities/ThreadPool.py", line 111, in run\n oJob.process()\n', ' File "/opt/dirac/DIRAC/Core/Utilities/ThreadPool.py", line 161, in process\n self.__jobResult = self.__jobFunction( *self.__jobArgs, **self.__jobKwArgs )\n', ' File "/opt/dirac/DIRAC/Core/DISET/private/Service.py", line 295, in _processInThread\n result = self._processProposal( trid, proposalTuple, handlerObj )\n', ' File "/opt/dirac/DIRAC/Core/DISET/private/Service.py", line 455, in _processProposal\n result = self._executeAction( trid, proposalTuple, handlerObj )\n', ' File "/opt/dirac/DIRAC/Core/DISET/private/Service.py", line 475, in _executeAction\n return handlerObj._rh_executeAction( proposalTuple )\n', ' File "/opt/dirac/DIRAC/Core/DISET/RequestHandler.py", line 121, in _rh_executeAction\n retVal = self.__doRPC( actionTuple[1] )\n', ' File "/opt/dirac/DIRAC/Core/DISET/RequestHandler.py", line 238, in __doRPC\n return self.__RPCCallFunction( method, args )\n', ' File "/opt/dirac/DIRAC/Core/DISET/RequestHandler.py", line 263, in __RPCCallFunction\n return S_ERROR( "Server error while serving %s: %s" % ( method, str( e ) ) )\n'], 'Message': 'Server error while serving getSiteSummaryWeb: need more than 2 values to unpack', 'OK': False, 'rpcStub': (('WorkloadManagement/WMSAdministrator', {'skipCACheck': False, 'keepAliveLapse': 150, 'delegatedGroup': 'gridpp_user', 'delegatedDN': '/C=UK/O=eScience/OU=QueenMaryLondon/L=Physics/CN=steve lloyd', 'timeout': 120}), 'getSiteSummaryWeb', ({}, [], 0, -1)), 'Errno': 0} +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Steve Lloyd Emeritus Professor, School of Physics and Astronomy Queen Mary University of London, Mile End Road, London E1 4NS, UK E-mail: s.l.lloyd@qmul.ac.uk +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Hi Steve, This is a bug in DIRAC caused by someone submitting a job with a malformed name. I've put in a pull request with a patch[*] and temporarily cherry-picked it on the production server, so it should work again now. Regards, Simon [*] https://github.com/DIRACGrid/DIRAC/pull/3538 On Tue, Nov 14, 2017 at 10:16:23AM +0000, Steve Lloyd wrote:
Hi, Since 15 September this has been broken. Any ideas? It appears to need more arguments or something. Cheers
adminClient = RPCClient('WorkloadManagement/WMSAdministrator', timeout=60) summary = adminClient.getSiteSummaryWeb({}, [], 0, -1) print summary
{'CallStack': [' File "/opt/dirac/Linux_x86_64_glibc-2.12/lib/python2.7/threading.py", line 774, in __bootstrap\n self.__bootstrap_inner()\n', ' File "/opt/dirac/Linux_x86_64_glibc-2.12/lib/python2.7/threading.py", line 801, in __bootstrap_inner\n self.run()\n', ' File "/opt/dirac/DIRAC/Core/Utilities/ThreadPool.py", line 111, in run\n oJob.process()\n', ' File "/opt/dirac/DIRAC/Core/Utilities/ThreadPool.py", line 161, in process\n self.__jobResult = self.__jobFunction( *self.__jobArgs, **self.__jobKwArgs )\n', ' File "/opt/dirac/DIRAC/Core/DISET/private/Service.py", line 295, in _processInThread\n result = self._processProposal( trid, proposalTuple, handlerObj )\n', ' File "/opt/dirac/DIRAC/Core/DISET/private/Service.py", line 455, in _processProposal\n result = self._executeAction( trid, proposalTuple, handlerObj )\n', ' File "/opt/dirac/DIRAC/Core/DISET/private/Service.py", line 475, in _executeAction\n return handlerObj._rh_executeAction( proposalTuple )\n', ' File "/opt/dirac/DIRAC/Core/DISET/RequestHandler.py", line 121, in _rh_executeAction\n retVal = self.__doRPC( actionTuple[1] )\n', ' File "/opt/dirac/DIRAC/Core/DISET/RequestHandler.py", line 238, in __doRPC\n return self.__RPCCallFunction( method, args )\n', ' File "/opt/dirac/DIRAC/Core/DISET/RequestHandler.py", line 263, in __RPCCallFunction\n return S_ERROR( "Server error while serving %s: %s" % ( method, str( e ) ) )\n'], 'Message': 'Server error while serving getSiteSummaryWeb: need more than 2 values to unpack', 'OK': False, 'rpcStub': (('WorkloadManagement/WMSAdministrator', {'skipCACheck': False, 'keepAliveLapse': 150, 'delegatedGroup': 'gridpp_user', 'delegatedDN': '/C=UK/O=eScience/OU=QueenMaryLondon/L=Physics/CN=steve lloyd', 'timeout': 120}), 'getSiteSummaryWeb', ({}, [], 0, -1)), 'Errno': 0}
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Steve Lloyd Emeritus Professor, School of Physics and Astronomy Queen Mary University of London, Mile End Road, London E1 4NS, UK E-mail: s.l.lloyd@qmul.ac.uk +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Hi Simon Great - thanks. Cheers +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Steve Lloyd Emeritus Professor, School of Physics and Astronomy Queen Mary University of London, Mile End Road, London E1 4NS, UK E-mail: s.l.lloyd@qmul.ac.uk +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
On 14 Nov 2017, at 11:17, Simon Fayer <simon.fayer05@imperial.ac.uk> wrote:
Hi Steve,
This is a bug in DIRAC caused by someone submitting a job with a malformed name. I've put in a pull request with a patch[*] and temporarily cherry-picked it on the production server, so it should work again now.
Regards, Simon
[*] https://github.com/DIRACGrid/DIRAC/pull/3538
On Tue, Nov 14, 2017 at 10:16:23AM +0000, Steve Lloyd wrote:
Hi, Since 15 September this has been broken. Any ideas? It appears to need more arguments or something. Cheers
adminClient = RPCClient('WorkloadManagement/WMSAdministrator', timeout=60) summary = adminClient.getSiteSummaryWeb({}, [], 0, -1) print summary
{'CallStack': [' File "/opt/dirac/Linux_x86_64_glibc-2.12/lib/python2.7/threading.py", line 774, in __bootstrap\n self.__bootstrap_inner()\n', ' File "/opt/dirac/Linux_x86_64_glibc-2.12/lib/python2.7/threading.py", line 801, in __bootstrap_inner\n self.run()\n', ' File "/opt/dirac/DIRAC/Core/Utilities/ThreadPool.py", line 111, in run\n oJob.process()\n', ' File "/opt/dirac/DIRAC/Core/Utilities/ThreadPool.py", line 161, in process\n self.__jobResult = self.__jobFunction( *self.__jobArgs, **self.__jobKwArgs )\n', ' File "/opt/dirac/DIRAC/Core/DISET/private/Service.py", line 295, in _processInThread\n result = self._processProposal( trid, proposalTuple, handlerObj )\n', ' File "/opt/dirac/DIRAC/Core/DISET/private/Service.py", line 455, in _processProposal\n result = self._executeAction( trid, proposalTuple, handlerObj )\n', ' File "/opt/dirac/DIRAC/Core/DISET/private/Service.py", line 475, in _executeAction\n return handlerObj._rh_executeAction( proposalTuple )\n', ' File "/opt/dirac/DIRAC/Core/DISET/RequestHandler.py", line 121, in _rh_executeAction\n retVal = self.__doRPC( actionTuple[1] )\n', ' File "/opt/dirac/DIRAC/Core/DISET/RequestHandler.py", line 238, in __doRPC\n return self.__RPCCallFunction( method, args )\n', ' File "/opt/dirac/DIRAC/Core/DISET/RequestHandler.py", line 263, in __RPCCallFunction\n return S_ERROR( "Server error while serving %s: %s" % ( method, str( e ) ) )\n'], 'Message': 'Server error while serving getSiteSummaryWeb: need more than 2 values to unpack', 'OK': False, 'rpcStub': (('WorkloadManagement/WMSAdministrator', {'skipCACheck': False, 'keepAliveLapse': 150, 'delegatedGroup': 'gridpp_user', 'delegatedDN': '/C=UK/O=eScience/OU=QueenMaryLondon/L=Physics/CN=steve lloyd', 'timeout': 120}), 'getSiteSummaryWeb', ({}, [], 0, -1)), 'Errno': 0}
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Steve Lloyd Emeritus Professor, School of Physics and Astronomy Queen Mary University of London, Mile End Road, London E1 4NS, UK E-mail: s.l.lloyd@qmul.ac.uk +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-- _______________________________________________ Gridpp-Dirac-Users mailing list Gridpp-Dirac-Users@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/gridpp-dirac-users
participants (2)
-
Simon Fayer
-
Steve Lloyd