Working with Oasis

logging into the grid submit host

ssh scosg16

check for a proxy, create one, the wrong one first, destroy it, then the right one

scosg16:marki:marki> voms-proxy-info

Couldn't find a valid proxy.

scosg16:marki:marki> voms-proxy-init
Enter GRID pass phrase for this identity:
Your identity: /DC=org/DC=opensciencegrid/O=Open Science Grid/OU=People/CN=Mark Ito 1104
key values mismatch
Function: X509_check_private_key
Creating proxy ............................................................................................................................ Done

Your proxy is valid until Sat Sep 16 02:41:55 2017
scosg16:marki:marki> voms-proxy-info
subject   : /DC=org/DC=opensciencegrid/O=Open Science Grid/OU=People/CN=Mark Ito 1104/CN=2073856599
issuer    : /DC=org/DC=opensciencegrid/O=Open Science Grid/OU=People/CN=Mark Ito 1104
identity  : /DC=org/DC=opensciencegrid/O=Open Science Grid/OU=People/CN=Mark Ito 1104
type      : RFC compliant proxy
strength  : 1024 bits
path      : /tmp/x509up_u2191
timeleft  : 11:59:50
scosg16:marki:marki> voms-proxy-destroy
scosg16:marki:marki> voms-proxy-info

Couldn't find a valid proxy.

scosg16:marki:marki> voms-proxy-init -voms Gluex
Enter GRID pass phrase for this identity:
Your identity: /DC=org/DC=opensciencegrid/O=Open Science Grid/OU=People/CN=Mark Ito 1104
key values mismatch
Function: X509_check_private_key
Creating temporary proxy ....................... Done
Contacting  gryphn.phys.uconn.edu:15014 [/DC=org/DC=opensciencegrid/O=Open Science Grid/OU=Services/CN=voms/gryphn.phys.uconn.edu] "Gluex" Done
Creating proxy .................... Done

Your proxy is valid until Sat Sep 16 02:47:14 2017
scosg16:marki:marki> voms-proxy-info
subject   : /DC=org/DC=opensciencegrid/O=Open Science Grid/OU=People/CN=Mark Ito 1104/CN=4260201169
issuer    : /DC=org/DC=opensciencegrid/O=Open Science Grid/OU=People/CN=Mark Ito 1104
identity  : /DC=org/DC=opensciencegrid/O=Open Science Grid/OU=People/CN=Mark Ito 1104
type      : RFC compliant proxy
strength  : 1024 bits
path      : /tmp/x509up_u2191
timeleft  : 11:59:52

documentation accessing oasis is here: https://twiki.grid.iu.edu/bin/view/Documentation/Release3/UpdateOasis
gsissh into oasis server

scosg16:marki:marki> gsissh -o GSSAPIDelegateCredentials=yes oasis-login.opensciencegrid.org
Last login: Thu Sep 14 22:26:33 2017 from gluey.phys.uconn.edu
[0] 18:48:42 UTC [ouser.gluex@oasis-login:~]$ pwd
/home/login/ouser.gluex
  • To update the Oasis files:
    go to gluex staging area: /stage/oasis/gluex
    make the mods to the files
    Issue the command: osg-oasis-update
[ouser.gluex@oasis-login gluex]$ osg-oasis-update
Submitting job(s).
1 job(s) submitted to cluster 2536.
You can use condor_q to check on the status of your update
[ouser.gluex@oasis-login gluex]$ condor_q

-- Schedd: oasis-login.grid.iu.edu : <129.79.53.147:24122?...  ID      OWNER            SUBMITTED     RUN_TIME ST PRI SIZE CMD                2536.0   ouser.gluex     9/15 18:59   0+00:00:11 R  0   0.0  oasis-batch-worker 1 jobs; 0 completed, 0 removed, 0 idle, 1 running, 0 held, 0 suspended 

remote commands can be run:

 scosg16:marki:marki> gsissh -o GSSAPIDelegateCredentials=yes oasis-login.opensciencegrid.org hostname
oasis-login.grid.iu.edu

scp works

scosg16:marki:git_test> gsiscp -o GSSAPIDelegateCredentials=yes a.txt oasis-login.opensciencegrid.org:/stage/oasis/gluex/test/
a.txt                                                                                                      100%  127     0.1KB/s   0.1KB/s   00:00

rsync works

scosg16:marki:marki> rsync -ruvt --delete -e 'gsissh -o GSSAPIDelegateCredentials=yes' /home/marki/git_test/ oasis-login.opensciencegrid.org:/stage/oasis/gluex/test/git_test/
sending incremental file list
created directory /stage/oasis/gluex/test/git_test
./
README.md
a.tt
a.txt
aa.txt
b.txt
c.txt
d.txt
e.txt
j.txt
k.txt
.git/
.git/COMMIT_EDITMSG
.git/COMMIT_EDITMSG~
.git/FETCH_HEAD
...
.git/refs/remotes/origin/idea2
.git/refs/remotes/origin/master
.git/refs/tags/
dir/
dir/l.txt
dir/m.txt

sent 43791 bytes  received 1222 bytes  12860.86 bytes/sec
total size is 39107  speedup is 0.87

and after modifying j.txt

scosg16:marki:marki> rsync -ruvt --delete -e 'gsissh -o GSSAPIDelegateCredentials=yes' /home/marki/git_test/ oasis-login.opensciencegrid.org:/stage/oasis/gluex/test/git_test/
sending incremental file list
./
j.txt

sent 2215 bytes  received 71 bytes  304.80 bytes/sec
total size is 39128  speedup is 17.12
Advertisements

fix to startlxde to run under ssh-agent

Here is the patch:
====================cut here==================
— startlxde.save.0 2013-11-26 15:29:50.000000000 -0500
+++ startlxde.save.1 2014-11-08 21:31:58.983080212 -0500
@@ -37,6 +37,12 @@
eval “$(dbus-launch –sh-syntax –exit-with-session)”
fi

+# Launch ssh-agent if used by user
+if [ -x /usr/bin/ssh-agent -a -d “$HOME/.ssh” ]
+then
+ eval `ssh-agent -s`
+fi
+
export XDG_MENU_PREFIX=”lxde-”

# Start the LXDE session
===================cut here=================