From 9e38155d654e012879a03e784f03a95de4aef64e Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Wed, 14 Mar 2018 18:07:32 +0100 Subject: prototypes: Add local Ouroboros support This adds local Ouroboros support in case of a fake testbed (i.e. no resources allocated). A next PR will abstract away the mode of communication with the testbed, since the Docker plugin will also need it. This also adds another function to the model, terminate_prototype, which should clean up the prototype gracefully, or can be skipped depending on the testbed. Currently the ouroboros plugin with the fake testbed needs to be run as root. If there is a way to run the command as root in the background and then clean it up properly, I would be happy to know how. --- rumba/testbeds/faketestbed.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'rumba/testbeds') diff --git a/rumba/testbeds/faketestbed.py b/rumba/testbeds/faketestbed.py index 44994e3..b021aca 100644 --- a/rumba/testbeds/faketestbed.py +++ b/rumba/testbeds/faketestbed.py @@ -38,4 +38,7 @@ class Testbed(mod.Testbed): mod.Testbed.__init__(self, exp_name, username, password, proj_name) def swap_in(self, experiment): - logger.info("[Fake testbed] experiment swapped in") + logger.info("Experiment swapped in") + + def swap_out(self, experiment): + logger.info("Experiment swapped out") -- cgit v1.2.3