progetti:cloud-areapd:user_s_guides:im_user_guide
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| progetti:cloud-areapd:user_s_guides:im_user_guide [2016/10/06 12:40] – verlato@infn.it | progetti:cloud-areapd:user_s_guides:im_user_guide [2017/07/21 08:03] (current) – verlato@infn.it | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ===== IM User Guide ===== | ||
| + | * go to http:// | ||
| + | * install in your machine the IM client (https:// | ||
| + | * configure your im_client.cfg file as below: | ||
| + | <code bash> | ||
| + | [im_client] | ||
| + | xmlrpc_url=http:// | ||
| + | auth_file=auth.dat | ||
| + | </ | ||
| + | * configure your auth.dat file as below: | ||
| + | <code bash> | ||
| + | type = InfrastructureManager; | ||
| + | id = ost; type = OpenStack; host = cloud-areapd.pd.infn.it: | ||
| + | </ | ||
| + | * run the following command to create a CentOS7 torque/maui cluster with the master node with a floating IP by using [[http:// | ||
| + | <code bash> | ||
| + | ./ | ||
| + | </ | ||
| + | * check on http:// | ||
| + | * when the infrastructure is configured, login on the master: | ||
| + | <code bash> | ||
| + | $ ./ | ||
| + | Connected with: http:// | ||
| + | Infrastructure IDs: | ||
| + | c2f70fa0-8ba9-11e6-9dbf-0242ac110002 | ||
| + | | ||
| + | $ ./ | ||
| + | Connected with: http:// | ||
| + | Warning: Permanently added ' | ||
| + | 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 | ||
| + | | ||
| + | | ||
| + | |||
| + | vnode-1-0 | ||
| + | state = free | ||
| + | np = 2 | ||
| + | ntype = cluster | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | vnode-2-0 | ||
| + | state = free | ||
| + | np = 2 | ||
| + | ntype = cluster | ||
| + | | ||
| + | | ||
| + | | ||
| + | [root@torqueserver ~]# su - dteam001 | ||
| + | [dteam001@torqueserver ~]$ ls | ||
| + | test.job | ||
| + | [dteam001@torqueserver ~]$ qsub -l nodes=2 test.job | ||
| + | 0.torqueserver.localdomain | ||
| + | [dteam001@torqueserver ~]$ ls | ||
| + | errori | ||
| + | [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 | ||
| + | </ | ||
| + | * the master will take one of the 3 available floating IPs: 90.147.77.131--> | ||
| + | * X509 host certificates are available for cld-cream-01--> | ||
| + | * an example of .radl file for creating an HTCondor cluster on CentOS7 is here: [[http:// | ||
| + | * sometimes the cluster do not configure properly. Use e.g. $ ./ | ||
| + | * after destroying a cluster, do not forget to re-allocate the floating IP in the GRID-CERTIFICATION project: login as root in cld-ctrl-01 and execute the script ./ | ||
| + | |||
| + | ===== Troubeshooting ===== | ||
| + | * to login the VM hosting IM server execute the following from cld-ctrl-01: | ||
| + | <code bash> | ||
| + | [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 | ||
| + | |||
| + | or | ||
| + | |||
| + | [root@cld-ctrl-01 MARCO]# ssh -i for_im_web_key centos@90.147.77.138 | ||
| + | [centos@im-server-and-web ~]$ | ||
| + | </ | ||
| + | |||
| + | * to restart the service: | ||
| + | <code bash> | ||
| + | [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 | ||
| + | </ | ||
| + | |||
| + | * to login in the container running the service: | ||
| + | <code bash> | ||
| + | [root@im-server-and-web ~]# docker exec -ti im /bin/bash | ||
| + | root@e78904a1fcc6:/# | ||
| + | </ | ||
| + | * in case you need to reset everything: | ||
| + | <code bash> | ||
| + | [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/ | ||
| + | </ | ||
