Feature #17805

[fuse] access containers and container_requests through by_id directory in sitefs

Added by Tom Clegg 3 months ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Story points:
-

Description

Similar to procfs/sysfs, the by_id directory should expose other Arvados objects besides just collections and projects. Examples:
  • by_id/ce8i5-xvhdp-zzzzzzzzzzzzzzz/log → symlink to ../ce8i5-4zz18-zzzzzzzzzzzzzzz
  • by_id/ce8i5-xvhdp-zzzzzzzzzzzzzzz/output → symlink to [...]
  • by_id/ce8i5-xvhdp-zzzzzzzzzzzzzzz/state → "Final\n"
  • by_id/ce8i5-xvhdp-zzzzzzzzzzzzzzz/container → symlink to ../ce8i5-dz642-zzzzzzzzzzzzzzz
  • by_id/ce8i5-dz642-zzzzzzzzzzzzzzz/state → "Complete"
  • by_id/ce8i5-dz642-zzzzzzzzzzzzzzz/exit_code → "0\n"

History

#1 Updated by Tom Clegg 3 months ago

An experiment:

17805-sitefs-containers-pilot @ 3d8ed2b76b87033b4fed70e6b0998694c4326b8c -- https://ci.arvados.org/view/Developer/job/developer-run-tests/2522/

tom@shell:~$ ls -al gokeep/by_id/2xpu4-xvhdp-k4hxni3x51ixxbg
total 4
drwxr-xr-x 1 tom tom    5 Jun 14 14:14 .
drwxr-xr-x 1 tom tom    0 Jun 14 13:26 ..
lr--r--r-- 1 tom tom   30 Jun 14 14:14 container -> ../2xpu4-dz642-0ikxs7rdkybu4xa
-r--r--r-- 1 tom tom   18 Jun 14 14:14 container_image
-r--r--r-- 1 tom tom 2835 Jun 14 14:14 json
-r--r--r-- 1 tom tom   10 Jun 14 14:14 state
-r--r--r-- 1 tom tom   28 Jun 14 14:14 uuid
tom@shell:~$ ls -al gokeep/by_id/2xpu4-xvhdp-k4hxni3x51ixxbg/container/
total 6
drwxr-xr-x 1 tom tom    7 Jun 14 14:14 .
drwxr-xr-x 1 tom tom    2 Jun 14 14:14 ..
lr--r--r-- 1 tom tom   39 Jun 14 14:14 container_image -> ../ea739f91f71fb56289d92a1291c88187+387
-r--r--r-- 1 tom tom    2 Jun 14 14:14 exit_code
-r--r--r-- 1 tom tom    1 Jun 14 14:14 gateway_address
-r--r--r-- 1 tom tom    6 Jun 14 14:14 interactive_session_started
-r--r--r-- 1 tom tom 2608 Jun 14 14:14 json
-r--r--r-- 1 tom tom    7 Jun 14 14:14 state
-r--r--r-- 1 tom tom   28 Jun 14 14:14 uuid
tom@shell:~$ cat gokeep/by_id/2xpu4-xvhdp-k4hxni3x51ixxbg/container/state
Locked
tom@shell:~$ cat gokeep/by_id/2xpu4-xvhdp-k4hxni3x51ixxbg/json | jq .
{
  "uuid": "2xpu4-xvhdp-k4hxni3x51ixxbg",
  "owner_uuid": "2xpu4-j7d0g-1kxe8cge26hnrdl",
  "created_at": "2021-06-14T14:13:36.131322Z",
...

Also available in: Atom PDF