Slurm's shared files and users: one path everywhere, accounts as Linux users
CI / test (push) Failing after 7m1s
CI / test (push) Failing after 7m1s
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>
This commit is contained in:
1 parent
b9d20e7bba
commit
d8ce573bdb
45 files changed
+2505
-79
No files matched your search
@@ -253,6 +253,9 @@ func (r *Router) Handler() http.Handler {
|
||||
pages.SetPersonalDefaults(r.personalDefaults)
|
||||
if r.store != nil {
|
||||
pages.SetAudit(r.store)
|
||||
if r.slurmSettings != nil {
|
||||
pages.SetSlurm(r.store, r.slurmSettings)
|
||||
}
|
||||
// A forgotten password: a link mailed when the cluster's
|
||||
// settings say how, otherwise asked of an operator.
|
||||
pages.SetPasswordReset(r.store, r.mail, r.mail.BaseURL)
|
||||
|
||||
@@ -208,6 +208,9 @@ type Router struct {
|
||||
// settingsCheck and settingsLocal mount the portal's settings page.
|
||||
settingsCheck func([]byte) error
|
||||
settingsLocal []string
|
||||
// slurmSettings is the cluster's Slurm settings, for the portal; nil
|
||||
// offers nothing of Slurm.
|
||||
slurmSettings func() config.SlurmSettings
|
||||
}
|
||||
|
||||
// SetClusterView gives the router the data the /admin page renders.
|
||||
@@ -238,6 +241,10 @@ func (r *Router) SetSettingsCheck(check func([]byte) error, local []string) {
|
||||
r.settingsCheck, r.settingsLocal = check, local
|
||||
}
|
||||
|
||||
// SetSlurm has the portal offer the Slurm cluster's login and SSH keys as
|
||||
// settings say.
|
||||
func (r *Router) SetSlurm(s func() config.SlurmSettings) { r.slurmSettings = s }
|
||||
|
||||
// SetStopped refuses, or again serves, every request for a model.
|
||||
func (r *Router) SetStopped(stopped bool) { r.stopped.Store(stopped) }
|
||||
|
||||
|
||||
Reference in new issue
Block a user