Merge lp:~raharper/curtin/trunk.dirty-disks-in-early-command into lp:~curtin-dev/curtin/trunk
Status: | Merged |
---|---|
Merged at revision: | 498 |
Proposed branch: | lp:~raharper/curtin/trunk.dirty-disks-in-early-command |
Merge into: | lp:~curtin-dev/curtin/trunk |
Diff against target: |
451 lines (+84/-16) 18 files modified
doc/topics/integration-testing.rst (+5/-0) examples/tests/allindata.yaml (+4/-0) examples/tests/basic.yaml (+1/-0) examples/tests/bcache_basic.yaml (+1/-0) examples/tests/dirty_disks_config.yaml (+10/-0) examples/tests/lvm.yaml (+1/-0) examples/tests/mdadm_bcache.yaml (+3/-0) examples/tests/mdadm_bcache_complex.yaml (+3/-0) examples/tests/mirrorboot-uefi.yaml (+0/-12) examples/tests/mirrorboot.yaml (+2/-0) examples/tests/raid10boot.yaml (+4/-0) examples/tests/raid5boot.yaml (+3/-0) examples/tests/raid6boot.yaml (+4/-0) tests/vmtests/__init__.py (+30/-1) tests/vmtests/test_basic.py (+2/-0) tests/vmtests/test_bcache_basic.py (+2/-0) tests/vmtests/test_mdadm_bcache.py (+2/-0) tools/launch (+7/-3) |
To merge this branch: | bzr merge lp:~raharper/curtin/trunk.dirty-disks-in-early-command |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Server Team CI bot | continuous-integration | Approve | |
Scott Moser (community) | Approve | ||
Review via email:
|
Description of the change
vmtests: enable tests apply storage config to validate clear_holders path
Allow test classes with storage configurations to optionally run curtin
block-meta during the early stage to "dirty" the disks used in the
test-case. This exercises curtin's clear-holders path to closer match
MAAS redeploying systems with existing storage configurations. In some
cases, we need to run with multiple virtual processors to allow race
conditions to occur and exercise curtin's handling of these situations.
- Add class attribute 'nr_cpus' (integer) to control number of VCPUS used
in the guest.
Defaults to 1, allows CURTIN_
- Add class attribute 'dirty_disks' (boolean) to control if a test class
will enable running the early command.
Defaults to False
- Add class attribute 'dirty_disk_config' (string) which is path to the
generic early_command yaml blob used to run curtin block-meta with the
test-case's storage config.
Defaults to 'examples/
- tools/launch accepts --smp to control the number of VCPUS to use in the
VM
PASSED: Continuous integration, rev:498 /jenkins. ubuntu. com/server/ job/curtin- ci/478/ /jenkins. ubuntu. com/server/ job/curtin- ci/nodes= metal-amd64/ 478 /jenkins. ubuntu. com/server/ job/curtin- ci/nodes= metal-arm64/ 478 /jenkins. ubuntu. com/server/ job/curtin- ci/nodes= metal-ppc64el/ 478 /jenkins. ubuntu. com/server/ job/curtin- ci/nodes= metal-s390x/ 478 /jenkins. ubuntu. com/server/ job/curtin- ci/nodes= vm-i386/ 478
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/curtin- ci/478/ rebuild
https:/