Repository navigation
DAOS-19836 dlck: add faults unit tests - #19393
Conversation
|
Ticket title is 'dlck: easy way to test locally' |
|
Test stage Python Bandit check completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-19393/1/execution/node/430/log |
d23f4ab to
cd2078c
Compare
|
Test stage Python Bandit check completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-19393/2/execution/node/430/log |
cd2078c to
64e7374
Compare
|
Test stage Python Bandit check completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-19393/3/execution/node/401/log |
64e7374 to
e8065d2
Compare
|
Test stage Test RPMs on Leap 15 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-19393/4/execution/node/832/log |
|
Test stage Functional on EL 9 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-19393/4/execution/node/876/log |
|
Test stage Unit Test bdev completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-19393/5/testReport/ |
|
Test stage Unit Test bdev completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-19393/6/testReport/ |
|
Test stage Unit Test bdev completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-19393/9/testReport/ |
|
Test stage Unit Test bdev completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-19393/10/testReport/ |
|
Test stage Unit Test bdev completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-19393/11/testReport/ |
|
Test stage Unit Test bdev completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-19393/12/testReport/ |
|
Test stage Unit Test bdev completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-19393/13/testReport/ |
|
Test stage Unit Test bdev completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-19393/14/testReport/ |
|
Test stage Unit Test bdev completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-19393/15/testReport/ |
|
Test stage Unit Test bdev completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-19393/16/testReport/ |
|
Test stage Unit Test bdev completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-19393/17/testReport/ |
|
Test stage Python Bandit check completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-19393/18/execution/node/398/log |
|
Test stage Unit Test bdev completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-19393/19/testReport/ |
7918ce1 to
f6430c9
Compare
efc7b21 to
8501187
Compare
|
Test stage Python Bandit check completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-19393/33/execution/node/396/log |
|
Test stage Python Bandit check completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-19393/34/execution/node/397/log |
3edde6e to
7313cb2
Compare
|
Test stage Unit Test bdev completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-19393/40/testReport/ |
48aed30 to
eaf8fdd
Compare
Test procedure:
- create a pool and populate it with standard data with dlck_test_helper
- read faults from fault_injection_dlck.yaml
- for each fault:
- generate a YAML fault injection file
- run DLCK against the pre-prepared pool with the fault injected
- collect stdout and DLCK logs
- compare collected data with templates e.g.
- fault_templates/DAOS_FAULT_CONT_INV_PAD/output.txt and
- fault_templates/DAOS_FAULT_CONT_INV_PAD/{{UUID}}_vos-0
- add DLCK_NO_NVME env variable to disable unnecessary NVMe-submodules
initialization - the UT environment does not allow to allocate necessary
DMA buffers.
Note: Please do not pay too much attention to quirks in the templates.
Most of them are planned to be fixed in a separate pull request. e.g.
DAOS-19846
skip-unit-test-with-memcheck: true
skip-test-rpms: true
Skip-func-vm: true
Skip-fault-injection-test: true
Skip-test-el-9.6-rpms: true
Skip-test-leap-15-rpms: true
Skip-func-hw-test: true
Signed-off-by: Jan Michalski <jan-marian.michalski@hpe.com>
eaf8fdd to
2da0d5b
Compare
skip-unit-test-with-memcheck: true skip-test-rpms: true Skip-func-vm: true Skip-fault-injection-test: true Skip-test-el-9.6-rpms: true Skip-test-leap-15-rpms: true Skip-func-hw-test: true Skip-NLT: true Signed-off-by: Jan Michalski <jan-marian.michalski@hpe.com>
|
Test stage Functional on EL 9 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-19393/42/execution/node/1098/log |
skip-unit-test-with-memcheck: true skip-test-rpms: true Skip-func-vm: true Skip-fault-injection-test: true Skip-test-el-9.6-rpms: true Skip-test-leap-15-rpms: true Skip-func-hw-test: true Skip-NLT: true Signed-off-by: Jan Michalski <jan-marian.michalski@hpe.com>
skip-unit-test-with-memcheck: true skip-test-rpms: true Skip-func-vm: true Skip-fault-injection-test: true Skip-test-el-9.6-rpms: true Skip-test-leap-15-rpms: true Skip-func-hw-test: true Skip-NLT: true Signed-off-by: Jan Michalski <jan-marian.michalski@hpe.com>
skip-unit-test-with-memcheck: true skip-test-rpms: true Skip-func-vm: true Skip-fault-injection-test: true Skip-test-el-9.6-rpms: true Skip-test-leap-15-rpms: true Skip-func-hw-test: true Skip-NLT: true Signed-off-by: Jan Michalski <jan-marian.michalski@hpe.com>
skip-unit-test-with-memcheck: true skip-test-rpms: true Skip-func-vm: true Skip-fault-injection-test: true Skip-test-el-9.6-rpms: true Skip-test-leap-15-rpms: true Skip-func-hw-test: true Skip-NLT: true Signed-off-by: Jan Michalski <jan-marian.michalski@hpe.com>
|
Test stage Functional on EL 9 completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-19393/46/testReport/ |
| DEFAULT_POOL_UUID = "00000000-1111-2222-3333-444444444444" | ||
| TESTS_DIR = Path(__file__).resolve().parent | ||
| TEMPLATE_CONFIG = TESTS_DIR / "fault_injection_dlck.yaml" | ||
| TEMPLATE_DIR = TESTS_DIR / "fault_templates" |
There was a problem hiding this comment.
Occasionally, I found that DLCK_FAULT_CONT_DOES_NOT_EXIST and DLCK_FAULT_POOL_OPEN_VERSION are both described as 131344 in fault_injection_dlck.yaml. It seems typo. Please double check.
There was a problem hiding this comment.
You are right. This is planned to be fixed here #19377.
Testing - complete ✅
|
Test procedure:
create a pool and populate it with standard data with dlck_test_helper
read faults from fault_injection_dlck.yaml
for each fault:
add DLCK_NO_NVME env variable to disable unnecessary NVMe-submodules initialization - the UT environment does not allow to allocate necessary DMA buffers.
Note: Please do not pay too much attention to quirks in the templates. Most of them are planned to be fixed in a separate pull request. e.g. DAOS-19846
Waits for:
Steps for the author:
After all prior steps are complete: