Commit c059a59
authored
fix(charm): check image readiness before starting runner manager service (#777)
Several event handlers (_on_upgrade_charm, _on_planner_relation_changed,
_on_planner_relation_broken) called _reconcile() without first checking
image readiness. This caused the runner manager service to start with
empty runner combinations, erroring with "No runner combinations
configured" instead of setting the charm to blocked/waiting status.
Move _check_image_ready() into _reconcile() so all code paths that
start the service are covered, and remove the now-redundant calls
from individual handlers.1 parent 1c08b2d commit c059a59
3 files changed
+42
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
358 | | - | |
359 | 357 | | |
360 | 358 | | |
361 | 359 | | |
| |||
389 | 387 | | |
390 | 388 | | |
391 | 389 | | |
| 390 | + | |
392 | 391 | | |
393 | 392 | | |
394 | 393 | | |
| |||
475 | 474 | | |
476 | 475 | | |
477 | 476 | | |
478 | | - | |
479 | | - | |
480 | 477 | | |
481 | 478 | | |
482 | 479 | | |
| |||
498 | 495 | | |
499 | 496 | | |
500 | 497 | | |
501 | | - | |
502 | | - | |
503 | 498 | | |
504 | 499 | | |
505 | 500 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
605 | 605 | | |
606 | 606 | | |
607 | 607 | | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
608 | 644 | | |
609 | 645 | | |
610 | 646 | | |
| |||
686 | 722 | | |
687 | 723 | | |
688 | 724 | | |
| 725 | + | |
689 | 726 | | |
690 | 727 | | |
691 | 728 | | |
| |||
0 commit comments