1. 15 Jun, 2021 1 commit
  2. 02 Jun, 2021 1 commit
  3. 14 Jan, 2021 1 commit
  4. 12 May, 2020 1 commit
  5. 14 Apr, 2020 1 commit
  6. 26 Jul, 2019 1 commit
    • Eric Cano's avatar
      #533 Changed strategy for implementation. · 6385126d
      Eric Cano authored
      Moved the space reservation information to the DriveStatus object store object instead of a new central registry.
      The central registry would have been a single point of contention as was the DriveRegistry before being split into
      DriveStates. As the problem is so close to the one of the drive status, we can actually reuse the drive status for this purpose.
      The algorithm will also change as we move the responsibility of querying the free space from the disk systems into the OStoreDb
      object instead of the Scheduler. This leads to a slightly worth layering of responsibilities, making the OStoreDb::RetrieveMount
      object a client of the disk::DiskSystemFreeSpaceList object.
      The current implementation will also query the free space from the disk systems on each pop, instead of doing so in a globally
      cached fashion. With the new model, we could cache the free space per drive (if needed), but not globally. This is not expected
      to be a real issue and free space is a global counter in the disk system, expected to be readily available.
  7. 23 Jul, 2019 1 commit
  8. 05 Jul, 2019 1 commit
  9. 03 Jul, 2019 1 commit
  10. 02 Jul, 2019 1 commit
  11. 01 Jul, 2019 1 commit
  12. 05 Mar, 2019 1 commit
    • Eric Cano's avatar
      Expanded retrieve requests for repack · 19266cc0
      Eric Cano authored
      The retrieve requests now carry all the information necessary to create the archive jobs.
      Retrive requests carry an isRepack boolean. The distinction between repack and non-repack behaviour
      is pushed as low as possible in the api (in the object store) so that client code can be more
      generic. For the same reason, the
      The expand repack mode (re-creation of missing tape files) is not supported yet.
      Changed the represenation of copy numbers to uint32 (as this is the smalled number supported but protocol buffers).
      Added ArchiveRoute::StorageClassMap and ArchiveRoute::FullMap to store archive routing in memory.
      Added repack buffer base URL support, and mechanism to compute temporary copy location in disk cache.
      Fixed bug in ObjectOps<>::asyncInsert();
      Inplemented the path generation for repack disk storage (<BaseURL>/<VID>/<FSeq (09%d)>).
  13. 22 Jan, 2019 1 commit
  14. 29 May, 2018 1 commit
  15. 03 May, 2018 1 commit
  16. 22 Mar, 2018 1 commit
    • Eric Cano's avatar
      Implemented bulk retrieve request reporting · 72933cef
      Eric Cano authored
      Successful retrieve requests are asynchronously deleted as soon as they
      are complete. Then from time to time (every 500), the requests get removed from
      process ownership in bulk.
  17. 09 Aug, 2017 1 commit
  18. 27 Jul, 2017 1 commit
  19. 13 Jul, 2017 1 commit
  20. 12 Jul, 2017 2 commits
  21. 27 Jun, 2017 1 commit
  22. 26 May, 2017 1 commit
  23. 04 Jan, 2017 2 commits
  24. 15 Dec, 2016 2 commits
  25. 14 Dec, 2016 1 commit
  26. 08 Nov, 2016 1 commit
  27. 11 Oct, 2016 2 commits
    • Steven Murray's avatar
      Deleted mediachanger dir from castor dir · b38715e6
      Steven Murray authored
    • Victor Kotlyar's avatar
      Ported commits from castor/master for Encryption: · 1a3812e0
      Victor Kotlyar authored
        CASTOR-5350: Introduce encryption SCSI commands in tape drive
        Implementation of two methods:
          * setEncryptionKey(key): Sets encryption params to drive.
          * clearEncryptionKey: Clears encryption params from drive.
        Added support for an interface script that will setup drive
        encryption per tape
        Migrate TapeWriteSingleThread::TapeCleaning::~TapeCleaning() body to
        CASTOR-5350: Refactor support for only external key management script
        Merge branch 'encryption_backend' into 'master'
        CASTOR-5350: Encryption backend
        ## Description
          The aim of this merge request is to incorporate encryption support
          into CASTOR.
          The proposed changes are to be used in conjunction with the
          The **aim** is to enable encryption in specific tape pools of
        ## Changes
          * Introduce encryption SCSI backend to DriveGeneric.
          * Introduce encryption control wrapper
          * (`castor/tape/tapeserver/daemon/EncryptionControl`) for
          * abstracting the two sub-components of:
            * Calling the `ExternalEncryptionKeyScript`,
            * Calling the equivalent DriveGeneric function for
            * passing/clearing the encryption parameters to/from the drive.
          * Add new configuration option in `castor.conf` for the external key
          * management script.
          * Create a Subprocess wrapper for executing external commands as
          * CASTOR children (`castor/server/Subprocess.{h,c}pp`).
          * Incorporate encryption handling in the:
            * DataTransferSession
            * LabelSession
            * CleanerSession
          * Add encryption control timer in the task Watchdog.
        See merge request !1
        Clear encryption key only when encryption enabled
        Changes include:
          - Making EncryptionControl stateful
          - Calling clearEncryptionKey on the drive only when encryption is
        Also includes a minor duplicate code fix on DriveGeneric.
        Merge branch 'encryption_changes' into 'master'
        Clear encryption key only when encryption enabled
        ## Description
          Changes include:
          - Making EncryptionControl stateful
          - Calling `clearEncryptionKey()` on the drive only when encryption
            is on.
          Also includes a minor duplicate code fix on **DriveGeneric.cpp**.
        See merge request !2
        Check if the drive has encryption capability enabled:
          * Add isEncryptionCapEnabled() vendor-specific function
          * Check isEncryptionCapEnabled() before passing encryption params
          * Check isEncryptionCapEnabled() before clearing encryption params
          * Clear encryption key before unencrypted I/O
        Merge branch 'encryption_capability_enabled' into 'master'
        Drive encryption capabilities inclusion
        ## Description
          The aim of this merge request is to address issues related to
          encryption on drive without the encryption capability enabled.
          More specifically:
            * It introduces a vendor-specific way of identifying if the drive
            * has encryption capability enabled
            * **IBM**: Through the SPIN index SCSI page
            * **Oracle**: Through the general INQUIRY SCSI page
            * If the data to be written are to be encrypted, an additional check
            * of the encryption capability of the drive is made. In case of
            * encrypted data, but no encryption capability, the session fails.
            In essence, all encryption related operations are made modulo the
          encryption capability of the drive.
            Last, in case of unencrypted I/O, we clear the keys of the drive (if
          encryption capable) to avoid encrypted data with previous keys on
          CASTOR's system failure.
        ## Testing
          Before the merge request's submission, the following tests were
            On drives with **encryption capability enabled**:
              * Label session
              * Label with previously set encryption key
              * Write without encryption
              * Read without encryption
              * Write with encryption
              * Read with encryption
              * Write with previously set encryption key
              * Read with previously set encryption key
            On drive with **encryption cabability disabled**:
              * Label session
              * Write without encryption
              * Read without encryption
              * Write with encryption - session **should** fail
              * Read with encryption - session **should** fail
          See merge request !3
        Secure session against invalid encryption script output
        Changes in encryption workflow
          - VMGR tag is updated only on write operations
          - Empty key signifies no encryption
        Minor encryption log enhancements
          * Error line in Read/Write session with ErrorMesage key
          * Fix for delimiter in the end of arguments in argsToString()
        Merging in improvements on tape encryption support.
        Removed nullptr which is not supported in SLC6's gcc.
        Added automatic deletion of json objects in
        Fix log typo
  28. 06 Oct, 2016 1 commit
    • Eric Cano's avatar
      Implemented drive status support in drive register structure and code. · 56c4c332
      Eric Cano authored
      Added drive status reporting in scheduler
      Added drive status reporting in OStoreDB
      Added support for drive status listing in the front end
      Removed virtual functions from the Scheduler, which is never overloaded.
      Added DesiredDriveState structure to drive state.
      Removed usage of duplicate MountType, DriveStatus and DriveState structures.
      Created DriveInfo structure to allow recreation of drive register entry in all
      reporting situation (potentially with partial/assumed info).
  29. 04 Oct, 2016 1 commit
  30. 30 Sep, 2016 1 commit
    • Victor Kotlyar's avatar
      Ported commits from castor/master for general,drive,volume SCSI statistics: · e8b4ec34
      Victor Kotlyar authored
        CASTOR-5322 RFE: Enhance tapeserverd logs with SCSI tape drive
        Fix for mhtvl scsi log sense exceptions
        CASTOR-5329 Enhance tape statistics
        CASTOR-5332 RFE: Reduce log level to INFO with MHVTL - SCSI Statistics
          could not be acquired from drive
        Move volume SCSI statistics inside the dtor of TapeCleaningMove volume
          SCSI statistics inside the dtor of TapeCleaning
        ## Description
        When first introduced volume SCSI Statistics (at the moment
        IBM-specific), we explicitly put the function after the unmount of the
        tape was done due to an invalid file descriptor error occurring during
        the SCSI query.
        This bug no longer occurs for IBM drives.
        This may be attributed to the update of firmware of the IBM drives
        Apart from the change of the position of the changes, there is no
        alteration in terms of the metrics reported from the drive to the logs.
        ## Testing
        The tests the new code has been through are:
          * Write/Read file on IBM lib0 drive *(older one)*
          * Write/Read file on IBM lib4 drive *(newer one)*
          * Write/Read file on Oracle T10k drive
  31. 09 Sep, 2016 1 commit
  32. 05 Sep, 2016 1 commit
  33. 01 Sep, 2016 1 commit
  34. 12 Feb, 2016 1 commit
  35. 29 Jan, 2016 1 commit
  36. 27 Jan, 2016 1 commit