ncsa / xcat-tools

Useful tools for xCAT
BSD 3-Clause "New" or "Revised" License
8 stars 0 forks source link

update params for puppet_run postscript to force xCAT to consider each invocation to be unique even with the same number of runs #55

Closed jakerundall closed 6 months ago

jakerundall commented 6 months ago

If we call custom/puppet_run -n X twice (exact same "x") then xCAT only runs the first.

If we were to add a param for a name/ID — -i first vs -i second, or -i 1 vs -i 2 — it could completely ignore the value — then xCAT would consider the invocation to be unique.

Or...if we allowed invalid single params instead of croaking on them, those could be ignored. But that doesn't seem like a great idea.

(I guess a local workaround is to simply copy the postscript and rename it for each instantiation.)

jakerundall commented 6 months ago

On MG I ended up just making multiple symlinks and referencing those, which are then interpreted as being unique invocations: custom/puppet_run_1 -n X,custom/puppet_run_2 -n X,etc.

It's kind of a hack, but the usage is basically the same effort as passing unique parameters to make unique invocations, so I don't see it being worth implementing changes to the script. I'll update our xCAT server docs with a note about this.