Ticket 19894

Summary: Error with error: _refresh_assoc_mgr_qos_list and Job has invalid account
Product: Slurm Reporter: joao.damas
Component: SchedulingAssignee: Jacob Jenson <jacob>
Status: OPEN --- QA Contact:
Severity: 6 - No support contract    
Priority: ---    
Version: 23.11.6   
Hardware: Linux   
OS: Linux   
Site: -Other- Slinky Site: ---
Alineos Sites: --- Atos/Eviden Sites: ---
Confidential Site: --- Coreweave sites: ---
Cray Sites: --- DS9 clusters: ---
Google sites: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- NoveTech Sites: ---
Nvidia HWinf-CS Sites: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Tzag Elita Sites: ---
Linux Distro: --- Machine Name:
CLE Version: Version Fixed:
Target Release: --- DevPrio: ---
Emory-Cloud Sites: ---

Description joao.damas 2024-05-16 03:09:56 MDT
Overview: 

When submitting a job with sbatch (and not srun) on vanilla Slurm cluster without accounting, the following is written in the slurmctld log:

error: _refresh_assoc_mgr_qos_list: no new list given back keeping cached one.
sched: JobId=2 has invalid account

Steps to reproduce:

1) Create a vanilla Slurm cluster (version 23.11.6) without accounting (only slurmd and slurmctld daemons) and the following slurm.conf:

```
ClusterName=Develop
SlurmctldHost=head

# Slurm configuration
AuthType=auth/munge
CryptoType=crypto/munge
SlurmctldLogFile=/var/log/slurm/slurmctld.log
SlurmctldPidFile=/var/run/slurmctld.pid
SlurmctldPort=6817
SlurmdLogFile=/var/log/slurm/slurmd.log
SlurmdPidFile=/var/run/slurmd.pid
SlurmdPort=6818
SlurmdSpoolDir=/var/spool/slurmd
SlurmUser=slurm
StateSaveLocation=/var/spool/slurmctld

# Nodes
NodeName=worker1 CoresPerSocket=2 Sockets=1 ThreadsPerCore=1
NodeName=worker2 CoresPerSocket=2 Sockets=1 ThreadsPerCore=1

# Partitions
PartitionName=develop Default=YES MaxTime=UNLIMITED Nodes="worker1,worker2"
```

2) Run a simple job (I tried a script that just executes a sleep) with "sbatch script.sh", no extra options

Actual Results:

The job actually executes, but the following is written to the slurmctld log:

error: _refresh_assoc_mgr_qos_list: no new list given back keeping cached one.
sched: JobId=2 has invalid account

The interval between the submission and execution can be a few millisseconds, which means that it's almost unnoticeable, but sometimes can take a few seconds, which means that "squeue" reports the job to be queued and the Reason as "Invalid account".

Expected Results:

The job should run without any "Invalid account" reason and the log should not show any error.

Build Date & Hardware:

We built from source on 2024-5-13 for CentOS Linux release 7.9.2009 (we know the OS is old, but RH has extended its support)