Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
MSG_process_sleep should intercept HostFailureException and report it accordingly
[simgrid.git] / teshsuite / msg / host_on_off_processes / host_on_off_processes.tesh
1
2 $ ${bindir}/host_on_off_processes ${platfdir}/small_platform.xml 1 --log=no_loc
3 > [Tremblay:test_launcher:(1) 0.000000] [msg_test/INFO] Test 1:
4 > [Tremblay:test_launcher:(1) 0.000000] [msg_test/INFO]   Create a process on Jupiter
5 > [Jupiter:process_daemon:(2) 0.000000] [msg_test/INFO]   Start daemon on Jupiter (76296000.000000)
6 > [Jupiter:process_daemon:(2) 0.000000] [msg_test/INFO]   Execute daemon
7 > [Jupiter:process_daemon:(2) 1.000000] [msg_test/INFO]   Execute daemon
8 > [Jupiter:process_daemon:(2) 2.000000] [msg_test/INFO]   Execute daemon
9 > [Tremblay:test_launcher:(1) 3.000000] [msg_test/INFO]   Turn off Jupiter
10 > [Jupiter:process_daemon:(2) 3.000000] [msg_test/INFO]   Execute daemon
11 > [Jupiter:process_daemon:(2) 3.000000] [msg_test/INFO] Host as died as expected, do nothing else
12 > [Tremblay:test_launcher:(1) 13.000000] [msg_test/INFO] Test 1 seems ok, cool !(#Processes: 1, it should be 1; #tasks: 4)
13 > [Tremblay:test_launcher:(1) 13.000000] [msg_test/INFO]   Test done. See you!
14 > [13.000000] [msg_test/INFO] Simulation time 13
15
16 $ ${bindir}/host_on_off_processes ${platfdir}/small_platform.xml 2 --log=no_loc
17 > [Tremblay:test_launcher:(1) 0.000000] [msg_test/INFO] Test 2:
18 > [Tremblay:test_launcher:(1) 0.000000] [msg_test/INFO]   Turn off Jupiter
19 > [0.000000] [simix_process/WARNING] Cannot launch process 'process_daemon' on failed host 'Jupiter'
20 > [Tremblay:test_launcher:(1) 10.000000] [msg_test/INFO]   Test 2 does not crash as it should (number of Process : 1, it should be 1)
21 > [Tremblay:test_launcher:(1) 10.000000] [msg_test/INFO]   Ok so let's turn on/off the node to see whether the process is correctly bound to Jupiter
22 > [Tremblay:test_launcher:(1) 10.000000] [msg_test/INFO]   Turn off
23 > [Tremblay:test_launcher:(1) 10.000000] [msg_test/INFO]   sleep
24 > [Tremblay:test_launcher:(1) 20.000000] [msg_test/INFO] number of Process : 1 it should be 1. The daemon that has been created for test2 has been correctly destroyed....ok at least it looks rigorous, cool ! You just have to disallow the possibility to create a new process on a node when the node is off.)
25 > [Tremblay:test_launcher:(1) 20.000000] [msg_test/INFO]   Test done. See you!
26 > [20.000000] [msg_test/INFO] Simulation time 20
27
28 $ ${bindir}/host_on_off_processes ${platfdir}/small_platform.xml 3 --log=no_loc
29 > [Tremblay:test_launcher:(1) 0.000000] [msg_test/INFO] Test 3:
30 > [Jupiter:process_sleep:(2) 0.000000] [msg_test/INFO]   I'm alive but I should sleep
31 > [Jupiter:process_sleep:(2) 10.000000] [msg_test/INFO]   I'm alive but I should sleep
32 > [Jupiter:process_sleep:(2) 20.000000] [msg_test/INFO]   I'm alive but I should sleep
33 > [Jupiter:process_sleep:(2) 30.000000] [msg_test/INFO]   I'm alive but I should sleep
34 > [Jupiter:process_sleep:(2) 40.000000] [msg_test/INFO]   I'm alive but I should sleep
35 > [Jupiter:process_sleep:(2) 50.000000] [msg_test/INFO]   I'm alive but I should sleep
36 > [Jupiter:process_sleep:(2) 60.000000] [msg_test/INFO]   I'm alive but I should sleep
37 > [Jupiter:process_sleep:(2) 70.000000] [msg_test/INFO]   I'm alive but I should sleep
38 > [Jupiter:process_sleep:(2) 80.000000] [msg_test/INFO]   I'm alive but I should sleep
39 > [Jupiter:process_sleep:(2) 90.000000] [msg_test/INFO]   I'm alive but I should sleep
40 > [Tremblay:test_launcher:(1) 100.000000] [msg_test/INFO]   Turn off
41 > [Jupiter:process_sleep:(2) 100.000000] [msg_test/INFO]   I'm alive but I should sleep
42 > [Tremblay:test_launcher:(1) 100.000000] [msg_test/INFO]   sleep for 10 seconds
43 > [Jupiter:process_sleep:(2) 100.000000] [msg_test/INFO] Host as died as expected, do nothing else
44 > [Tremblay:test_launcher:(1) 10100.000000] [msg_test/INFO] number of Process : 1 it should be 1 (i.e. the Test one))
45 > [Tremblay:test_launcher:(1) 10100.000000] [msg_test/INFO]   Test done. See you!
46 > [10100.000000] [msg_test/INFO] Simulation time 10100
47
48 $ ${bindir}/host_on_off_processes ${platfdir}/small_platform.xml 4 --log=no_loc
49 > [Tremblay:test_launcher:(1) 0.000000] [msg_test/INFO] Test 4 (turn off src during a communication) : Create a Process/task to make a communication between Jupiter and Tremblay and turn off Jupiter during the communication
50 > [Tremblay:commRX:(2) 10.000000] [msg_test/INFO]   Start RX
51 > [Jupiter:commTX:(3) 10.000000] [msg_test/INFO]   Start TX
52 > [Tremblay:test_launcher:(1) 10.000000] [msg_test/INFO]   number of processes: 3
53 > [Tremblay:test_launcher:(1) 20.000000] [msg_test/INFO]   Turn Jupiter off
54 > [Tremblay:test_launcher:(1) 20.000000] [msg_test/INFO] Test 4 is ok.  (number of Process : 2, it should be 1 or 2 if RX has not been satisfied). An exception is raised when we turn off a node that has a process sleeping
55 > [Tremblay:test_launcher:(1) 20.000000] [msg_test/INFO]   Test done. See you!
56 > [Jupiter:commTX:(3) 20.000000] [msg_test/INFO] The host has died ... as expected.
57 > [Jupiter:commTX:(3) 20.000000] [msg_test/INFO]   TX done
58 > [Tremblay:commRX:(2) 20.000000] [msg_test/INFO]   Receive message: TRANSFER_FAILURE
59 > [Tremblay:commRX:(2) 20.000000] [msg_test/INFO]   RX Done
60 > [20.000000] [msg_test/INFO] Simulation time 20
61
62 $ ${bindir}/host_on_off_processes ${platfdir}/small_platform.xml 5 --log=no_loc
63 > [Tremblay:test_launcher:(1) 0.000000] [msg_test/INFO] Test 5 (turn off dest during a communication : Create a Process/task to make a communication between Tremblay and Jupiter and turn off Jupiter during the communication
64 > [Jupiter:commRX:(2) 10.000000] [msg_test/INFO]   Start RX
65 > [Tremblay:commTX:(3) 10.000000] [msg_test/INFO]   Start TX
66 > [Tremblay:test_launcher:(1) 10.000000] [msg_test/INFO]   number of processes: 3
67 > [Tremblay:test_launcher:(1) 20.000000] [msg_test/INFO]   Turn Jupiter off
68 > [Tremblay:test_launcher:(1) 20.000000] [msg_test/INFO] Test 5 seems ok (number of Process: 2, it should be 2)
69 > [Tremblay:test_launcher:(1) 20.000000] [msg_test/INFO]   Test done. See you!
70 > [Jupiter:commRX:(2) 20.000000] [msg_test/INFO]   Receive message: HOST_FAILURE
71 > [Jupiter:commRX:(2) 20.000000] [msg_test/INFO]   RX Done
72 > [Tremblay:commTX:(3) 40.000000] [msg_test/INFO]   TX done
73 > [40.000000] [msg_test/INFO] Simulation time 40
74
75 $ ${bindir}/host_on_off_processes ${platfdir}/small_platform.xml 6 --log=no_loc
76 > [Tremblay:test_launcher:(1) 0.000000] [msg_test/INFO] Test 6: Turn on Jupiter, assign a VM on Jupiter, launch a process inside the VM, and turn off the node
77 > [vm0:process_daemon:(2) 0.000000] [msg_test/INFO]   Start daemon on vm0 (76296000.000000)
78 > [vm0:process_daemon:(2) 0.000000] [msg_test/INFO]   Execute daemon
79 > [Jupiter:process_daemonJUPI:(3) 0.000000] [msg_test/INFO]   Start daemon on Jupiter (76296000.000000)
80 > [Jupiter:process_daemonJUPI:(3) 0.000000] [msg_test/INFO]   Execute daemon
81 > [Jupiter:process_daemonJUPI:(3) 1.000001] [msg_test/INFO]   Execute daemon
82 > [Jupiter:process_daemonJUPI:(3) 2.000002] [msg_test/INFO]   Execute daemon
83 > [Jupiter:process_daemonJUPI:(3) 3.000004] [msg_test/INFO]   Execute daemon
84 > [Jupiter:process_daemonJUPI:(3) 4.000005] [msg_test/INFO]   Execute daemon
85 > [Jupiter:process_daemonJUPI:(3) 5.000006] [msg_test/INFO]   Execute daemon
86 > [Jupiter:process_daemonJUPI:(3) 6.000007] [msg_test/INFO]   Execute daemon
87 > [Jupiter:process_daemonJUPI:(3) 7.000008] [msg_test/INFO]   Execute daemon
88 > [Jupiter:process_daemonJUPI:(3) 8.000009] [msg_test/INFO]   Execute daemon
89 > [Jupiter:process_daemonJUPI:(3) 9.000011] [msg_test/INFO]   Execute daemon
90 > [Tremblay:test_launcher:(1) 10.000000] [msg_test/INFO]   Turn Jupiter off
91 > [Tremblay:test_launcher:(1) 10.000000] [msg_test/INFO]   Shutdown vm0
92 > [Jupiter:process_daemonJUPI:(3) 10.000000] [msg_test/INFO] Host as died as expected, do nothing else
93 > [Tremblay:test_launcher:(1) 10.000000] [msg_test/INFO]   Destroy vm0
94 > [Tremblay:test_launcher:(1) 10.000000] [msg_test/INFO] Test 6 is also weird: when the node Jupiter is turned off once again, the VM and its daemon are not killed. However, the issue regarding the shutdown of hosted VMs can be seen a feature not a bug ;)
95 > [Tremblay:test_launcher:(1) 10.000000] [msg_test/INFO]   Test done. See you!
96 > [10.000000] [msg_test/INFO] Simulation time 10