Project

General

Profile

Feature #20217

Tool to interactively setup the same environement as a job launch

Added by Marc Mengel over 1 year ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
06/25/2018
Due date:
% Done:

100%

Estimated time:
Scope:
Internal
Experiment:
-
Stakeholders:
Duration:

Description

I'd like a way to interactively set up the environment from a particular
campaign, something like "setup_poms <campaign>"? Is there a way to do
that without opening the campaign editor and launch template editor and
cutting and pasting the setup command and manually replacing the
variables?

Thanks,

Herb

History

#1 Updated by Marc Mengel over 1 year ago

In particular, you would want it to not clock the dataset split iterators...

and we would need a way to tell what part of the JobType command was the actual launch command, so we could wedge in something to dump the environment for a client utility like that...

Or maybe we could hook the jobsbub_submit wrapper we already have to do that for us...

#2 Updated by Stephen White over 1 year ago

  • Target version changed from v4_0_0 to v4_1_0

#3 Updated by Marc Mengel about 1 year ago

So I just roughed in some code to make launch_jobs return the command sequence
it was going to run, rather than running it, as launch_jobs with 'output_commands=True'

Probably need to tweak it a little, then we can add a poms_client script that
modifies the result to echo the command we would run, and run an interactive shell there, and then run it on behalf of the user.

#4 Updated by Marc Mengel about 1 year ago

Hmm... so the first round is foundering a bit -- at the moment we

ssh << EOF
...
EOF

to do our launch; the problem there is that we cannot do an interactive shell from inside there that talks to the user easily... I don't think...

#5 Updated by Marc Mengel about 1 year ago

Okay, so reworking it to be

ssh -tx user@host '
lots of commands
lots of commands
' &

and then we can redo it with a /bin/bash -i in the middle and it works.

Having to escape any single quotes in the launch command and login/setup though.

#6 Updated by Marc Mengel about 1 year ago

Okay, so now you can click a link to get the launch commands text; you can copy and paste it into a terminal window, and debug from there.

#8 Updated by Marc Mengel about 1 year ago

  • % Done changed from 0 to 100

#9 Updated by Stephen White 11 months ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF