[LU-8613] test-framework defect: child processes of a test is not killed when parent is killed( on timeout) Created: 14/Sep/16  Updated: 06/Jul/21  Resolved: 06/Jul/21

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.8.0
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Ashish Maurya (Inactive) Assignee: WC Triage
Resolution: Low Priority Votes: 0
Labels: None

Epic/Theme: test
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

sanity_test_71 is run for demonstration purpose...

............
27083 pts/1    Ss     0:00  \_ bash
27096 pts/1    S      0:00  |   \_ sudo -s
27097 pts/1    S      0:00  |       \_ /bin/bash
22126 pts/1    S+     0:00  |           \_ sh sanity.sh      <<<  sanity_test_suite
23480 pts/1    S+     0:00  |               \_ sh sanity.sh      <<< test_71
23506 pts/1    S+     0:00  |               |   \_ sh rundbench -C -D /mnt/lustre/d71.sanity 2
23530 pts/1    S+     0:00  |               |       \_ dbench -c client.txt 2
23533 pts/1    R+     0:04  |               |           \_ dbench -c client.txt 2
23534 pts/1    R+     0:04  |               |           \_ dbench -c client.txt 2
23481 pts/1    S+     0:00  |               \_ tee -i /tmp/test_logs/1473851944/sanity.test_71.test_log.ashish-102.log
.........
[root@ashish-102 tests]# kill -15 22126
.........
23480 pts/1    S      0:00 sh sanity.sh    <<< test_71
23506 pts/1    S      0:00  \_ sh rundbench -C -D /mnt/lustre/d71.sanity 2
23530 pts/1    S      0:00      \_ dbench -c client.txt 2
23533 pts/1    R      0:30          \_ dbench -c client.txt 2
23534 pts/1    R      0:30          \_ dbench -c client.txt 2
23481 pts/1    S      0:00 tee -i /tmp/test_logs/1473851944/sanity.test_71.test_log.ashish-102.log
........
[root@ashish-102 tests]# kill -15 23480
........
23481 pts/1    S      0:00 tee -i /tmp/test_logs/1473851944/sanity.test_71.test_log.ashish-102.log
23506 pts/1    S      0:00 sh rundbench -C -D /mnt/lustre/d71.sanity 2
23530 pts/1    S      0:00  \_ dbench -c client.txt 2
23533 pts/1    R      0:53      \_ dbench -c client.txt 2
23534 pts/1    R      0:53      \_ dbench -c client.txt 2

test-framework does not handle child processes of the tests when the parent is terminated or killed.


Generated at Sat Feb 10 02:19:05 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.