1. 15 Aug, 2017 1 commit
  2. 11 Aug, 2017 1 commit
  3. 10 Aug, 2017 2 commits
  4. 09 Aug, 2017 2 commits
  5. 07 Aug, 2017 1 commit
  6. 28 Jul, 2017 1 commit
  7. 27 Jul, 2017 4 commits
  8. 25 Jul, 2017 2 commits
  9. 18 Jul, 2017 1 commit
    • Eric Cano's avatar
      Created a helper function for retrieve queue selection. · be6d0b4d
      Eric Cano authored
      In order to be efficient, the data (tape status and queue sizes) is cached in memory.
      This function needed access to the catalogue (where the tape status is located).
      This in turn required passing the catalogue object to:
       - The garbage colletion functions for all object types.
       - The garbage collector object now keeps a reference to the catalogue.
       - The path to the catalogue credential file should now be passed to cta-objectstore-collect-orphaned-object
       - The OStoreDB also needs a reference to the catalogue in order to queue retrive requests.
      
       The garbage collection member function are now also being passed a log context, so the requirement for better
       log of object fate can also be fulfilled later. This in turn required the passing of a logger object to
       the object store and relative helper classes.
      
       Finally, a dummy catalogue class has been created to be used in unit tests.
      be6d0b4d
  10. 14 Jul, 2017 1 commit
  11. 13 Jul, 2017 1 commit
  12. 12 Jul, 2017 4 commits
  13. 06 Jul, 2017 1 commit
    • Eric Cano's avatar
      Fixed garbage collector cleanup. · c9c63df8
      Eric Cano authored
      Implemented GarbageCollector::reinjectOwnedObject() and called it on garbage collector shutdown.
      This fixes the issue of non-empty garbage collectors exiting.
      c9c63df8
  14. 30 Jun, 2017 2 commits
  15. 27 Jun, 2017 1 commit
  16. 22 Jun, 2017 1 commit
    • Eric Cano's avatar
      Fixed end of session being reported too early in ArchiveSessions. · bb2436c1
      Eric Cano authored
      This led to VID being marked as available during unmount, and another drive could try an mount the same tape.
      Added various logs.
      
      The following sequence was observed in tests (with a sleep(3) at the end of MigrationReportPacker::ReportDriveStatus::execute() ):
       [eric@localhost ~]$ date; kubectl -n cta exec ctacli -- cta dr ls VDSTK11
      Thu Jun 22 11:19:10 CEST 2017
          drive   host  library  mountType    status  desiredUp  forceDown     vid
        VDSTK11  tpsrv  VLSTK10    Archive  Mounting         UP             V01001
      [eric@localhost ~]$ date; kubectl -n cta exec ctacli -- cta dr ls VDSTK11
      Thu Jun 22 11:19:12 CEST 2017
          drive   host  library  mountType       status  desiredUp  forceDown     vid
        VDSTK11  tpsrv  VLSTK10    Archive  Transfering         UP             V01001
      [eric@localhost ~]$ date; kubectl -n cta exec ctacli -- cta dr ls VDSTK11
      Thu Jun 22 11:19:16 CEST 2017
          drive   host  library  mountType      status  desiredUp  forceDown     vid
        VDSTK11  tpsrv  VLSTK10    Archive  CleaningUp         UP             V01001
      [eric@localhost ~]$ date; kubectl -n cta exec ctacli -- cta dr ls VDSTK11
      Thu Jun 22 11:19:18 CEST 2017
          drive   host  library  mountType     status  desiredUp  forceDown     vid
        VDSTK11  tpsrv  VLSTK10    Archive  Unloading         UP             V01001
      [eric@localhost ~]$ date; kubectl -n cta exec ctacli -- cta dr ls VDSTK11
      Thu Jun 22 11:19:22 CEST 2017
          drive   host  library  mountType      status  desiredUp  forceDown     vid
        VDSTK11  tpsrv  VLSTK10    Archive  Unmounting         UP             V01001
      [eric@localhost ~]$ date; kubectl -n cta exec ctacli -- cta dr ls VDSTK11
      Thu Jun 22 11:19:25 CEST 2017
          drive   host  library  mountType  status  desiredUp  forceDown  vid
        VDSTK11  tpsrv  VLSTK10    NoMount      Up         UP               -
      bb2436c1
  17. 21 Jun, 2017 1 commit
  18. 20 Jun, 2017 4 commits
  19. 19 Jun, 2017 4 commits
  20. 14 Jun, 2017 1 commit
  21. 11 Jun, 2017 2 commits
    • Eric Cano's avatar
      Reviewed and added logs to Scheduler::GetNextMount() · f242b946
      Eric Cano authored
      Simplified handling of already (or soon to be) mounted tapes.
      Added support for next mounts.
      Added logging of decision steps.
      f242b946
    • Eric Cano's avatar
      Added thread naming in taped. · 045863aa
      Eric Cano authored
      The different processes of taped can now be identified as in this exemple:
      [eric@localhost ~]$ ps -ax -o "pid comm cmd"  | grep /usr/bin/cta-taped
      [...]
      32593 cta-taped-main  /usr/bin/cta-taped -fl /cta-taped.log
      32800 cta-tpd-VDSTK11 /usr/bin/cta-taped -fl /cta-taped.log
      32801 cta-taped-gc    /usr/bin/cta-taped -fl /cta-taped.log
      045863aa
  22. 09 Jun, 2017 2 commits