Skip to content

Add new support for repack archive routes

Problem

As shown in https://gitlab.cern.ch/cta/operations/-/issues/1310 and other issues, there is currently no way to separate repack archive requests from user archive requests regarding the destination tape pool.

This means that, during a repack, old files that are being queued and written to a new tape may get mixed with new files that have just been queued by users of the same VO.

This is an undesirable behaviour that may end up causing issues (for example performance) when reading very different types of files from the same tape. It is also the latest blocker from completely separating the CTA operation domain from user domain.
More info can be found here on slide 23:

Solution

Part 1 (CTA catalogue)

  • Add a new REPACK_TAPE_POOL_ID column to the ARCHIVE_ROUTE.
  • This column should be optional (nullable), be a foreign key to TAPE_POOL_ID and UNIQUE (together with STORAGE_CLASS_ID).

Part 2 (CTA code)