Commit ccdd19c3 authored by Rafael Monnerat's avatar Rafael Monnerat

resiliencetest: Move all resilient test related files into erp5testnode/testsuite

  Make the integration with erp5testnode separeted from original SR.
  Optimise KVM resilient tests by downloading the test image on the software release site,
  without change the original SR. (This will sabe internet and speed up result).
parent de5812a5
...@@ -58,6 +58,6 @@ return = ipv6 ...@@ -58,6 +58,6 @@ return = ipv6
sla-computer_guid = ${slap-connection:computer-id} sla-computer_guid = ${slap-connection:computer-id}
[slap-parameter] [slap-parameter]
virtual-hard-drive-url = http://www.nexedi.org/static/slapos/kvm_resiliency_test/virtual.qcow2.gz virtual-hard-drive-url = {{ default_test_image_url }}
virtual-hard-drive-md5sum = dd82c771f6f7738fb4b0fc1330ed8236 virtual-hard-drive-md5sum = {{ default_test_image_md5sum }}
virtual-hard-drive-gzipped = true virtual-hard-drive-gzipped = true
...@@ -4,3 +4,19 @@ extends = ${template:output} ...@@ -4,3 +4,19 @@ extends = ${template:output}
[switch_softwaretype] [switch_softwaretype]
default = $${:test} default = $${:test}
RootSoftwareInstance = $${:test} RootSoftwareInstance = $${:test}
# Used for the test of resiliency. The system wants a "test" software_type.
test = $${dynamic-template-resilient-test:rendered}
[dynamic-template-resilient-test]
recipe = slapos.recipe.template:jinja2
template = ${template-resilient-test:location}/${template-resilient-test:filename}
rendered = $${buildout:directory}/template-resilient-test.cfg
bin-directory = ${buildout:bin-directory}
context =
key develop_eggs_directory buildout:develop-eggs-directory
key eggs_directory buildout:eggs-directory
key slapparameter_dict slap-configuration:configuration
raw bin_directory ${buildout:bin-directory}
${template-resilient-test:extra-context}
mode = 0644
...@@ -4,3 +4,24 @@ extends = ...@@ -4,3 +4,24 @@ extends =
testsuite.cfg testsuite.cfg
parts += template-erp5testnode parts += template-erp5testnode
[default-test-image]
recipe = hexagonit.recipe.download
ignore-existing = true
filename = ${:_buildout_section_name_}
url = http://www.nexedi.org/static/slapos/kvm_resiliency_test/virtual.qcow.gz
md5sum = dd82c771f6f7738fb4b0fc1330ed8236
download-only = true
mode = 0644
location = ${buildout:parts-directory}/${:_buildout_section_name_}
[template-resilient-test]
filename = instance-kvm-resilient-test.cfg.jinja2
md5sum = 71ddbdeb8769bcb0ebb3c9407ef7e36c
# Ingest extra-context, on a the final template-resilient-test rendering
# always ingest raw values.
extra-context =
raw default_test_image_url file://${default-test-image:location}/${default-test-image:filename}
raw default_test_image_md5 ${default-test-image:md5sum}
...@@ -4,3 +4,7 @@ extends = ...@@ -4,3 +4,7 @@ extends =
testsuite.cfg testsuite.cfg
parts += template-erp5testnode parts += template-erp5testnode
[template-resilient-test]
filename = instance-resilient-test.cfg.jinja2
md5sum = 268d07ed48199d34259aff1ba544d852
[template-erp5testnode] [template-erp5testnode]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg.in url = ${:_profile_base_location_}/instance.cfg.in
md5sum = 4f68874a5d8cee326e3a080dcd8614e2 md5sum = e5adcd511bca060bfeccec48b57c635c
output = ${buildout:directory}/template.cfg output = ${buildout:directory}/template.cfg
mode = 0644 mode = 0644
[template] [template]
output = ${buildout:directory}/template-original.cfg output = ${buildout:directory}/template-original.cfg
[template-resilient-test]
recipe = hexagonit.recipe.download
ignore-existing = true
url = ${:_profile_base_location_}/${:filename}
mode = 0644
download-only = true
on-update = true
extra-context =
...@@ -89,7 +89,7 @@ command = ...@@ -89,7 +89,7 @@ command =
[template] [template]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg.in url = ${:_profile_base_location_}/instance.cfg.in
md5sum = 721d3d665d6340e1e0cd1eb3e8cac6bc md5sum = 5c159864ce41394486867c27d65c2f50
output = ${buildout:directory}/template.cfg output = ${buildout:directory}/template.cfg
mode = 0644 mode = 0644
...@@ -120,15 +120,6 @@ md5sum = 700676dff4a3835a9d6cde015d91922e ...@@ -120,15 +120,6 @@ md5sum = 700676dff4a3835a9d6cde015d91922e
download-only = true download-only = true
on-update = true on-update = true
[template-kvm-resilient-test]
recipe = hexagonit.recipe.download
ignore-existing = true
url = ${:_profile_base_location_}/instance-kvm-resilient-test.cfg.jinja2
md5sum = 5eda541b14be6bea18f4af911126bff1
mode = 0644
download-only = true
on-update = true
[template-kvm-import] [template-kvm-import]
recipe = hexagonit.recipe.download recipe = hexagonit.recipe.download
ignore-existing = true ignore-existing = true
......
...@@ -19,9 +19,6 @@ kvm-resilient = $${dynamic-template-kvm-resilient:rendered} ...@@ -19,9 +19,6 @@ kvm-resilient = $${dynamic-template-kvm-resilient:rendered}
kvm-import = $${dynamic-template-kvm-import:rendered} kvm-import = $${dynamic-template-kvm-import:rendered}
kvm-export = $${dynamic-template-kvm-export:rendered} kvm-export = $${dynamic-template-kvm-export:rendered}
# Used for the test of resiliency. The system wants a "test" software_type.
test = $${dynamic-template-kvm-resilient-test:rendered}
frozen = ${instance-frozen:output} frozen = ${instance-frozen:output}
pull-backup = ${template-pull-backup:output} pull-backup = ${template-pull-backup:output}
...@@ -159,13 +156,3 @@ context = ...@@ -159,13 +156,3 @@ context =
raw gzip_binary ${gzip:location}/bin/gzip raw gzip_binary ${gzip:location}/bin/gzip
mode = 0644 mode = 0644
[dynamic-template-kvm-resilient-test]
recipe = slapos.recipe.template:jinja2
template = ${template-kvm-resilient-test:location}/instance-kvm-resilient-test.cfg.jinja2
rendered = $${buildout:directory}/template-kvm-resilient-test.cfg
context =
key develop_eggs_directory buildout:develop-eggs-directory
key eggs_directory buildout:eggs-directory
key slapparameter_dict slap-configuration:configuration
raw bin_directory ${buildout:bin-directory}
mode = 0644
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
# not need these here). # not need these here).
[template] [template]
filename = instance.cfg filename = instance.cfg
md5sum = 80aa32f7b691296b688a469e776db5b5 md5sum = 02755403c9f0b52d717160b0b2d0cfb7
[template-runner] [template-runner]
filename = instance-runner.cfg filename = instance-runner.cfg
...@@ -41,10 +41,6 @@ md5sum = 852a2ed99af566d27e5e4403334a3376 ...@@ -41,10 +41,6 @@ md5sum = 852a2ed99af566d27e5e4403334a3376
filename = instance-resilient.cfg.jinja2 filename = instance-resilient.cfg.jinja2
md5sum = a902b84ac7d1e29a7fdb06cbc7dec150 md5sum = a902b84ac7d1e29a7fdb06cbc7dec150
[template-resilient-test]
filename = instance-resilient-test.cfg.jinja2
md5sum = 268d07ed48199d34259aff1ba544d852
[template_nginx_conf] [template_nginx_conf]
filename = nginx_conf.in filename = nginx_conf.in
md5sum = 2b06f7eb9a1d45d250d4b92a944db925 md5sum = 2b06f7eb9a1d45d250d4b92a944db925
......
...@@ -93,9 +93,6 @@ recipe = slapos.recipe.build:download ...@@ -93,9 +93,6 @@ recipe = slapos.recipe.build:download
< = download-base < = download-base
recipe = slapos.recipe.build:download recipe = slapos.recipe.build:download
[template-resilient-test]
< = download-only-base
[template_nginx_conf] [template_nginx_conf]
< = download-only-base < = download-only-base
......
...@@ -11,7 +11,6 @@ extends = ${template-resilient-templates:output} ...@@ -11,7 +11,6 @@ extends = ${template-resilient-templates:output}
recipe = slapos.cookbook:softwaretype recipe = slapos.cookbook:softwaretype
default = $${instance-base-runner:rendered} default = $${instance-base-runner:rendered}
resilient = $${instance-resilient:rendered} resilient = $${instance-resilient:rendered}
test = $${instance-resilient-test:rendered}
runner = $${instance-base-runner:rendered} runner = $${instance-base-runner:rendered}
runner-import = ${instance-runner-import:output} runner-import = ${instance-runner-import:output}
runner-export = $${template-runner-export:rendered} runner-export = $${template-runner-export:rendered}
...@@ -48,18 +47,6 @@ import-list = file parts :template-parts-destination ...@@ -48,18 +47,6 @@ import-list = file parts :template-parts-destination
file replicated :template-replicated-destination file replicated :template-replicated-destination
mode = 0644 mode = 0644
[instance-resilient-test]
recipe = slapos.recipe.template:jinja2
template = ${template-resilient-test:location}/instance-resilient-test.cfg.jinja2
rendered = $${buildout:directory}/template-resilient-test.cfg
bin-directory = ${buildout:bin-directory}
context =
key bin_directory instance-resilient-test:bin-directory
key develop_eggs_directory buildout:develop-eggs-directory
key eggs_directory buildout:eggs-directory
key slapparameter_dict slap-configuration:configuration
mode = 0644
[template-runner-export] [template-runner-export]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
template = ${instance-runner-export:target} template = ${instance-runner-export:target}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment