Commit eba8dec
authored
[JUJU-3583] wait_for_idle to not block when enough units are ready (#840)
* Fix wait_for_units flag to not block when enough units ready
wait_for_idle will keep waiting if there are less number of units
available than requested (via the wait_for_units flag). However, if
there are already a number of units in a desired status ready to go,
more than (or equal to) wait_for_units, then it shouldn't block until
other not-yet-available units to get into that desired state as well.
fixes #837
* Add integration test for wait_for_units in wait_for_idle1 parent 4a96306 commit eba8dec
2 files changed
Lines changed: 40 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2457 | 2457 | | |
2458 | 2458 | | |
2459 | 2459 | | |
| 2460 | + | |
2460 | 2461 | | |
2461 | 2462 | | |
2462 | 2463 | | |
| |||
2478 | 2479 | | |
2479 | 2480 | | |
2480 | 2481 | | |
| 2482 | + | |
| 2483 | + | |
| 2484 | + | |
2481 | 2485 | | |
2482 | 2486 | | |
2483 | 2487 | | |
| |||
2490 | 2494 | | |
2491 | 2495 | | |
2492 | 2496 | | |
| 2497 | + | |
2493 | 2498 | | |
2494 | 2499 | | |
2495 | 2500 | | |
2496 | 2501 | | |
2497 | 2502 | | |
| 2503 | + | |
2498 | 2504 | | |
2499 | 2505 | | |
2500 | 2506 | | |
2501 | 2507 | | |
| 2508 | + | |
| 2509 | + | |
| 2510 | + | |
2502 | 2511 | | |
2503 | 2512 | | |
2504 | 2513 | | |
| |||
2512 | 2521 | | |
2513 | 2522 | | |
2514 | 2523 | | |
2515 | | - | |
2516 | | - | |
| 2524 | + | |
| 2525 | + | |
| 2526 | + | |
| 2527 | + | |
| 2528 | + | |
| 2529 | + | |
| 2530 | + | |
| 2531 | + | |
2517 | 2532 | | |
2518 | 2533 | | |
| 2534 | + | |
2519 | 2535 | | |
2520 | 2536 | | |
2521 | 2537 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
774 | 774 | | |
775 | 775 | | |
776 | 776 | | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
777 | 799 | | |
778 | 800 | | |
779 | 801 | | |
| |||
0 commit comments