aboutsummaryrefslogtreecommitdiff
path: root/lava_dispatcher/test
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2018-01-04 11:17:53 +0100
committerNeil Williams <neil.williams@linaro.org>2018-04-12 08:41:52 +0000
commitb8e7dc1317e263884c2e10bcf4ff822857a545a5 (patch)
tree66c482913fd4fef3130091dede48658bbacadf51 /lava_dispatcher/test
parentcdd2ef5476bec99c86f3210d92a7d643406131e3 (diff)
xnbd: fix killing of old xnbd-server process
Our LAB run lots of XNBD jobs, and lots of xnbd-server process were never killed. The port allocated is not used for killing, eg self.parameters['protocols']['lava-xnbd']['port'] is still set to auto. As suggested by Neil Williams, it's better to "create a dedicated function which is called from the test job" So this patch adds a "set_port" function which get the right port number. Existing jobs should now add this: protocols: lava-xnbd: - action: nbd-deploy request: set_port after actions: - deploy: Change-Id: I6b464314ac2c1a137162b0a7f955c4501f8a7424 Suggested-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'lava_dispatcher/test')
-rw-r--r--lava_dispatcher/test/sample_jobs/bbb-initrd-nbd.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/lava_dispatcher/test/sample_jobs/bbb-initrd-nbd.yaml b/lava_dispatcher/test/sample_jobs/bbb-initrd-nbd.yaml
index 276861f7a..67356cb5b 100644
--- a/lava_dispatcher/test/sample_jobs/bbb-initrd-nbd.yaml
+++ b/lava_dispatcher/test/sample_jobs/bbb-initrd-nbd.yaml
@@ -43,3 +43,7 @@ actions:
- 'root@beaglebone:'
timeout:
minutes: 4
+ protocols:
+ lava-xnbd:
+ - action: nbd-deploy
+ request: set_port