Ticket 11915

Summary: error: _set_job_field: unrecognized field: gres_alloc
Product: Slurm Reporter: Amit Kumar <ahkumar>
Component: ConfigurationAssignee: Scott Hilton <scott>
Status: RESOLVED INFOGIVEN QA Contact:
Severity: 3 - Medium Impact    
Priority: ---    
Version: 20.11.3   
Hardware: Linux   
OS: Linux   
Site: SMU Alineos Sites: ---
Atos/Eviden Sites: --- Confidential Site: ---
Coreweave sites: --- Cray Sites: ---
DS9 clusters: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Linux Distro: ---
Machine Name: CLE Version:
Version Fixed: Target Release: ---
DevPrio: --- Emory-Cloud Sites: ---

Description Amit Kumar 2021-06-25 15:26:56 MDT
Dear SchedMD,

Here is new ticket as per your suggestion for addressing the following: 

> error: _set_job_field: unrecognized field: gres_alloc
> error: _set_job_field: unrecognized field: req

Please let me know if you need additional information. 

Thank you,
Amit
Comment 2 Scott Hilton 2021-07-02 14:24:01 MDT
Amit,

> error: _set_job_field: unrecognized field: gres_alloc
> error: _set_job_field: unrecognized field: req

These error messages mean that the lua script tried to edit fields that don't exist in that structure.

-Scott
Comment 3 Amit Kumar 2021-07-02 14:37:29 MDT
(In reply to Scott Hilton from comment #2)
> Amit,
> 
> > error: _set_job_field: unrecognized field: gres_alloc
> > error: _set_job_field: unrecognized field: req
> 
> These error messages mean that the lua script tried to edit fields that
> don't exist in that structure.
> 
> -Scott

Hi Scott,

Is there a way I can get/list all editable fields using lua? 

Regards,
Amit
Comment 4 Scott Hilton 2021-07-06 14:37:59 MDT
Look at _set_job_req_field() and _get_job_req_field() in https://github.com/SchedMD/slurm/blob/master/src/plugins/job_submit/lua/job_submit_lua.c to see which fields you can read and write to respectively.

-Scott
Comment 5 Amit Kumar 2021-07-06 14:49:58 MDT
Thank you Scott!!