Skip to content

Commit

Permalink
Fix: schedulerd: Improve internal bundle ordering
Browse files Browse the repository at this point in the history
If the remote resource is scheduled to stop, we should at least wait to
know the state of the underlying container resource before executing it.

Otherwise we may end up needlessly tearing it down just because someone
ran a cleanup on the container.
  • Loading branch information
beekhof committed Oct 12, 2018
1 parent ebbae86 commit 407f524
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions daemons/schedulerd/sched_bundle.c
Expand Up @@ -267,6 +267,7 @@ container_internal_constraints(resource_t * rsc, pe_working_set_t * data_set)
order_start_start(rsc, tuple->docker, pe_order_runnable_left | pe_order_implies_first_printed);

if(tuple->child) {
new_rsc_order(tuple->docker, RSC_STATUS, tuple->remote, RSC_STOP, pe_order_optional, data_set);
order_stop_stop(rsc, tuple->child, pe_order_implies_first_printed);
}
order_stop_stop(rsc, tuple->docker, pe_order_implies_first_printed);
Expand Down

0 comments on commit 407f524

Please sign in to comment.