IM User Guide

[im_client]
xmlrpc_url=http://90.147.77.138:8899
auth_file=auth.dat
type = InfrastructureManager; username = <IMusername>; password = <IMpassword>
id = ost; type = OpenStack; host = cloud-areapd.pd.infn.it:5000; username = <yourCAPusername>; password = <yourCAPpassword>; tenant = GRID-CERTIFICATION; service_region = regionOne; auth_url = https://cloud-areapd.pd.infn.it:5000;
./im_client.py create os-c7-torque.radl
$ ./im_client.py list
Connected with: http://90.147.77.138:8899
Infrastructure IDs: 
  c2f70fa0-8ba9-11e6-9dbf-0242ac110002
 
$ ./im_client.py -a auth-os.dat sshvm c2f70fa0-8ba9-11e6-9dbf-0242ac110002 0
Connected with: http://90.147.77.138:8899
Warning: Permanently added '90.147.77.131' (RSA) to the list of known hosts.
Last login: Thu Oct  6 09:53:03 2016 from 90.147.77.138
[centos@torqueserver ~]$ 
[centos@torqueserver ~]$ sudo su -
[root@torqueserver ~]$ pbsnodes
vnode-0-0
     state = down
     np = 2
     ntype = cluster
     mom_service_port = 15002
     mom_manager_port = 15003
 
vnode-1-0
     state = free
     np = 2
     ntype = cluster
     status = rectime=1475749622,varattr=,jobs=,state=free,netload=? 0,gres=,loadave=0.00,ncpus=0,physmem=4193904kb,availmem=3709676kb,totmem=4193904kb,idletime=2323,nusers=0,nsessions=0,uname=Linux vnode-1.localdomain 3.10.0-123.9.3.el7.x86_64 #1 SMP Thu Nov 6 15:06:03 UTC 2014 x86_64,opsys=linux
     mom_service_port = 15002
     mom_manager_port = 15003
 
vnode-2-0
     state = free
     np = 2
     ntype = cluster
     status = rectime=1475749628,varattr=,jobs=,state=free,netload=? 0,gres=,loadave=0.00,ncpus=0,physmem=4193904kb,availmem=3714272kb,totmem=4193904kb,idletime=2319,nusers=0,nsessions=0,uname=Linux vnode-2.localdomain 3.10.0-123.9.3.el7.x86_64 #1 SMP Thu Nov 6 15:06:03 UTC 2014 x86_64,opsys=linux
     mom_service_port = 15002
     mom_manager_port = 15003
[root@torqueserver ~]# su - dteam001
[dteam001@torqueserver ~]$ ls
test.job
[dteam001@torqueserver ~]$ qsub -l nodes=2 test.job
0.torqueserver.localdomain
[dteam001@torqueserver ~]$ ls
errori  risultato  test.job
[dteam001@torqueserver ~]$ cat risultato 
Thu Oct  6 10:25:55 UTC 2016
Ci sono una serie di cose interessanti che ti interessera sapere
Questo job stato identificato come 0.torqueserver.localdomain e si chiama ExampleJob
e stato inserito inizialmente nella coda batch
ed e stato eseguito sulla coda batch
E stato sottoposto dalla macchina: torqueserver.localdomain
E stato eseguito sulla macchina: vnode-2.localdomain
Thu Oct  6 10:26:00 UTC 2016

Troubeshooting

[root@cld-ctrl-01 ~]# cd MARCO
[root@cld-ctrl-01 MARCO]# ip netns exec qdhcp-b6e3d4de-2959-4c89-8558-5845f2b316fd ssh -i for_im_web_key  centos@10.63.34.5
 
or 
 
[root@cld-ctrl-01 MARCO]# ssh  -i for_im_web_key centos@90.147.77.138
[centos@im-server-and-web ~]$
[centos@im-server-and-web ~]$ sudo su -
[root@im-server-and-web ~]# docker stop im
[root@im-server-and-web ~]# docker stop im-web
[root@im-server-and-web ~]# docker start im
[root@im-server-and-web ~]# docker start im-web
[root@im-server-and-web ~]# docker exec -ti im /bin/bash
root@e78904a1fcc6:/# 
[root@im-server-and-web ~]# docker stop im; docker rm im
[root@im-server-and-web ~]# docker stop im-web; docker rm im-web
[root@im-server-and-web ~]# docker run -d -p 8899:8899 --name im grycap/im
[root@im-server-and-web ~]# docker run -d -p 80:80 --name im-web --link im:im grycap/im-web