Skip to content

Latest commit

 

History

History
139 lines (122 loc) · 7.44 KB

FINDINGS.md

File metadata and controls

139 lines (122 loc) · 7.44 KB

Findings

Pre-existing issues and follow-ups found while working on other tasks, kept out of those changes. See "Scope Discipline" in AGENTS.md; the severity uses the P0-P5 scale of "Debug And Ticket Priorities" there.

The MGM logs every refused PIO open of an obfuscated or encrypted file at ERROR

  • File: mgm/ofs/XrdMgmOfsFile.cc:1733-1745 (PIO refusal in XrdMgmOfsFile::open), mgm/ofs/XrdMgmOfsFile.cc:4417 (eos_err in XrdMgmOfsFile::Emsg).
  • Symptom: every PIO open of an obfuscated or encrypted file, read or write, is refused with ENOTSUP and logged at ERROR through Emsg. The refusal is expected: the RAIN plugin always falls back to a gateway access, and the access works. A client using the plugin on such files produces one ERROR line per file in the MGM log.
  • Evidence: Emsg calls eos_err for every error it returns. VM check of 2026-10-23 (EOS-6676): Unable to open - PIO is not supported for obfuscated or encrypted files /eos/dev/test/piofb/f; Operation not supported, followed by a successful gateway write.
  • Severity: P4 (wrong log: an expected refusal the client recovers from is logged at ERROR; no data or metadata damage).
  • Blocks the task: no (follow-up of MR !522, EOS-6676).

The RAIN plugin hides why the MGM refused a PIO open

  • File: fst/xrdcl_plugins/RainFile.cc:248 (OpenPio), reported at fst/xrdcl_plugins/RainFile.cc:162 and :183.
  • Symptom: when the MGM refuses the PIO open request, OpenPio returns its own errNotImplemented status ("error PIO open request") instead of the status of the query. The fallback warnings, and the caller, then only show [ERROR] Operation is not implemented, whatever the reason: obfuscated or encrypted file, non-RAIN layout, anonymous client.
  • Evidence: plugin log of the VM check of 2026-10-23 (EOS-6676): failed PIO write open, fall back to gateway write, err="[ERROR] Operation is not implemented"; the reason was only in the MGM log. RainFile.cc:246 logs the status of the query at ERROR before replacing it; whether that status carries the MGM's message was not checked.
  • Severity: P4 (wrong error output: the plugin reports the wrong reason; the fallback works and nothing persists).
  • Blocks the task: no (follow-up of MR !522, EOS-6676).

taperestapi.stage=off no longer disables staging

  • File: mgm/http/rest-api/config/tape/TapeRestApiConfig.cc:106 (isStageEnabled, no caller), set by mgm/proc/admin/SpaceCmd.cc:1782-1811 (SpaceCmd::TapeRestApiStageSubcmd).
  • Symptom: eos space config default taperestapi.stage=off is stored and reported, but POST /api/v1/stage/ still accepts stage requests. StageController::handleRequest, which answered "not implemented" when the switch was off, was the only caller of isStageEnabled(); 158b54e2d removed it with the controller.
  • Evidence: git show 158b54e2d shows the removed check; grep -rn 'isStageEnabled()' now only finds its definition and declaration. Not reproduced on an instance.
  • Severity: P4 (an operator switch that has no effect; no data or metadata damage).
  • Blocks the task: no (found while planning EOS-6713).

The tape REST handler unit tests keep a dangling config pointer

  • File: unit_tests/mgm/http/rest-api/tape/RestApiTest.cc:72-150, mgm/http/rest-api/handler/tape/TapeRestHandler.cc:50.
  • Symptom: the tests build TapeRestHandler(createConfig(...).get()). The unique_ptr returned by createConfig is a temporary destroyed at the end of that statement, while the handler keeps the raw pointer in mTapeRestApiConfig. handleRequest doesn't read the config today, so the tests pass; any code that reads it during handleRequest would make them undefined behaviour.
  • Evidence: code reading.
  • Severity: P5 (tests only, no failure today).
  • Blocks the task: no (found while planning EOS-6713).

The tape REST test requests keep a dangling body size pointer

  • File: unit_tests/mgm/http/rest-api/tape/RestApiTestSupport.hh:38-47 (createHttpRequest), common/http/HttpRequest.cc:47 and :62.
  • Symptom: createHttpRequest passes &dataSize, the address of a local variable, to the HttpRequest constructor, which keeps the pointer in mRequestBodySize. The local is gone when the function returns, so GetBodySize() on the returned request reads a dangling pointer. No tape REST code calls GetBodySize() today, so the tests pass; a handler that reads it would make them undefined behaviour.
  • Evidence: code reading (review of !590, 2026-11-27).
  • Severity: P5 (tests only, no failure today).
  • Blocks the task: no (found while reviewing EOS-6730).

A tape REST delete fails on a stage request with a missing file

  • File: mgm/http/rest-api/business/tape/TapeRestApiBusiness.cc:218-263 (TapeRestApiBusiness::deleteStageBulkRequest), mgm/bulk-request/prepare/manager/PrepareManager.cc:505-521 (doPrepare, end of the cancel and release path).
  • Symptom: DELETE /api/v1/stage/{id} answers 500 and keeps the request when one of its files does not exist, e.g. a stage request accepted with a per-file "does not exist" error. The delete cancels every file of the request with a plain PrepareManager, whose ignorePrepareFailures() is false, so one missing file fails the whole cancel, and the request is only removed after a successful cancel. The request stays in /proc/tape-rest-api/bulkrequests/stage until an operator removes it. POST stage/{id}/cancel is not affected: it skips the files that have an error and uses the BulkRequestPrepareManager.
  • Evidence: reproduced on 2026-11-24 on the dev VM with tapejwt (EOS-6721 red run): a stage of $dir/in/missing with an in-scope token got 201 and a new entry, and the cleanup's DELETE stage/<id> got HTTP 500. The test now creates the file before its cleanup.
  • Severity: P4 (wrong error and an undeletable request through the API; no data or namespace damage, an operator can remove the entry).
  • Blocks the task: no (EOS-6721; worked around in the instance test).

eos recycle ls (default --uid) does not list the entries of root

  • File: mgm/proc/user/RecycleCmd.cc (listing for the current uid); the help is in console/commands/native/recycle-proto-native.cc:33.
  • Symptom: as root, after eos rm of a file in a directory with a recycle bin, eos recycle ls prints no entry; eos recycle ls --all shows it, with owner root.
  • Evidence: dev box (5.5.4, 2026-11-25): a probe directory with recycle config --add-bin, an upload and eos rm as root: recycle ls | grep <path> finds 0 lines, recycle ls --all | grep <path> finds 1. The ### Recycle-Ls line of the instance suite (namespace/recycle.bats) fails on it. The old eos-instance-test piped that line outside runtest, so its result was never checked.
  • Severity: P4 (wrong output of a listing; the entry exists and can be restored and purged).
  • Blocks the task: no.

eoscp-rain-test on a plain file finds no local file3.rain

  • File: test/instance/io/rain.bats (the ### Upload line of the eoscp-rain test), same in the old test/eos-instance-test.
  • Symptom: xrdcp: no such file or directory processing /tmp/eos-instance-test/rain/file3.rain. The setup makes the file, but it is gone when the eoscp-rain test runs.
  • Evidence: dev box, 2026-11-25: the old script (10:10) and the BATS suite (rerun at 13:4x) fail on the same line with the same message.
  • Severity: P5 (test only, no EOS behavior; the eoscp-rain conversion is not tested).
  • Blocks the task: no.