Errors in FTSAgent after upgrading from v7.3.18 to v8.0.24 #7165
-
FTSAgent got the following failure when upgrading from v7.3.18 to v8.0.24. DIRAC failed to submit jobs to FTS server: "2023-08-08 15:11:00 UTC DataManagement/FTS3Agent/treatOperation/1963837 ERROR: Could not get context {'OK': False, 'Errno': 0, 'Message': 'BadEndpoint("https://fts3.ihep.ac.cn:8446 (HTTPSConnectionPool(host='fts3.ihep.ac.cn', port=8446): Max retries exceeded with url: // (Caused by SSLError(SSLError(399, '[SSL: EE_KEY_TOO_SMALL] ee key too small (_ssl.c:3900)'))))")', 'CallStack': [' File "/opt/dirac/versions/v2.2.5-1690312593/Linux-x86_64/lib/python3.11/threading.py", line 995, in _bootstrap\n self._bootstrap_inner()\n', ' File "/opt/dirac/versions/v2.2.5-1690312593/Linux-x86_64/lib/python3.11/threading.py", line 1038, in _bootstrap_inner\n self.run()\n', ' File "/opt/dirac/versions/v2.2.5-1690312593/Linux-x86_64/lib/python3.11/threading.py", line 975, in run\n self._target(*self._args, **self._kwargs)\n', ' File "/opt/dirac/versions/v2.2.5-1690312593/Linux-x86_64/lib/python3.11/multiprocessing/pool.py", line 125, in worker\n result = (True, func(*args, **kwds))\n', ' File "/opt/dirac/versions/v2.2.5-1690312593/Linux-x86_64/lib/python3.11/site-packages/DIRAC/DataManagementSystem/Agent/FTS3Agent.py", line 481, in _treatOperation\n res = self.getFTS3Context(ftsJob.username, ftsJob.userGroup, ftsServer, threadID=threadID)\n', ' File "/opt/dirac/versions/v2.2.5-1690312593/Linux-x86_64/lib/python3.11/site-packages/DIRAC/DataManagementSystem/Agent/FTS3Agent.py", line 203, in getFTS3Context\n res = FTS3Job.generateContext(ftsServer, proxyFile, lifetime=self.proxyLifetime)\n', ' File "/opt/dirac/versions/v2.2.5-1690312593/Linux-x86_64/lib/python3.11/site-packages/DIRAC/DataManagementSystem/Client/FTS3Job.py", line 779, in generateContext\n return S_ERROR(repr(e))\n']} During handling of the above exception, another exception occurred: Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 5 replies
-
At a first approximation, it seems to me that the certificate used does not have the required strength. And for info look also at #6851 |
Beta Was this translation helpful? Give feedback.
-
The server cert is 1024 bits I guess:
Is it too small ? |
Beta Was this translation helpful? Give feedback.
-
I see. The certs of our server hasn't changed to 2048. I try to do it as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
I have changed server cers to 2048, but the problems are still there. Is it because user proxy is still 1024? |
Beta Was this translation helpful? Give feedback.
-
The new errors after updating certs to 2048: |
Beta Was this translation helpful? Give feedback.
-
The issue you're seeing is the same as #6299 that the default OpenSSL security level was increased to 2 (see python/cpython#88164). The best option would be to get a new certificate for voms.ihep.ac.cn. |
Beta Was this translation helpful? Give feedback.
-
The above error is from the Configuration_VOMS2CSAgent agent. The VOMS2CS agent has the same problem. |
Beta Was this translation helpful? Give feedback.
-
The fts server has not been restarted correctly. Now it is also: |
Beta Was this translation helpful? Give feedback.
-
You are right. We need to push our CA to use 4096-bit cert. Now it is 2048 bit. But it looks like not easy. To use the latest version of DIRAC, it is a must to update CAs to 4096-bit? @chrisburr |
Beta Was this translation helpful? Give feedback.
-
Updating user certs to be 2048 bit (not only 2048 proxy) seems working. |
Beta Was this translation helpful? Give feedback.
To be more specific, the problem is that the certifcate used by fts3.ihep.ac.cn is only 1024-bit.
For reference, 1024-bit RSA was first factorised in 2007 and there is little reason not to be using 4096-bit RSA. Many CAs only sign RSA 2048-bit+ or ECDSA keys.