Project

General

Profile

Actions

Feature #17805

open

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

Added by Tom Clegg over 3 years ago. Updated 7 months ago.

Status:
In Progress
Priority:
Normal
Assigned To:
Category:
-
Target version:
Story points:
-
Release:
Release relationship:
Auto

Description

Similar to procfs/sysfs, the fuse filesystem should expose other Arvados objects besides just collections and projects, as well as metadata for collections and projects. Examples/ideas:
  • objects/ce8i5-xvhdp-zzzzzzzzzzzzzzz/log → symlink to ../ce8i5-4zz18-zzzzzzzzzzzzzzz
  • objects/ce8i5-xvhdp-zzzzzzzzzzzzzzz/output → symlink to [...]
  • objects/ce8i5-xvhdp-zzzzzzzzzzzzzzz/state → "Final\n"
  • objects/ce8i5-xvhdp-zzzzzzzzzzzzzzz/container → symlink to ../ce8i5-dz642-zzzzzzzzzzzzzzz
  • objects/ce8i5-dz642-zzzzzzzzzzzzzzz/state → "Complete\n"
  • objects/ce8i5-dz642-zzzzzzzzzzzzzzz/exit_code → "0\n"
  • objects/ce8i5-4zz18-zzzzzzzzzzzzzzz/properties.json → "{\"container_request_uuid\":\"ce8i5-xvhdp-zzzzzzzzzzzzzzz\"}"
  • objects/ce8i5-4zz18-zzzzzzzzzzzzzzz/properties/container_request_uuid → "ce8i5-xvhdp-zzzzzzzzzzzzzzz\n"
  • objects/ce8i5-4zz18-zzzzzzzzzzzzzzz/properties/container_request → symlink to ../../ce8i5-xvhdp-zzzzzzzzzzzzzzz
  • objects/ce8i5-4zz18-zzzzzzzzzzzzzzz/modified_at → "2021-09-25T13:31:36.27053Z\n"
  • objects/ce8i5-4zz18-zzzzzzzzzzzzzzz/files/stderr.txt → contents of collection
Actions #1

Updated by Tom Clegg over 3 years ago

An experiment:

17805-sitefs-containers-pilot @ 3d8ed2b76b87033b4fed70e6b0998694c4326b8c -- 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",
...
Actions #2

Updated by Tom Clegg almost 3 years ago

  • Assigned To set to Tom Clegg
  • Status changed from New to In Progress
Actions #3

Updated by Tom Clegg almost 3 years ago

  • Description updated (diff)
Actions #4

Updated by Peter Amstutz over 1 year ago

  • Release set to 60
Actions #5

Updated by Peter Amstutz 7 months ago

  • Target version set to Future
Actions

Also available in: Atom PDF