# HG changeset patch # User Sebastien Decugis # Date 1291017845 -32400 # Node ID cce88765f2001a9c94b3d10a9dd2b9f53cdef365 # Parent 6314b2c3622037d96fb515fdef3eea13bb69c8ed Created new VMs for interop testing diff -r 6314b2c36220 -r cce88765f200 ca/rebuild_tree.sh --- a/ca/rebuild_tree.sh Fri Nov 26 17:55:02 2010 +0900 +++ b/ca/rebuild_tree.sh Mon Nov 29 17:04:05 2010 +0900 @@ -42,3 +42,9 @@ make newcert ca=eap.testbed.aaa name=backend.eap.testbed.aaa make newcert ca=eap.testbed.aaa name=supauth2.eap.testbed.aaa +# Interop testbed +make newca ca=mgr.testbed.aaa name=iop.testbed.aaa +make newcert ca=iop.testbed.aaa name=fdrelay.iop.testbed.aaa +make newcert ca=iop.testbed.aaa name=crcumcli.iop.testbed.aaa +make newcert ca=iop.testbed.aaa name=crcumsrv.iop.testbed.aaa + diff -r 6314b2c36220 -r cce88765f200 conf/crcumcli.iop.testbed.aaa/ca_name --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/conf/crcumcli.iop.testbed.aaa/ca_name Mon Nov 29 17:04:05 2010 +0900 @@ -0,0 +1,1 @@ +iop.testbed.aaa diff -r 6314b2c36220 -r cce88765f200 conf/crcumcli.iop.testbed.aaa/circum/circumd.conf.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/conf/crcumcli.iop.testbed.aaa/circum/circumd.conf.xml Mon Nov 29 17:04:05 2010 +0900 @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + diff -r 6314b2c36220 -r cce88765f200 conf/crcumcli.iop.testbed.aaa/modules/ca diff -r 6314b2c36220 -r cce88765f200 conf/crcumcli.iop.testbed.aaa/modules/circum diff -r 6314b2c36220 -r cce88765f200 conf/crcumsrv.iop.testbed.aaa/ca_name --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/conf/crcumsrv.iop.testbed.aaa/ca_name Mon Nov 29 17:04:05 2010 +0900 @@ -0,0 +1,1 @@ +iop.testbed.aaa diff -r 6314b2c36220 -r cce88765f200 conf/crcumsrv.iop.testbed.aaa/circum/circumd.conf.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/conf/crcumsrv.iop.testbed.aaa/circum/circumd.conf.xml Mon Nov 29 17:04:05 2010 +0900 @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + diff -r 6314b2c36220 -r cce88765f200 conf/crcumsrv.iop.testbed.aaa/modules/ca diff -r 6314b2c36220 -r cce88765f200 conf/crcumsrv.iop.testbed.aaa/modules/circum diff -r 6314b2c36220 -r cce88765f200 conf/fdrelay.iop.testbed.aaa/ca_name --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/conf/fdrelay.iop.testbed.aaa/ca_name Mon Nov 29 17:04:05 2010 +0900 @@ -0,0 +1,1 @@ +iop.testbed.aaa diff -r 6314b2c36220 -r cce88765f200 conf/fdrelay.iop.testbed.aaa/freeDiameter/CMakeFlags --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/conf/fdrelay.iop.testbed.aaa/freeDiameter/CMakeFlags Mon Nov 29 17:04:05 2010 +0900 @@ -0,0 +1,7 @@ +-DBUILD_DBG_MONITOR:BOOL=ON \ +-DBUILD_DBG_RT:BOOL=ON \ +-DBUILD_DICT_EAP:BOOL=OFF \ +-DBUILD_DICT_NASREQ:BOOL=OFF \ +-DBUILD_TESTING:BOOL=OFF \ +-DCMAKE_BUILD_TYPE:STRING=Debug \ +-DDEFAULT_CONF_PATH:PATH=/root/conf/freeDiameter diff -r 6314b2c36220 -r cce88765f200 conf/fdrelay.iop.testbed.aaa/freeDiameter/freeDiameter.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/conf/fdrelay.iop.testbed.aaa/freeDiameter/freeDiameter.conf Mon Nov 29 17:04:05 2010 +0900 @@ -0,0 +1,14 @@ +# This is a sample configuration file for freeDiameter daemon. + +SCTP_streams = 3; + +TLS_Cred = "/root/ca_data/cert.pem" , "/root/ca_data/privkey.pem"; +TLS_CA = "/root/ca_data/ca.pem"; +# TLS_CRL = "/root/ca_data/crl.pem"; + +# LoadExtension = "/root/freeDiameter/extensions/dbg_monitor.fdx"; +#LoadExtension = "/root/freeDiameter/extensions/test_app.fdx" +# : "/root/conf/freeDiameter/test_app.conf"; + +# ConnectPeer = "serv.simple.testbed.aaa" ; +ConnectPeer = "crcumsrv.iop.testbed.aaa" { No_TLS; }; diff -r 6314b2c36220 -r cce88765f200 conf/fdrelay.iop.testbed.aaa/modules/ca diff -r 6314b2c36220 -r cce88765f200 conf/fdrelay.iop.testbed.aaa/modules/freeDiameter diff -r 6314b2c36220 -r cce88765f200 conf/iopmgr.testbed.aaa/dns/dnsmasq.conf --- a/conf/iopmgr.testbed.aaa/dns/dnsmasq.conf Fri Nov 26 17:55:02 2010 +0900 +++ b/conf/iopmgr.testbed.aaa/dns/dnsmasq.conf Mon Nov 29 17:04:05 2010 +0900 @@ -7,6 +7,7 @@ domain=iop.testbed.aaa dhcp-range=192.168.110.50,192.168.110.150,255.255.255.0,12h -#dhcp-host=08:00:27:2D:8C:79,cli +dhcp-host=08:00:27:3F:B9:DE,fdrelay +dhcp-host=08:00:27:CC:9D:67,crcumcli +dhcp-host=08:00:27:BA:15:92,crcumsrv - diff -r 6314b2c36220 -r cce88765f200 conf/iopmgr.testbed.aaa/dns/hosts --- a/conf/iopmgr.testbed.aaa/dns/hosts Fri Nov 26 17:55:02 2010 +0900 +++ b/conf/iopmgr.testbed.aaa/dns/hosts Mon Nov 29 17:04:05 2010 +0900 @@ -9,4 +9,7 @@ ff02::2 ip6-allrouters ff02::3 ip6-allhosts -# 192.168.110.10 fdrelay +192.168.110.10 fdrelay +192.168.110.20 crcumcli +192.168.110.30 crcumsrv + diff -r 6314b2c36220 -r cce88765f200 conf/iopmgr.testbed.aaa/modules/ipforward diff -r 6314b2c36220 -r cce88765f200 conf/mgr.testbeddomain/quagga/zebra.conf --- a/conf/mgr.testbeddomain/quagga/zebra.conf Fri Nov 26 17:55:02 2010 +0900 +++ b/conf/mgr.testbeddomain/quagga/zebra.conf Mon Nov 29 17:04:05 2010 +0900 @@ -10,6 +10,7 @@ ip route 192.168.104.0/24 192.168.101.3 ip route 192.168.115.0/24 192.168.101.3 ip route 192.168.105.0/24 192.168.101.5 +ip route 192.168.110.0/24 192.168.101.10 ! dsmip: de 192 a 207 ip route 192.168.192.0/20 192.168.101.6 diff -r 6314b2c36220 -r cce88765f200 mrb/iop_testbed.sh --- a/mrb/iop_testbed.sh Fri Nov 26 17:55:02 2010 +0900 +++ b/mrb/iop_testbed.sh Mon Nov 29 17:04:05 2010 +0900 @@ -17,8 +17,8 @@ } # Maintenant on peut demarrer les autres VM en paralelle - #./vm_start.sh "eap-supauth.eap.testbed.aaa" & - #sleep 3 + ./vm_start.sh "iop-fdrelay.iop.testbed.aaa" & + sleep 3 #./vm_start.sh "eap-supauth2.eap.testbed.aaa" & #sleep 3 @@ -29,16 +29,14 @@ # On arrete toutes ces machines en sauvant leur etat ./vm_pause.sh "__mgr.testbed.aaa" & ./vm_pause.sh "iop-iopmgr.testbed.aaa" & - #./vm_pause.sh "eap-supauth.eap.testbed.aaa" & - #./vm_pause.sh "eap-opendiam.eap.testbed.aaa" & + ./vm_pause.sh "iop-fdrelay.iop.testbed.aaa" & wait ;; stop) # On arrete toutes ces machines en envoyant un shutdown ./vm_stop.sh "__mgr.testbed.aaa" & ./vm_stop.sh "iop-iopmgr.testbed.aaa" & - #./vm_stop.sh "eap-supauth.eap.testbed.aaa" & - #./vm_stop.sh "eap-opendiam.eap.testbed.aaa" & + ./vm_stop.sh "iop-fdrelay.iop.testbed.aaa" & wait ;; *) diff -r 6314b2c36220 -r cce88765f200 scripts/circum-install.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/circum-install.sh Mon Nov 29 17:04:05 2010 +0900 @@ -0,0 +1,22 @@ +#!/bin/bash -x + +# Install dependencies +aptitude install -y autoconf automake libtool pkg-config build-essential \ + git-core libhx-dev libpcre3-dev libxml2-dev libssl-dev \ + apache2-dev libpam-dev + +# Install the link to the configuration +/home/aaa/installvm.sh conflink + +# Build circum +rm -rf /root/circum +rm -rf /root/circum-rt +cd /root +git clone file:///home/aaa/src/circum +mkdir circum-rt +cd circum +./autogen.sh +./configure --prefix=/root/circum-rt +make && make install + + diff -r 6314b2c36220 -r cce88765f200 scripts/circum-run.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/circum-run.sh Mon Nov 29 17:04:05 2010 +0900 @@ -0,0 +1,10 @@ +#!/bin/bash -x + +DATE=`date +%Y%m%d-%H%M%S`; +HOST=`hostname --fqdn`; + +ulimit -c 1000000 +rm -f core* + +echo crcum-$HOST-$DATE.log > /home/aaa/logs/LATEST-$HOST-crcum.log +/root/circum-rt/sbin/circumd -U root -D FF -c /root/conf/circum/circumd.conf.xml 2>&1 | tee -i /home/aaa/logs/crcum-$HOST-$DATE.log diff -r 6314b2c36220 -r cce88765f200 scripts/debian-install.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/debian-install.sh Mon Nov 29 17:04:05 2010 +0900 @@ -0,0 +1,6 @@ +#!/bin/bash + +# Install this component on Debian VMs +echo ipv6 >> /etc/modules +echo vboxvfs >> /etc/modules + diff -r 6314b2c36220 -r cce88765f200 scripts/ipforward-install.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/ipforward-install.sh Mon Nov 29 17:04:05 2010 +0900 @@ -0,0 +1,6 @@ +#!/bin/bash -x + +echo "net.ipv4.ip_forward=1" > /etc/sysctl.d/ipforward.conf +echo "net.ipv6.conf.all.forwarding=1" >> /etc/sysctl.d/ipforward.conf +echo 1 > /proc/sys/net/ipv4/ip_forward +echo 1 > /proc/sys/net/ipv6/conf/all/forwarding