[OOD-users] Is DEFAULT_SSHHOST being honored by shell app?

Nicklas, Jeremy jnicklas at osc.edu
Wed Oct 4 12:37:57 EDT 2017


Hi Jason,

The DEFAULT_SSHHOST will only be used if a host is not specified in the Shell App's URL. For example if I go to the following URL:

https://ondemand.bridges.psc.edu/pun/sys/shell/ssh/

I do not specify a SSH host at the end of the URL, so the Shell App will fallback to the DEFAULT_SSHHOST.

Also, if you do make any changes to the file:

/var/www/ood/apps/sys/shell/.env

you must restart the Shell App or your per-user NGINX (PUN) instance. That is because *if* the Shell App is already running it will have the previous environment variables loaded.

The most non-destructive way to restart the Shell App is to run:

$ sudo touch /var/www/ood/apps/sys/shell/tmp/restart.txt

then refresh the Shell App in your browser.

Let me know if I am misunderstanding the problem. And feel free to follow up with any other questions.

Jeremy Nicklas
Web and Interface App Engineer
Ohio Supercomputer Center (OSC)
A member of the Ohio Technology Consortium
1224 Kinnear Road, Columbus, Ohio 43212
Office: (614) 292-6739 • Mobile: (614) 316-6428 • Fax: (614) 292-7168
jnicklas at osc.edu

Learn more about OSC at https://osc.edu

________________________________________
From: OOD-users [ood-users-bounces at lists.osc.edu] on behalf of Jason F Sommerfield [jasons at psc.edu]
Sent: Wednesday, October 04, 2017 12:21 PM
To: ood-users at lists.osc.edu
Subject: [OOD-users] Is DEFAULT_SSHHOST being honored by shell app?

While we had earlier versions of the OoD shell app configured to SSH to
a different host than that running OoD, that has not been working in for
me via versions 1.0.0, 1.0.1 or 1.1.0 of the apps-installer.  Below[1]
are the--likely redundant--attempts to do so following instructions at
[1] and prior recommendations.  Are others exercising this feature that
that can confirm it "works" to differentiate between a config issue and
something we should explore in the code?

Thanks,

-jason



[0]

[root at XXX sys]# cat /var/www/ood/apps/sys/shell/.env
DEFAULT_SSHHOST=bridges.psc.edu

[root at XXX sys]# cat /etc/ood/config/clusters.d/bridges.yml
v2:
 metadata:
   title: "Bridges"
 login:
   host: "bridges.psc.edu"
 job:
   adapter: "slurm"
#   cluster: "Bridges"
   bin:  "/opt/packages/slurm/default/bin"


[1] https://github.com/OSC/ood-apps-installer


--
Jason Sommerfield | jasons at psc.edu | 1-412-268-9606
Coordinator, Systems & Operations
Pittsburgh Supercomputing Center, 300 S. Craig Street, Pittsburgh PA, 15213
_______________________________________________
OOD-users mailing list
OOD-users at lists.osc.edu
https://lists.osu.edu/mailman/listinfo/ood-users


More information about the OOD-users mailing list