[LU-16555] print more YAML compatible special chars for jobid Created: 15/Feb/23 Updated: 10/Mar/23 Resolved: 08/Mar/23 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.16.0 |
| Type: | Improvement | Priority: | Minor |
| Reporter: | Feng Lei | Assignee: | Feng Lei |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||
| Description |
|
print more YAML compatible special chars for jobid. They are: ':', '/'. |
| Comments |
| Comment by Gerrit Updater [ 15/Feb/23 ] |
|
"Feng Lei <flei@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/49998 |
| Comment by Gerrit Updater [ 23/Feb/23 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/49998/ |
| Comment by Peter Jones [ 23/Feb/23 ] |
|
Landed for 2.16 |
| Comment by Andreas Dilger [ 27/Feb/23 ] |
|
I just saw a system with JobIDs that look like "0:0:" or "12345:23456:", which is apparently "%u:%g:%j", where "%j" is unset on login nodes. This is causing YAML parsing by collecd to fail in the case where ":" is at the end of the JobID string. Pasting these job_stats into http://yaml-online-parser.appspot.com/ confirms that quoting the "0:0:" string fixes the parsing error. |
| Comment by Feng Lei [ 28/Feb/23 ] |
|
So we need 3 types of chars:
Make sense? |
| Comment by Andreas Dilger [ 28/Feb/23 ] |
|
Yes, if ":" is at the end then the JobID needs to be quoted or there is a YAML parsing error. When I reviewed the original 49998 patch I thought this couldn't happen easily, but with the empty "jobid_var" variable and a ":" separator this is easy to hit (or even if users just add a ":" at the end of jobid_name for whatever reason). |
| Comment by Gerrit Updater [ 28/Feb/23 ] |
|
"Feng Lei <flei@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/50150 |
| Comment by Gerrit Updater [ 08/Mar/23 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/50150/ |
| Comment by Peter Jones [ 08/Mar/23 ] |
|
Landed for 2.16 |