Skip to content

[9.0] Printing DiracX ForwardDISET requests#8152

Merged
fstagni merged 1 commit intoDIRACGrid:integrationfrom
chrisburr:fix-dx-fd
Apr 14, 2025
Merged

[9.0] Printing DiracX ForwardDISET requests#8152
fstagni merged 1 commit intoDIRACGrid:integrationfrom
chrisburr:fix-dx-fd

Conversation

@chrisburr
Copy link
Copy Markdown
Member

@chrisburr chrisburr commented Apr 14, 2025

Fixes this crash:

$ lb-dirac dirac-rms-request --Job 1086302975
Request name='jobAgent_1086302975' ID=53840381 Status='Waiting' Job=1086302975 Created 2025-04-10 15:54:31, Updated 2025-04-14 10:58:57, NotBefore 2025-04-14 10:58:59 Owner: 'lbpilot', Group: lhcb_pilot
Traceback (most recent call last):
  File "/cvmfs/lhcb.cern.ch/lhcbdirac/versions/v12.0.0a17-1744604904/Linux-x86_64/bin/dirac-rms-request", line 10, in <module>
    sys.exit(main())
             ^^^^^^
  File "/cvmfs/lhcb.cern.ch/lhcbdirac/versions/v12.0.0a17-1744604904/Linux-x86_64/lib/python3.11/site-packages/DIRAC/Core/Base/Script.py", line 74, in __call__
    return entrypointFunc._func()
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/cvmfs/lhcb.cern.ch/lhcbdirac/versions/v12.0.0a17-1744604904/Linux-x86_64/lib/python3.11/site-packages/DIRAC/RequestManagementSystem/scripts/dirac_rms_request.py", line 287, in main
    printRequest(request, status=dbStatus, full=full, verbose=verbose, terse=terse)
  File "/cvmfs/lhcb.cern.ch/lhcbdirac/versions/v12.0.0a17-1744604904/Linux-x86_64/lib/python3.11/site-packages/DIRAC/RequestManagementSystem/Client/ReqClient.py", line 613, in printRequest
    printOperation(indexOperation, verbose, onlyFailed=terse)
  File "/cvmfs/lhcb.cern.ch/lhcbdirac/versions/v12.0.0a17-1744604904/Linux-x86_64/lib/python3.11/site-packages/DIRAC/RequestManagementSystem/Client/ReqClient.py", line 638, in printOperation
    prStr += f"\n      Service: {decode[0][0]}"
                                 ~~~~~~^^^
KeyError: 0

BEGINRELEASENOTES

*RequestManagement
FIX: Printing DiracX ForwardDISET requests

ENDRELEASENOTES

$ lb-dirac dirac-rms-request --Job 1086302975
Request name='jobAgent_1086302975' ID=53840381 Status='Waiting' Job=1086302975
Created 2025-04-10 15:54:31, Updated 2025-04-14 10:58:57, NotBefore 2025-04-14 10:58:59
Owner: 'lbpilot', Group: lhcb_pilot
Traceback (most recent call last):
  File "/cvmfs/lhcb.cern.ch/lhcbdirac/versions/v12.0.0a17-1744604904/Linux-x86_64/bin/dirac-rms-request", line 10, in <module>
    sys.exit(main())
             ^^^^^^
  File "/cvmfs/lhcb.cern.ch/lhcbdirac/versions/v12.0.0a17-1744604904/Linux-x86_64/lib/python3.11/site-packages/DIRAC/Core/Base/Script.py", line 74, in __call__
    return entrypointFunc._func()
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/cvmfs/lhcb.cern.ch/lhcbdirac/versions/v12.0.0a17-1744604904/Linux-x86_64/lib/python3.11/site-packages/DIRAC/RequestManagementSystem/scripts/dirac_rms_request.py", line 287, in main
    printRequest(request, status=dbStatus, full=full, verbose=verbose, terse=terse)
  File "/cvmfs/lhcb.cern.ch/lhcbdirac/versions/v12.0.0a17-1744604904/Linux-x86_64/lib/python3.11/site-packages/DIRAC/RequestManagementSystem/Client/ReqClient.py", line 613, in printRequest
    printOperation(indexOperation, verbose, onlyFailed=terse)
  File "/cvmfs/lhcb.cern.ch/lhcbdirac/versions/v12.0.0a17-1744604904/Linux-x86_64/lib/python3.11/site-packages/DIRAC/RequestManagementSystem/Client/ReqClient.py", line 638, in printOperation
    prStr += f"\n      Service: {decode[0][0]}"
                                 ~~~~~~^^^
KeyError: 0
@chrisburr chrisburr requested a review from chaen as a code owner April 14, 2025 11:08
@fstagni fstagni merged commit a2a30c3 into DIRACGrid:integration Apr 14, 2025
23 checks passed
@DIRACGridBot DIRACGridBot added the sweep:ignore Prevent sweeping from being ran for this PR label Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sweep:ignore Prevent sweeping from being ran for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants