Skip to content

Mount rule cache is not updated

Summary

Freshly added mount rule doesn't appear in the cache. Related operations tickets: https://gitlab.cern.ch/cta/operations/-/issues/78 and https://gitlab.cern.ch/cta/operations/-/issues/426

Steps to reproduce

  1. Add mount rule
# cta-admin rmr add --instance eosctapublic --name na62mc --mountpolicy na62 --comment "NA62 MonteCarlo account"
  1. Check it is in the list
# cta-admin rmr ls | grep -i na62mc
    eosctapublic        na62mc           na62 vyurchen           eosctafst0114.cern.ch 2021-07-27 09:05 vyurchen           eosctafst0114.cern.ch 2021-07-27 09:05 NA62 MonteCarlo account            
  1. Try to archive a file using xrdcp or FTS.

What is the current bug behavior?

Archival fails with the No mount rules for the requester or their group error.

What is the expected correct behavior?

File upload succeeds.

Relevant logs and/or screenshots

210727 09:08:29 ^[[49;31mERROR^[[0m [136597/01338]           na62mc ::Emsg             Unable to No mount rules for the requester or their group: storageClass=na62 requester=eosctapublic:na62mc:vl /eos/ctapublic/archive/grid/na62/mc/prod/v2.2.1/Kch2pipipi-106/pluto_c10_dr009001_r5622481.root; Operation not permitted

Possible fixes

Immediate fix is restarting cta-frontend service to refresh the cache.

@smurray addressed this issue in https://gitlab.cern.ch/cta/CTA/-/commit/73857c20a8f2dff780d5d7ee307769b3f2db63c3 and https://gitlab.cern.ch/cta/CTA/-/commit/08c17c4984ab8def5bb8354fc5b505822a4068fe to improve logging.

We need to follow this issue next time this bug happens.