Uploaded image for project: 'StoRM'
  1. StoRM
  2. STOR-305

srmReleaseFiles doesn't release multiple files at once

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.11.1
    • 1.11.2
    • None
    • Security Level: Public (Visbile by non-authn users.)
    • None

    Description

      SRM specification says:
      "If requestToken is not provided and SURLs are provided, then the SRM must release all the files specified by the SURLs owned by the client, regardless of the requestToken."

      But in StoRM 1.11.1 after a pair of ptg on the same SURL, a rf on that SURL fails with an SRM_INVALID_PATH, as you can see from the following clientSRM output:

      [vianello@igi-ui ~]$ clientSRM ptg -e httpg://omii001-vm02.cnaf.infn.it:8444/ -s srm://omii001-vm02.cnaf.infn.it:8444/srm/managerv2?SFN=/noauth/test-enrico.txt -v N -p
      ============================================================
      Sending PtG request to: httpg://omii001-vm02.cnaf.infn.it:8444/
      Before execute:
      Afer execute:
      Request Status Code 17
      Poll Flag 1
      ============================================================
      Polling request status:
      Current status: SRM_REQUEST_QUEUED (Ctrl+c to stop polling)..
      ============================================================
      Request status:
        statusCode="SRM_SUCCESS"(0)
        explanation="All chunks successfully handled!"
      ============================================================
      SRM Response:
        requestToken="929bc07f-2ad5-4556-9d5c-9882db6041c1"
        remainingTotalRequestTime=NULL
        arrayOfFileStatuses (size=1)
            [0] status: statusCode="SRM_FILE_PINNED"(22)
                        explanation="srmPrepareToGet successfully handled!"
            [0] sourceSURL="srm://omii001-vm02.cnaf.infn.it:8444/srm/managerv2?SFN=/noauth/test-enrico.txt"
            [0] fileSize=0
            [0] estimatedWaitTime=NULL
            [0] remainingPinTime=NULL
            [0] transferURL="gsiftp://omii001-vm02.cnaf.infn.it:2811//gpfs_omni/testbed_1.11_sl6/storage/noauth/test-enrico.txt"
            [0] transferProtocolInfo=NULL
      ============================================================
      [vianello@igi-ui ~]$ clientSRM ptg -e httpg://omii001-vm02.cnaf.infn.it:8444/ -s srm://omii001-vm02.cnaf.infn.it:8444/srm/managerv2?SFN=/noauth/test-enrico.txt -v N -p
      ============================================================
      Sending PtG request to: httpg://omii001-vm02.cnaf.infn.it:8444/
      Before execute:
      Afer execute:
      Request Status Code 17
      Poll Flag 1
      ============================================================
      Polling request status:
      Current status: SRM_REQUEST_QUEUED (Ctrl+c to stop polling)..
      ============================================================
      Request status:
        statusCode="SRM_SUCCESS"(0)
        explanation="All chunks successfully handled!"
      ============================================================
      SRM Response:
        requestToken="34798674-77f9-4c73-8178-71a075fcf108"
        remainingTotalRequestTime=NULL
        arrayOfFileStatuses (size=1)
            [0] status: statusCode="SRM_FILE_PINNED"(22)
                        explanation="srmPrepareToGet successfully handled!"
            [0] sourceSURL="srm://omii001-vm02.cnaf.infn.it:8444/srm/managerv2?SFN=/noauth/test-enrico.txt"
            [0] fileSize=0
            [0] estimatedWaitTime=NULL
            [0] remainingPinTime=NULL
            [0] transferURL="gsiftp://omii001-vm03.cnaf.infn.it:2811//gpfs_omni/testbed_1.11_sl6/storage/noauth/test-enrico.txt"
            [0] transferProtocolInfo=NULL
      ============================================================
      [vianello@igi-ui ~]$ clientSRM rf -e httpg://omii001-vm02.cnaf.infn.it:8444/ -s srm://omii001-vm02.cnaf.infn.it:8444/srm/managerv2?SFN=/noauth/test-enrico.txt -v N
      ============================================================
      Sending ReleaseFiles request to: httpg://omii001-vm02.cnaf.infn.it:8444/
      Before execute:
      Afer execute:
      Request Status Code 1
      Poll Flag 0
      ============================================================
      Request status:
        statusCode="SRM_FAILURE"(1)
        explanation="No files released"
      ============================================================
      SRM Response:
        arrayOfFileStatuses (size=1)
            [0] SURL="srm://omii001-vm02.cnaf.infn.it:8444/srm/managerv2?SFN=/noauth/test-enrico.txt"
            [0] status: statusCode="SRM_INVALID_PATH"(5)
                        explanation="Not released because it is not pinned"
      ============================================================
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            vianello Enrico Vianello
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: