nepi.git
13 years agoAdd NEPI_STRICT_AUTH_MODE, when not enabled, it takes user-configured host SSH keys.
Claudio-Daniel Freire [Mon, 2 May 2011 09:29:57 +0000 (11:29 +0200)]
Add NEPI_STRICT_AUTH_MODE, when not enabled, it takes user-configured host SSH keys.
When enabled, it will only use PLC-supplied host keys (more secure)

13 years agoAdapt to new signature of TestbedController.set/get
Claudio-Daniel Freire [Mon, 2 May 2011 08:54:39 +0000 (10:54 +0200)]
Adapt to new signature of TestbedController.set/get

13 years agovlc wireless hybrid experiment example added
Alina Quereilhac [Mon, 2 May 2011 08:17:07 +0000 (10:17 +0200)]
vlc wireless hybrid experiment example added

13 years agomock cross_connect test added to test/core/integration.py
Alina Quereilhac [Sun, 1 May 2011 20:36:44 +0000 (22:36 +0200)]
mock cross_connect test added to test/core/integration.py

13 years agotestbed.status now accept guid = None to return the testbed status
Alina Quereilhac [Sun, 1 May 2011 18:14:43 +0000 (20:14 +0200)]
testbed.status now accept guid = None to return the testbed status

13 years agosmall refactoring in testbed_impl.
Alina Quereilhac [Sun, 1 May 2011 18:08:15 +0000 (20:08 +0200)]
small refactoring in testbed_impl.

13 years agotestbed_impl.get improved
Alina Quereilhac [Sun, 1 May 2011 17:56:13 +0000 (19:56 +0200)]
testbed_impl.get improved

13 years agoreplaced box_get_address for get_address and box_get_route for get_route in testbed_impl
Alina Quereilhac [Sun, 1 May 2011 17:30:30 +0000 (19:30 +0200)]
replaced box_get_address for get_address and box_get_route for get_route in testbed_impl

13 years agobox_get removed and replaced for get in testbed_impl
Alina Quereilhac [Sun, 1 May 2011 17:24:02 +0000 (19:24 +0200)]
box_get removed and replaced for get in testbed_impl

13 years agoadded TestbedController status flag
Alina Quereilhac [Sun, 1 May 2011 10:31:31 +0000 (12:31 +0200)]
added TestbedController status flag

13 years agoadded is_valid_value as a function for attributes.Attribute
Alina Quereilhac [Sun, 1 May 2011 10:01:10 +0000 (12:01 +0200)]
added is_valid_value as a function for attributes.Attribute

13 years agoTicket #29: Implement dependencies to support testbed-in-PL
Claudio-Daniel Freire [Fri, 29 Apr 2011 15:24:33 +0000 (17:24 +0200)]
Ticket #29: Implement dependencies to support testbed-in-PL
 - Generic dependencies
 - (python)path modifiers
 - NEPI-in-NEPI dependency class

13 years agoAsync setup of TUNs and APPs, for much quicker deployment.
Claudio-Daniel Freire [Fri, 29 Apr 2011 11:06:47 +0000 (13:06 +0200)]
Async setup of TUNs and APPs, for much quicker deployment.
Made dependency setup also more responsive, with an exponential delay that responds better to no-op (which are common since nodes don't get packages uninstalled at cleanup time).

13 years agoserver_scp can copy multiple files at once.
Claudio-Daniel Freire [Fri, 29 Apr 2011 08:26:53 +0000 (10:26 +0200)]
server_scp can copy multiple files at once.
This shaves a good 10% runtime from tests, and in some situations would mean a huge improvement (say, with long source lists)

13 years agoFix parallel execution bug that only ran connect/preconfigure stuff on the last testbed:
Claudio-Daniel Freire [Fri, 29 Apr 2011 08:00:48 +0000 (10:00 +0200)]
Fix parallel execution bug that only ran connect/preconfigure stuff on the last testbed:
lambda : testbed.do_something   only does it for the last value of the variable "testbed"

Testbed is a free variable, so it takes the value of the variable then the lambda is called,
which is usually the last value it took in the loop.

The correct way would be:
lambda testbed=testbed : testbed.do_something

Since that "freezes" the value of the "testbed" variable.

An easier and nicer way is to use bound methods:

testbed.do_something

(without lambda)

13 years agoMore changes to make cross connections work... not working still
Alina Quereilhac [Thu, 28 Apr 2011 20:58:27 +0000 (22:58 +0200)]
More changes to make cross connections work... not working still

13 years agoinitial changes to support cross_connection in two stages.
Alina Quereilhac [Thu, 28 Apr 2011 17:10:07 +0000 (19:10 +0200)]
initial changes to support cross_connection in two stages.

13 years agoTicket 14: More incremental work - minor fixes to TUN cleanup
Claudio-Daniel Freire [Thu, 28 Apr 2011 15:44:54 +0000 (17:44 +0200)]
Ticket 14: More incremental work - minor fixes to TUN cleanup

13 years agorspawn.remote_kill fix: was not checking process status correctly
Claudio-Daniel Freire [Thu, 28 Apr 2011 14:22:18 +0000 (16:22 +0200)]
rspawn.remote_kill fix: was not checking process status correctly

13 years agoTicket #14: WIP, only intra-PL TUN connections, required groundwork for cross-backend...
Claudio-Daniel Freire [Thu, 28 Apr 2011 14:19:30 +0000 (16:19 +0200)]
Ticket #14: WIP, only intra-PL TUN connections, required groundwork for cross-backend connections

13 years agoTicket #13: wildcards support in connector metadata, making the world better for...
Claudio-Daniel Freire [Wed, 27 Apr 2011 15:15:15 +0000 (17:15 +0200)]
Ticket #13: wildcards support in connector metadata, making the world better for cross-connectivity

13 years agoTicket #28: Refactor Box classes to use mixins, and provide read-only routes/addesses
Claudio-Daniel Freire [Wed, 27 Apr 2011 13:11:12 +0000 (15:11 +0200)]
Ticket #28: Refactor Box classes to use mixins, and provide read-only routes/addesses

13 years agoTicket #21: support for netpipe stats traces
Claudio-Daniel Freire [Tue, 26 Apr 2011 16:31:46 +0000 (18:31 +0200)]
Ticket #21: support for netpipe stats traces

13 years agoTicket #21: emulation support - finished :D
Claudio-Daniel Freire [Tue, 26 Apr 2011 16:13:32 +0000 (18:13 +0200)]
Ticket #21: emulation support - finished :D

13 years agoTicket #21: emulation
Claudio-Daniel Freire [Tue, 26 Apr 2011 14:25:28 +0000 (16:25 +0200)]
Ticket #21: emulation
 - require emulation=True when using TUNs
 - automatically add ipfwslice and vsys/ipfw-be as requirements when using emulation

13 years agoTicket #21: emulation support - vsys requirement checking when attaching a TunInterfa...
Claudio-Daniel Freire [Tue, 26 Apr 2011 13:29:13 +0000 (15:29 +0200)]
Ticket #21: emulation support - vsys requirement checking when attaching a TunInterface to a node

13 years agoMetadata fix: the "sudo" attribute had copypaste bugs on it, making it unusable.
Claudio-Daniel Freire [Tue, 26 Apr 2011 13:28:24 +0000 (15:28 +0200)]
Metadata fix: the "sudo" attribute had copypaste bugs on it, making it unusable.

13 years agoBuild script with application commands and run the script - supports more complex...
Claudio-Daniel Freire [Tue, 26 Apr 2011 13:27:50 +0000 (15:27 +0200)]
Build script with application commands and run the script - supports more complex commands than simply calling remote_spawn on the user-supplied command.

13 years agopopen_scp fixes: StringIO-based (and similar) transfers were utterly broken
Claudio-Daniel Freire [Tue, 26 Apr 2011 13:26:45 +0000 (15:26 +0200)]
popen_scp fixes: StringIO-based (and similar) transfers were utterly broken

13 years agoUpdated help string on "install"
Claudio-Daniel Freire [Tue, 26 Apr 2011 12:36:24 +0000 (14:36 +0200)]
Updated help string on "install"

13 years agoReplace paths on main application command too
Claudio-Daniel Freire [Tue, 26 Apr 2011 12:25:06 +0000 (14:25 +0200)]
Replace paths on main application command too

13 years agoSlight design change: separate build from install of applications.
Claudio-Daniel Freire [Tue, 26 Apr 2011 12:22:57 +0000 (14:22 +0200)]
Slight design change: separate build from install of applications.

This will enable easier and more efficient mass-deployment of identical applications
using the spanning tree method.

13 years ago* Automatic provisioning
Claudio-Daniel Freire [Tue, 26 Apr 2011 11:19:06 +0000 (13:19 +0200)]
* Automatic provisioning
* Server key validation
* Trivial resource allocation (only perfectly-defined hosts)

13 years agobug fixing and code clean up.
Alina Quereilhac [Fri, 22 Apr 2011 16:46:08 +0000 (18:46 +0200)]
bug fixing and code clean up.
in execute.py: replaced references to "testbed intance" for "testbed controller" and separeted long methods into smaller ones
in proxy.py:  replaced references to "testbed intance" for "testbed controller"
in attributes.py: corrected typo
in testbed/ns3/*metadata*: added missing wifi "Standard" attribute

13 years agoNetref fixes - oh goodie
Claudio-Daniel Freire [Fri, 22 Apr 2011 16:03:49 +0000 (18:03 +0200)]
Netref fixes - oh goodie

13 years agoBinary building support - and tests for it
Claudio-Daniel Freire [Fri, 22 Apr 2011 15:14:16 +0000 (17:14 +0200)]
Binary building support - and tests for it

13 years agoDependency support fixes:
Claudio-Daniel Freire [Fri, 22 Apr 2011 14:14:13 +0000 (16:14 +0200)]
Dependency support fixes:
 * sudo through SSH needs -S, since we don't allocate a tty
 * missing metadata
 * fix broken regex in test
 * be happy

13 years agoValidate Node configuration
Claudio-Daniel Freire [Fri, 22 Apr 2011 13:50:17 +0000 (15:50 +0200)]
Validate Node configuration

13 years ago* Some refactoring, modularizing daemonized remote spawning with log capture and...
Claudio-Daniel Freire [Fri, 22 Apr 2011 13:30:37 +0000 (15:30 +0200)]
* Some refactoring, modularizing daemonized remote spawning with log capture and all that
* UNTESTED dependencies support (no building yet)

13 years agoFix execution test to replace netrefs where it's usually done (between preconfigure...
Claudio-Daniel Freire [Fri, 22 Apr 2011 12:05:00 +0000 (14:05 +0200)]
Fix execution test to replace netrefs where it's usually done (between preconfigure and configure)

13 years agoMake PlanetLabs easily runnable (environment variables for user/pass)
Claudio-Daniel Freire [Fri, 22 Apr 2011 11:56:42 +0000 (13:56 +0200)]
Make PlanetLabs easily runnable (environment variables for user/pass)

13 years agoDisabling PlanetLab tests: they're interactive
Claudio-Daniel Freire [Fri, 22 Apr 2011 11:43:03 +0000 (13:43 +0200)]
Disabling PlanetLab tests: they're interactive

13 years agoInitially working version of PlanetLab testbed implementation.
Claudio-Daniel Freire [Fri, 22 Apr 2011 11:42:29 +0000 (13:42 +0200)]
Initially working version of PlanetLab testbed implementation.
Wiiii

Note: PlanetLab execution tests require a PLC account (password), so they're interactive.

13 years agoSome application execution boilerplate
Claudio-Daniel Freire [Thu, 21 Apr 2011 13:35:25 +0000 (15:35 +0200)]
Some application execution boilerplate

13 years agoNetrefs now work on interfaces :)
Claudio-Daniel Freire [Thu, 21 Apr 2011 12:31:32 +0000 (14:31 +0200)]
Netrefs now work on interfaces :)

13 years agoRemove unneeded import in pl/execute.py
Claudio-Daniel Freire [Thu, 21 Apr 2011 12:17:18 +0000 (14:17 +0200)]
Remove unneeded import in pl/execute.py

13 years agoSeveral execution fixes:
Claudio-Daniel Freire [Thu, 21 Apr 2011 12:16:38 +0000 (14:16 +0200)]
Several execution fixes:
 * execution test case
 * testbed needs username/password to work
 * early assignment of nodes to an existing PL node if unambiguously available
 * other minor stuff

13 years agoMore tests for PlanetLab design, and associated fixes
Claudio-Daniel Freire [Thu, 21 Apr 2011 10:52:18 +0000 (12:52 +0200)]
More tests for PlanetLab design, and associated fixes

13 years agoAdd slice attribute to PlanetLab design test case (it's mandatory)
Claudio-Daniel Freire [Thu, 21 Apr 2011 10:37:59 +0000 (12:37 +0200)]
Add slice attribute to PlanetLab design test case (it's mandatory)

13 years agoXML generation fixes: don't break when mandatory fields are missing - people might...
Claudio-Daniel Freire [Thu, 21 Apr 2011 10:34:24 +0000 (12:34 +0200)]
XML generation fixes: don't break when mandatory fields are missing - people might want to save anyway

13 years ago* Planetlab tests
Claudio-Daniel Freire [Thu, 21 Apr 2011 09:36:48 +0000 (11:36 +0200)]
* Planetlab tests
* Only run .py files in make test
* Rename nepi.util.ipaddr to nepi.util.ipaddr2 (conflicts with standard ipaddr)
* Add planetlab to NEPI's testbeds (in setup.py)

13 years agoImplementing PlanetLab testbed
Claudio-Daniel Freire [Wed, 20 Apr 2011 16:54:40 +0000 (18:54 +0200)]
Implementing PlanetLab testbed

13 years agoTicket #23: rename TestbedInstance -> TestbedController
Claudio-Daniel Freire [Tue, 19 Apr 2011 15:21:15 +0000 (17:21 +0200)]
Ticket #23: rename TestbedInstance -> TestbedController

13 years agoAdded verbose flag in coverage test
Alina Quereilhac [Tue, 19 Apr 2011 14:18:16 +0000 (16:18 +0200)]
Added verbose flag in coverage test

13 years agoBug fix: socket creation in server was not synchronized
Alina Quereilhac [Tue, 19 Apr 2011 13:59:29 +0000 (15:59 +0200)]
Bug fix: socket creation in server was not synchronized

13 years agoMore sync bugfixes: broader spectrum of synchronization, synchronize to the point...
Claudio-Daniel Freire [Tue, 19 Apr 2011 11:58:26 +0000 (13:58 +0200)]
More sync bugfixes: broader spectrum of synchronization, synchronize to the point where the Forwarder has the connections already made.

13 years agoSync bugfix: wait for forwarder readiness when launching a client.
Claudio-Daniel Freire [Tue, 19 Apr 2011 11:53:06 +0000 (13:53 +0200)]
Sync bugfix: wait for forwarder readiness when launching a client.

13 years agoBug fixing in integration tests
Alina Quereilhac [Tue, 19 Apr 2011 11:46:15 +0000 (13:46 +0200)]
Bug fixing in integration tests

13 years agoFix invalid message handlign in testbed proxies
Claudio-Daniel Freire [Tue, 19 Apr 2011 10:13:09 +0000 (12:13 +0200)]
Fix invalid message handlign in testbed proxies

13 years agoTicket #25: controller recovery mode
Claudio-Daniel Freire [Tue, 19 Apr 2011 09:38:31 +0000 (11:38 +0200)]
Ticket #25: controller recovery mode

13 years agoserver/client fixes on:
Claudio-Daniel Freire [Tue, 19 Apr 2011 09:33:08 +0000 (11:33 +0200)]
server/client fixes on:
 * error handling
 * no leaving of zombie processes
 * logging on test failures

13 years agoFix tun_connect not to use 100% CPU (by only waiting for write-ready sockets that...
Claudio-Daniel Freire [Mon, 18 Apr 2011 16:16:11 +0000 (18:16 +0200)]
Fix tun_connect not to use 100% CPU (by only waiting for write-ready sockets that really need to write)

13 years agoUtility program to print out distro-dependant constants
Claudio-Daniel Freire [Mon, 18 Apr 2011 15:53:13 +0000 (17:53 +0200)]
Utility program to print out distro-dependant constants

13 years agoAllow user-configurable port, so that many tunnels can coexist in the same node
Claudio-Daniel Freire [Mon, 18 Apr 2011 15:07:16 +0000 (17:07 +0200)]
Allow user-configurable port, so that many tunnels can coexist in the same node

13 years agoAdd scripts folder, for scripts that will be needed during deployment.
Claudio-Daniel Freire [Mon, 18 Apr 2011 07:17:35 +0000 (09:17 +0200)]
Add scripts folder, for scripts that will be needed during deployment.
Add tun_connect script, a script to set up tunnelling in both generic unix and planetlab nodes.

13 years agoTicket #24: test auto-reconnection
Claudio-Daniel Freire [Wed, 13 Apr 2011 14:56:43 +0000 (16:56 +0200)]
Ticket #24: test auto-reconnection

13 years agoTicket #24: catch ValueError too, it gets triggered by closed connections
Claudio-Daniel Freire [Wed, 13 Apr 2011 14:56:19 +0000 (16:56 +0200)]
Ticket #24: catch ValueError too, it gets triggered by closed connections

13 years agoTicket #10: netrefs, add attribute parameter to the controller
Claudio-Daniel Freire [Wed, 13 Apr 2011 14:55:38 +0000 (16:55 +0200)]
Ticket #10: netrefs, add attribute parameter to the controller

13 years agoTicket #10: netrefs, fix TRACE message
Claudio-Daniel Freire [Wed, 13 Apr 2011 14:55:08 +0000 (16:55 +0200)]
Ticket #10: netrefs, fix TRACE message

13 years agoTicket #24: transparent proxy/client reconnection
Claudio-Daniel Freire [Wed, 13 Apr 2011 14:10:24 +0000 (16:10 +0200)]
Ticket #24: transparent proxy/client reconnection

13 years agoTicket #10: adapt proxies to know the new interface for routes/addresses
Claudio-Daniel Freire [Wed, 13 Apr 2011 14:08:13 +0000 (16:08 +0200)]
Ticket #10: adapt proxies to know the new interface for routes/addresses

13 years agoTicket #12: proxy reconnection
Claudio-Daniel Freire [Wed, 13 Apr 2011 11:50:01 +0000 (13:50 +0200)]
Ticket #12: proxy reconnection

13 years agoBetter notation for the long-message test
Claudio-Daniel Freire [Wed, 13 Apr 2011 11:41:39 +0000 (13:41 +0200)]
Better notation for the long-message test

13 years agoTicket #11: parallel execution
Claudio-Daniel Freire [Wed, 13 Apr 2011 08:56:14 +0000 (10:56 +0200)]
Ticket #11: parallel execution

13 years agoTicket #10: netrefs, initial implementation
Claudio-Daniel Freire [Wed, 13 Apr 2011 08:37:14 +0000 (10:37 +0200)]
Ticket #10: netrefs, initial implementation

13 years agoTicket #8: support for both box and testbed standard attributes.
Claudio-Daniel Freire [Tue, 12 Apr 2011 08:34:02 +0000 (10:34 +0200)]
Ticket #8: support for both box and testbed standard attributes.
 - homeDirectory standard attribute for testbeds
 - Removed homeDirectory attribute from testbeds (now they just get the standard attribute)
 - Should be backwards-compatible

13 years agoDo not keep label guids, they're not immediately useful.
Claudio-Daniel Freire [Mon, 11 Apr 2011 07:28:36 +0000 (09:28 +0200)]
Do not keep label guids, they're not immediately useful.

13 years agoRemove debug output related to ticket #8
Claudio-Daniel Freire [Fri, 8 Apr 2011 16:44:38 +0000 (18:44 +0200)]
Remove debug output related to ticket #8

13 years agoTicket #8: box labels, reference expression substitution supporting framework
Claudio-Daniel Freire [Fri, 8 Apr 2011 16:30:47 +0000 (18:30 +0200)]
Ticket #8: box labels, reference expression substitution supporting framework

13 years agoTicket #9: rename create/create_set/add_x/configure/connect -> defer_x
Claudio-Daniel Freire [Fri, 8 Apr 2011 14:09:11 +0000 (16:09 +0200)]
Ticket #9: rename create/create_set/add_x/configure/connect -> defer_x

13 years agoAdd .hgignore: pyc and ~ files
Claudio-Daniel Freire [Fri, 8 Apr 2011 13:54:12 +0000 (15:54 +0200)]
Add .hgignore: pyc and ~ files

13 years agons3 integration tests added. 1 test fails.
Alina Quereilhac [Thu, 7 Apr 2011 15:54:45 +0000 (17:54 +0200)]
ns3 integration tests added. 1 test fails.

13 years agons3 execute test now evaluates result.
Alina Quereilhac [Fri, 1 Apr 2011 17:06:43 +0000 (19:06 +0200)]
ns3 execute test now evaluates result.

13 years agosearch ns3 library and ns3 bindings in the environment variables
Alina Quereilhac [Thu, 31 Mar 2011 20:11:37 +0000 (22:11 +0200)]
search ns3 library and ns3 bindings in the environment variables

13 years agomissing import ctypes in test_util.py
Alina Quereilhac [Thu, 31 Mar 2011 17:20:36 +0000 (19:20 +0200)]
missing import ctypes in test_util.py

13 years agominor changes in tests
Alina Quereilhac [Thu, 31 Mar 2011 17:07:18 +0000 (19:07 +0200)]
minor changes in tests

13 years agodecorator added to test_util for detecting usable ns3 library
Alina Quereilhac [Thu, 31 Mar 2011 12:53:25 +0000 (14:53 +0200)]
decorator added to test_util for detecting usable ns3 library

13 years agorouting support added for ns3 testbed
Alina Quereilhac [Fri, 25 Mar 2011 17:15:24 +0000 (18:15 +0100)]
routing support added for ns3 testbed

13 years agoobsolete attributes eliminated from metadata.
Alina Quereilhac [Thu, 24 Mar 2011 10:38:22 +0000 (11:38 +0100)]
obsolete attributes eliminated from metadata.

13 years ago'family' attribute removed from address. also max_addresses is no longer an attribute...
Alina Quereilhac [Tue, 22 Mar 2011 10:37:05 +0000 (11:37 +0100)]
'family' attribute removed from address. also max_addresses is no longer an attribute of the factory.

13 years agons3 metadata and design test in progress
Alina Quereilhac [Mon, 21 Mar 2011 16:29:05 +0000 (17:29 +0100)]
ns3 metadata and design test in progress

13 years agoMetadata for ns3 v 3.9.rc3
Alina Quereilhac [Mon, 21 Mar 2011 10:38:04 +0000 (11:38 +0100)]
Metadata for ns3 v 3.9.rc3

13 years agoadding ns3 testbed: ongoing development! tests DON'T run OK!
Alina Quereilhac [Fri, 18 Mar 2011 14:53:21 +0000 (15:53 +0100)]
adding ns3 testbed: ongoing development! tests DON'T run OK!

13 years agoserver daemon launched over ssh connection.
Alina Quereilhac [Wed, 16 Mar 2011 22:15:20 +0000 (23:15 +0100)]
server daemon launched over ssh connection.

13 years agobugfixing
Alina Quereilhac [Tue, 15 Mar 2011 16:36:45 +0000 (17:36 +0100)]
bugfixing

13 years agotests with daemonized controller + remote daeminized instance working
Alina Quereilhac [Mon, 14 Mar 2011 10:23:35 +0000 (11:23 +0100)]
tests with daemonized controller + remote daeminized instance working

13 years agoadvancing the testbed instance daemon.
Alina Quereilhac [Fri, 11 Mar 2011 17:41:09 +0000 (18:41 +0100)]
advancing the testbed instance daemon.

13 years agoDaemonized controller woriking !
Alina Quereilhac [Fri, 11 Mar 2011 13:57:01 +0000 (14:57 +0100)]
Daemonized controller woriking !

13 years agoworking on proxy.py ...
Alina Quereilhac [Thu, 10 Mar 2011 18:41:30 +0000 (19:41 +0100)]
working on proxy.py ...

13 years agotest case added for server.py
Alina Quereilhac [Thu, 10 Mar 2011 15:27:10 +0000 (16:27 +0100)]
test case added for server.py