Skip to content

Multi-X Topology Computation Element Software Suite (also the GENI Stitching Computation Service)

License

Unknown, GPL-2.0 licenses found

Licenses found

Unknown
LICENSE
GPL-2.0
COPYING
Notifications You must be signed in to change notification settings

xi-yang/MXTCE-GENI-SCS

Repository files navigation

1. Pre-compile

- Install dependencies
sudo yum install libyaml-devel libxml2-devel xmlrpc-c-devel

- On Ubuntu
sudo apt-get install libyaml-dev  libxmlrpc-c-dev libxml2-dev libxmlrpc-c++4-dev

- For 64-bit system, you may need to
cp -rf /usr/local/lib/libyaml* /usr/lib64/
cp -rf /usr/local/lib/libxmlrpc* /usr/lib64/

- ulimit -s 65536

2. To compile
./configure
make


3. Create config file
cat > /usr/local/etc/mxtce.config.yaml

---
apiServer:
    'client': 'localhost'
    port: 2089

tedbManager:
    domains:
        'instageni.gpolab.bbn.com':
            source:  'file'
            file:    'rspec-instageni-gpolab-bbn-com-protogeni-v3.xml'
        'utah.geniracks.net':
            source:  'file'
            file:    'rspec-utah-geniracks-net-protogeni-v3.xml'
        'other.aggregate.org':
            source:  'file'
            file:    'rspec-other-aggregate-ad-file.xml'

resvManager:
    pushApiServer:
        port: 2092
        client: 'localhost'

policyManager:

computeWorker:
    type: 'multip2pComputeWorker'


4. To run
cd the_directory_with_topology_ad_files
/usr/local/mxtce-sw/src/main/mxtce -d


5. To test:
cat  pcs-request1.xml | curl -X POST -H 'Content-type: text/xml' -d @-  http://oingo.dragon.maxgigapop.net:8081/geni/xmlrpc

6. Watch log
tail -f /var/log/mxtce.log


----------------
Optional 7. Setup SSL wrapper with client authentication using stunnel

7.1. yum (or apt-get) install stunnel

7.2. put these two files into /usr/local/etc/stunnel/
ca-all.pem: the files that contains all the trusted SSL CA certs: GPO-CH, Emulab, Planetlab etc. You can update or recreate this file.
stunnel.conf: the configuration that tells stunnel to get certs from a file ca-all.pem and map HTTPS port 8443 into HTTP port 8081.
# some important lines in stunnel.conf:
	output = /tmp/stunnel.log
	CAfile = /usr/local/etc/stunnel/ca-all.pem
	[geni-scs]
	accept  = 8443
	connect = 8081

7.3. creates /usr/local/etc/stunnel/stunnel.pem which contains the SCS server CA private-key/CA cert pair.

7.4. run to start the SSL wrapper
stunnel /usr/local/etc/stunnel/stunnel.conf

About

Multi-X Topology Computation Element Software Suite (also the GENI Stitching Computation Service)

Resources

License

Unknown, GPL-2.0 licenses found

Licenses found

Unknown
LICENSE
GPL-2.0
COPYING

Stars

Watchers

Forks

Packages

No packages published