KVM SR: add standalone test in parts.
[slapos.git] / software / kvm / instance-kvm-resilient-test.cfg.jinja2
1 [buildout]
2
3 eggs-directory = {{ eggs_directory }}
4 develop-eggs-directory = {{ develop_eggs_directory }}
5 offline = true
6
7 parts =
8   deploy-resiliency-test
9   request-resilient-kvm
10   deploy-standalone-resiliency-test
11
12 [directory]
13 recipe = slapos.cookbook:mkdirectory
14 home = ${buildout:directory}
15 etc = ${:home}/etc/
16 var = ${:home}/var/
17 srv = ${:home}/srv/
18 bin = ${:home}/bin/
19 tmp = ${:home}/tmp/
20 log = ${:var}/log/
21 services = ${:etc}/service/
22 scripts = ${:etc}/run/
23
24 [deploy-resiliency-test]
25 recipe = slapos.cookbook:wrapper
26 wrapper-path = ${directory:scripts}/runKVMResiliencyTestSuite
27 testnode-parameters = --test-result-path={{ slapparameter_dict.get('test-result-path') }} --revision={{ slapparameter_dict.get('test-suite-revision') }} --node-title={{ slapparameter_dict.get('scalability-launcher-title') }} --test-suite={{ slapparameter_dict.get('test-suite') }} --test-suite-master-url={{ slapparameter_dict.get('test-suite-master-url') }} --log-path=${directory:log}
28 kvm-test-parameters = server_url=${slap-connection:server-url} key_file=${slap-connection:key-file} cert_file=${slap-connection:cert-file} computer_id=${slap-connection:computer-id} partition_id=${slap-connection:partition-id} software=${slap-connection:software-release-url} namebase=kvm kvm_rootinstance_name='${request-resilient-kvm:name}'
29
30 command-line = {{ bin_directory }}/runResiliencyTest ${:testnode-parameters} ${:kvm-test-parameters}
31
32
33 [deploy-standalone-resiliency-test]
34 # Used to manually run the KVM test if we don't have a running testnode.
35 recipe = slapos.cookbook:wrapper
36 wrapper-path = ${directory:bin}/runStandaloneResiliencyTestSuite
37 command-line = {{ bin_directory }}/runStandaloneResiliencyTest --test-suite-title=kvm ${deploy-resiliency-test:kvm-test-parameters}
38
39 [request-resilient-kvm]
40 <= slap-connection
41 recipe = slapos.cookbook:request
42 software-url = ${slap-connection:software-release-url}
43 software-type = kvm-resilient
44 name = Resilient KVM (Root Instance)
45 config = virtual-hard-drive-url virtual-hard-drive-md5sum resiliency-backup-periodicity
46 config-virtual-hard-drive-url = ${slap-parameter:virtual-hard-drive-url}
47 config-virtual-hard-drive-md5sum = ${slap-parameter:virtual-hard-drive-md5sum}
48 config-resiliency-backup-periodicity = */5
49 # We don't use url parameter, but we want it to be there to make sure root instance is ready.
50 return = url
51 # XXX What to do?
52 #sla = instance_guid
53 #sla-instance_guid = ${slap-parameter:frontend-instance-guid}
54
55 [slap-parameter]
56 virtual-hard-drive-url = https://softinst43236.host.vifib.net/data/public/8e2138.php?dl=true
57 virtual-hard-drive-md5sum = de0f10c7c6538e9928879332afd9be7a