[LU-17358] jobstats output can produce invalid yaml ( part 3 ) Created: 12/Dec/23  Updated: 29/Dec/23  Resolved: 20/Dec/23

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.16.0
Fix Version/s: Lustre 2.16.0

Type: Bug Priority: Minor
Reporter: Nathaniel Clark Assignee: Nathaniel Clark
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-15826 jobstats output can produce invalid y... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Given the following parms:

jobid_name=%j@%u@%h
jobid_var=SLURM_JOB_ID

And a job that does not have SLURM_JOB_ID set, it can product a job stats name along the lines of "@4089401@host1".  This will be printed unquoted by the current job_stats code.  This is incorrect according to the YAML spec: https://yaml.org/spec/1.2.2/#rule-c-reserved



 Comments   
Comment by Gerrit Updater [ 12/Dec/23 ]

"Nathaniel Clark <nclark@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/53424
Subject: LU-17358 lprocfs: make job_stats job_id valid yaml
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 596c559823d5824b36613db2ff48d5f54213491e

Comment by Gerrit Updater [ 20/Dec/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/53424/
Subject: LU-17358 lprocfs: make job_stats job_id valid yaml
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 264c96fcd3f1eb9983b16a223afbc7d24e72ff29

Comment by Peter Jones [ 20/Dec/23 ]

Landed for 2.16

Generated at Sat Feb 10 03:34:47 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.