Files
llmgw/internal/store/migrations/postgres/0052_slurm_users.sql
T
Ilker ManapandClaude Opus 5.5 d8ce573bdb
CI / test (push) Failing after 7m1s
Slurm's shared files and users: one path everywhere, accounts as Linux users
slurm.shared mounts the site's NFS export, has an llmgw node export the path
over NFS to the Slurm machines alone (2049 in the firewall), or looks for a
file system the site mounts. slurm.users "llmgw" makes each active account a
Linux user on every Slurm machine: login from its e-mail, a UID from 200000
kept in slurm_users and never reused, its home on the shared path, its SSH
keys from the portal's Profile (or ctl slurm users keys) read by sshd from
/etc/llmgw/ssh-keys. server init --slurm chooses /shared from the first
machine and llmgw's users; --slurm-shared and --slurm-users change that.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 21:34:34 +01:00

13 lines
603 B
SQL

-- Ported from the SQLite migration of the same number.
-- The Linux user llmgw makes for an account on every machine of the Slurm
-- cluster, when slurm.users is "llmgw": its login and UID (also its group's
-- GID), given once and never again to another, and the SSH public keys it
-- logs in with. No reference to users: a deleted account's row stays, so its
-- login and UID, still on the files it left, are not handed to someone else.
CREATE TABLE slurm_users (
user_id TEXT PRIMARY KEY,
login TEXT NOT NULL UNIQUE,
uid INTEGER NOT NULL UNIQUE,
ssh_keys TEXT NOT NULL DEFAULT ''
);