Skip to content

filetxt storage locations not created if not default #102

Closed
@sjpb

Description

@sjpb

In openhpc v2.0 / slurm 20.02.5 the filetxt storage type can be used for either/both accounting storage and job completion storage. Locations for these are set by AccountingStorageLoc and JobCompLoc respectively. In openhpc v2.1 /slurm v20.11.3 filetxt storage can only be used for job completion storage. Both versions support DefaultStorageLoc which can fill in for the other *StorageLoc parameters.

As of v0.7.0 the situation with this role is as follows:

  • DefaultStorageLoc is not specified in the slurm.conf template.
  • The default accounting storage type is filetxt
  • AccountingStorageLoc is not specified in the slurm.conf template
  • Accounting logs to /var/log/slurm_jobacct.log. This appears to be the internal Slurm default for DefaultStorageLoc (source). This file is not part of any package, and is not created by the role. So Slurm must create it itself.
  • The default job completion type is none.
  • There is a role default for JobCompLoc which is /var/log/slurm_jobacct.log. This appears to be inconsistent with Slurm's internal default of /var/log/slurm_jobcomp.log (source) although it is the internal default for DefaultStorageLoc.

If accounting storage type is set to none and job completion is set to filetxt, slurmctld dies on startup with a permissions error for /var/log/slurm_jobacct.log. Changing the JobCompLoc to be /var/log/slurm_jobcomp.log doesn't help, and the file must be "manually" created before slurmctld starts.

If AccountingStorageLoc is manually added to the slurm.conf template, with a non-default location, then slurmctld similarly dies similarly on startup too. So it appears that there is some special-case creation for /var/log/slurm_jobacct.log, but only if it is used for accounting storage, not as job completion storage.

Refs:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions