[OOD-users] Is DEFAULT_SSHHOST being honored by shell app?
Franz, Eric
efranz at osc.edu
Wed Oct 4 13:31:37 EDT 2017
We resolved this problem via direct email conversations outside of the mailing list.
The problem was a line in the system-wide ssh_config file specifying the `Hostname` to be the node OnDemand was running on. This had the effect of causing “ssh bridges.psc.edu” from the OnDemand node to result in connecting to the OnDemand node, instead of the desired login nodes.
This behavior made it appear like the Shell app was ssh-ing to “localhost” instead of “bridges.psc.edu”, which was specified in the Shell app’s .env file, which was the source of the confusion.
---
Eric Franz, Senior Web & Interface App Engineer
Ohio Supercomputer Center
An Ohio Technology Consortium (OH-TECH) Member
1224 Kinnear Road
Columbus, OH 43212
email: efranz at osc.edu
On 10/4/17, 12:43 PM, "OOD-users on behalf of Nicklas, Jeremy" <ood-users-bounces+efranz=osc.edu at lists.osc.edu on behalf of jnicklas at osc.edu> wrote:
By the way, I should mention that in a nutshell the Shell App just calls:
$ ssh <hostname>
from the OnDemand node.
So if you SSH into the OnDemand node and run:
$ ssh bridges.psc.edu
does it work as expected? Otherwise that could be a bug in the Shell App.
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: Nicklas, Jeremy
Sent: Wednesday, October 04, 2017 12:37 PM
To: User support maiing list for Open OnDemand
Subject: RE: [OOD-users] Is DEFAULT_SSHHOST being honored by shell app?
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
_______________________________________________
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