Skip to content

Improve 'disabled tape' reason message written by drive cleaner session

Problem

As shown in https://gitlab.cern.ch/cta/operations/-/issues/1417#note_8067069, when the tape serve CleanerSession fails due to an exception, it copies that exception message directly to the DISABLED_REASON column of the TAPE table.

This is confusing for operators and not desirable.

image__1_

Discussed solution

The code that needs to be fixed is here:

Tasks:

  • Change DISABLED_REASON to [cta-taped 2024-05-29 <time>]: Disabled tape due to failed cleaner session (or something similar).
  • The actual exception can instead be logged as an ERROR to the log file, with backtrace printing enabled. This way we can monitor the ERROR occurences, but without poluting the DISABLED_REASON field with unnecessary information.