Skip to content

Commit ea71351

Browse files
authored
add compy (login and compute) and chrlogin to globus endpoints (#275)
1 parent f6e029e commit ea71351

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

zstash/globus.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import absolute_import, print_function
22

33
import configparser
4+
import os
45
import os.path
56
import re
67
import socket
@@ -22,9 +23,11 @@
2223
regex_endpoint_map = {
2324
r"theta.*\.alcf\.anl\.gov": "08925f04-569f-11e7-bef8-22000b9a448b",
2425
r"blueslogin.*\.lcrc\.anl\.gov": "61f9954c-a4fa-11ea-8f07-0a21f750d19b",
26+
r"chrlogin.*\.lcrc\.anl\.gov": "61f9954c-a4fa-11ea-8f07-0a21f750d19b",
2527
r"b\d+\.lcrc\.anl\.gov": "61f9954c-a4fa-11ea-8f07-0a21f750d19b",
2628
r"chr.*\.lcrc\.anl\.gov": "61f9954c-a4fa-11ea-8f07-0a21f750d19b",
2729
r"cori.*\.nersc\.gov": "9d6d99eb-6d04-11e5-ba46-22000b92c6ec",
30+
r"compy.*\.pnl\.gov": "68fbd2fa-83d7-11e9-8e63-029d279f7e24",
2831
r"perlmutter.*\.nersc\.gov": "6bdc7956-fc0f-4ad2-989c-7aa5ee643a79", # If this doesn't work, use cori
2932
}
3033

@@ -66,6 +69,10 @@ def globus_activate(hpss: str):
6669
sys.exit(1)
6770
if not local_endpoint:
6871
fqdn = socket.getfqdn()
72+
if re.fullmatch(r"n.*\.local", fqdn) and os.getenv("HOSTNAME", "NA").startswith(
73+
"compy"
74+
):
75+
fqdn = "compy.pnl.gov"
6976
for pattern in regex_endpoint_map.keys():
7077
if re.fullmatch(pattern, fqdn):
7178
local_endpoint = regex_endpoint_map.get(pattern)

0 commit comments

Comments
 (0)