Ticket 21607 - restd sbatch jobs: Create tests to validate jobs processing valid and invalid accounts
Summary: restd sbatch jobs: Create tests to validate jobs processing valid and invalid...
Status: OPEN
Alias: None
Product: Slurm
Classification: Unclassified
Component: Test Suite (show other tickets)
Version: 24.11.0
Hardware: Linux Linux
: 4 - Minor Issue
Assignee: Enrique Henderson
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2024-12-10 12:07 MST by Enrique Henderson
Modified: 2024-12-17 09:23 MST (History)
1 user (show)

See Also:
Site: SchedMD-Consultant
Alineos Sites: ---
Atos/Eviden Sites: ---
Confidential Site: ---
Coreweave sites: ---
Cray Sites: ---
DS9 clusters: ---
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: ---


Attachments

Note You need to log in before you can comment on or make changes to this ticket.
Description Enrique Henderson 2024-12-10 12:07:50 MST
AC:

if the job has a valid user, cluster and account the job should process successfully

if the job has a valid user, cluster, partition and account the job should process successfully

if the job has a valid user and account but no cluster the job should process fail

if the job has a valid user and cluster but no account account the job should process fail
Comment 1 Enrique Henderson 2024-12-12 10:29:29 MST
I added test test_process_job_account_without_cluster_sbatch assuming that the test would fail but it passed. when I debug the resulting job it seems that there is a default cluster (atf) that is the reason that I did not get a failed job creation, possibly.  I then attempted deleting the atf cluster in the test before the job post method with atf.run_command(f"sacctmgr -i delete cluster name=atf", fatal=False) and the atf cluster was still in place and the test still PASSED.


After discussing with Albert, this is a rare case that is currently not testable due to the default atf general cluster.
Comment 2 Enrique Henderson 2024-12-17 09:23:25 MST
I pushed the work for https://support.schedmd.com/show_bug.cgi?id=21607 in the ticket_21607_job_account_tests  branch the test_process_job_without_account_with_cluster_partition_sbatch test should fail due to the account being missing but some how a default account is being used will  work with Albert to get a better understanding of why and fix the issue.