Commit 84e7574
committed
CA-233915 turn post-op assertions that VM is "Running" into warnings
Most VM operations that change the power state of a VM include
assertions that the power state is indeed as expected after that
operation. Such a check can issue a false alarm in some cases and this
commit removes it from operations that change the power state to
"running" but still logs any unexpected power state:
start
unpause
reboot
resume
The problem was that the assertion was too naive when changing the
state into running: when a VM quickly changes its state once it is
running (e.g., by rebooting) the assertion can fail because it can be
too late and would find the VM not running as expected.
Assertions after operations that change the state not to running are
kept by this commit.
Signed-off-by: Christian Lindig <[email protected]>1 parent 0e5281b commit 84e7574
1 file changed
+18
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
31 | 45 | | |
32 | 46 | | |
33 | 47 | | |
| |||
2292 | 2306 | | |
2293 | 2307 | | |
2294 | 2308 | | |
2295 | | - | |
| 2309 | + | |
2296 | 2310 | | |
2297 | 2311 | | |
2298 | 2312 | | |
| |||
2452 | 2466 | | |
2453 | 2467 | | |
2454 | 2468 | | |
2455 | | - | |
| 2469 | + | |
2456 | 2470 | | |
2457 | 2471 | | |
2458 | 2472 | | |
| |||
2498 | 2512 | | |
2499 | 2513 | | |
2500 | 2514 | | |
2501 | | - | |
| 2515 | + | |
2502 | 2516 | | |
2503 | 2517 | | |
2504 | 2518 | | |
| |||
2626 | 2640 | | |
2627 | 2641 | | |
2628 | 2642 | | |
2629 | | - | |
| 2643 | + | |
2630 | 2644 | | |
2631 | 2645 | | |
2632 | 2646 | | |
| |||
0 commit comments