Skip to content

Fix tapeserver tool regressions

Summary

During the changes for the tape drive configuration a regression for the readtp, not specifying the drive name when running the command returns an exception bad_optional_access.

Also, the configureEncryption function was trying to parse again the configuration file from a hardcoded string /etc/cta/cta-taped.conf, which is no longer valid.

Steps to reproduce

Launch readtp without specifying drive name.

What is the current bug behaviour?

The command fails

What is the expected correct behaviour?

The command succeeds

Relevant logs and/or screenshots

https://gitlab.cern.ch/cta/operations/-/issues/1406

Edited by Pablo Oliver Cortes