#open stack machine
http://10.194.169.75

#Sentry
open stack machine
http://10.194.169.75:9000/accept/2/afddf62f254a471bb3d858d200a5c6dd19a96317f4444e27bad2fbea176da748/
http://10.194.169.75:9000/sentry/python/

#Python-stash
http://openstack-compute01:5601/
ssh -t -L 5001:localhost:5001 nx ssh -t -L 5001:localhost:5001 tramacer@openstack-compute01
ssh -t -L 5601:localhost:5601 nx ssh -t -L 5601:localhost:5601 tramacer@openstack-compute01
http://localhost:5601




#On Mac
-)mount isdc using fuse

  PATH is the local_cache directory from conf_env.yml
  typically PATH=/Users/orion/astro/Integral_Web_Analysis/TEST_DISPATCHER/ddosa_cache

  mkdir PATH

  sshfs tramacer@nx:/unsaved_data/neronov/data PATH

-)tunnel to intgccn01 machine
 ssh -t -L 32778:localhost:32778 nx ssh -t -L 32778:localhost:32778 tramacer@intggcn01.isdc.unige.ch

#On login machine
-) ssh -t -L 32778:localhost:32778 tramacer@intggcn01.isdc.unige.ch
-) swithc to bash
-) heainit
-) to use the test environmet: source activate cdci_test
-) to run the server
   a)run_osa_cdci_server.py -conf_file conf_env.yml
   OR
   b))run_osa_cdci_server.py -conf_file conf_env.yml -use_gunicorn

#on every machine
cp .secret-ddosa-client ~




cdciweb01
testing machine: http://cdciweb01.isdc.unige.ch
                 http://cdciweb01.isdc.unige.ch/cdci/online-data-analysis


To test URL on a local server:
http://127.0.0.1:5000/ + url string eg:
http://127.0.0.1:5000/tes

#On Mac
-)mount isdc using fuse

  PATH is the local_cache directory from conf_env.yml
  typically PATH=/Users/orion/astro/Integral_Web_Analysis/TEST_DISPATCHER/ddosa_cache

  mkdir PATH

  sshfs tramacer@nx:/unsaved_data/neronov/data PATH

-)tunnel to intgccn01 machine
 ssh -t -L 32778:localhost:32778 nx ssh -t -L 32778:localhost:32778 tramacer@intggcn01.isdc.unige.ch

#On login machine
-) ssh -t -L 32778:localhost:32778 tramacer@intggcn01.isdc.unige.ch
-) swithc to bash
-) heainit
-) to use the test environmet: source activate cdci_test
-) to run the server
   a)run_osa_cdci_server.py -conf_file conf_env.yml
   OR
   b))run_osa_cdci_server.py -conf_file conf_env.yml -use_gunicorn

#on every machine
cp .secret-ddosa-client ~


cdciweb01
testing machine: http://cdciweb01.isdc.unige.ch
                 http://cdciweb01.isdc.unige.ch/cdci/online-data-analysis


To test URL on a local server:
http://127.0.0.1:5000/ + url string eg:
http://127.0.0.1:5000/

To run tests example in run_test directory:
pytest ../tests/test_plugins.py::test_image -s -v

#ssh tunnel on testing machine
ssh -C -D 8080 tramacer@isdc-nx01.isdc.unige.ch

#XSPEC python
#login to cdciweb01
#run always on cdciweb01 machine!

bash
heainint

Xspec python install
include: python-config --cflags
lib:     python-config --ldflags

in heasoft-<ver>/Xspec/BUILD_DIR/hmakerc

PYTHON_INC="-I/home/isdc/tramacer/anaconda2/include/python2.7"
PYTHON_LIB="-lpython2.7"


cd /path/to/heasoft-<ver>/Xspec/src/XSUser/Python/xspec
hmake clean
hmake
hmake install
t?object_name=&RA=257.815417&DEC=-41.593417&T1_iso=2003-03-15T23%3A27%3A40.0&T2_iso=2003-03-16T00%3A03%3A15.0&time_group_selector=time_range_iso&radius=25&scw_list=005100410010.001%2C005100420010.001%2C005100430010.001%2C005100440010.001%2C005100450010.001&E1_keV=20.0&E2_keV=40.0&image_type=Real&product_type=isgri_image&instrument=ISGRI


To run tests example in run_test directory:
pytest ../tests/test_plugins.py::test_image -s -v

#ssh tunnel on testing machine
ssh -C -D 8080 tramacer@isdc-nx01.isdc.unige.ch

#XSPEC python
#login to cdciweb01
#run always on cdciweb01 machine!

bash
heainint

Xspec python install
include: python-config --cflags
lib:     python-config --ldflags

in heasoft-<ver>/Xspec/BUILD_DIR/hmakerc

PYTHON_INC="-I/home/isdc/tramacer/anaconda2/include/python2.7"
PYTHON_LIB="-lpython2.7"


cd /path/to/heasoft-<ver>/Xspec/src/XSUser/Python/xspec
hmake clean
hmake
hmake install
