changeset 13:cce88765f200

Created new VMs for interop testing
author Sebastien Decugis <sdecugis@nict.go.jp>
date Mon, 29 Nov 2010 17:04:05 +0900
parents 6314b2c36220
children fef572dfbd43
files ca/rebuild_tree.sh conf/crcumcli.iop.testbed.aaa/ca_name conf/crcumcli.iop.testbed.aaa/circum/circumd.conf.xml conf/crcumcli.iop.testbed.aaa/modules/ca conf/crcumcli.iop.testbed.aaa/modules/circum conf/crcumsrv.iop.testbed.aaa/ca_name conf/crcumsrv.iop.testbed.aaa/circum/circumd.conf.xml conf/crcumsrv.iop.testbed.aaa/modules/ca conf/crcumsrv.iop.testbed.aaa/modules/circum conf/fdrelay.iop.testbed.aaa/ca_name conf/fdrelay.iop.testbed.aaa/freeDiameter/CMakeFlags conf/fdrelay.iop.testbed.aaa/freeDiameter/freeDiameter.conf conf/fdrelay.iop.testbed.aaa/modules/ca conf/fdrelay.iop.testbed.aaa/modules/freeDiameter conf/iopmgr.testbed.aaa/dns/dnsmasq.conf conf/iopmgr.testbed.aaa/dns/hosts conf/iopmgr.testbed.aaa/modules/ipforward conf/mgr.testbeddomain/quagga/zebra.conf mrb/iop_testbed.sh scripts/circum-install.sh scripts/circum-run.sh scripts/debian-install.sh scripts/ipforward-install.sh
diffstat 16 files changed, 120 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- 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
+
--- /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
--- /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 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!DOCTYPE circumd SYSTEM "circumd.conf.xml.dtd">
+<circumd>
+
+	<socket type="ipv6" proto="tcp" port="3868" mandatory="0" tls="false" />
+	<socket type="ipv4" proto="tcp" port="3868" mandatory="0" tls="false" />
+
+	<!-- TLS port yet to be assigned
+	     (also change net.c once assigned)
+	-->
+	<socket type="ipv6" proto="tcp" port="49152" mandatory="0" tls="true" />
+	<socket type="ipv4" proto="tcp" port="49152" mandatory="0" tls="true" />
+
+	<socket type="ipv6" proto="sctp" port="3868" mandatory="0" tls="false" />
+	<socket type="ipv4" proto="sctp" port="3868" mandatory="0" tls="false" />
+
+</circumd>
--- /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
--- /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 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!DOCTYPE circumd SYSTEM "circumd.conf.xml.dtd">
+<circumd>
+
+	<socket type="ipv6" proto="tcp" port="3868" mandatory="0" tls="false" />
+	<socket type="ipv4" proto="tcp" port="3868" mandatory="0" tls="false" />
+
+	<!-- TLS port yet to be assigned
+	     (also change net.c once assigned)
+	-->
+	<socket type="ipv6" proto="tcp" port="49152" mandatory="0" tls="true" />
+	<socket type="ipv4" proto="tcp" port="49152" mandatory="0" tls="true" />
+
+	<socket type="ipv6" proto="sctp" port="3868" mandatory="0" tls="false" />
+	<socket type="ipv4" proto="sctp" port="3868" mandatory="0" tls="false" />
+
+</circumd>
--- /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
--- /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
--- /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; };
--- 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
 
-
--- 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
+
--- 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
--- 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
 	;;
   *)
--- /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
+
+
--- /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
--- /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
+
--- /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
"Welcome to our mercurial repository"