Re: [PATCH ha-manager v3 32/40] test: add dynamic usage scheduler test cases

Dominik Rusovac
2026-03-31T08:20:33Z

lgtm, consider this

On Mon Mar 30, 2026 at 4:30 PM CEST, Daniel Kral wrote:
> These test cases document the basic behavior of the scheduler using the
> dynamic usage information of the HA resources with rebalance-on-start
> being cleared and set respectively.
>
> As the mechanisms for the scheduler with static and dynamic usage
> information are mostly the same, these test cases verify only the
> essential parts, which are:
>
> - dynamic usage information is used correctly (for both test cases), and
> - repeatedly scheduling resources with score_nodes_to_start_service(...)
> correctly simulates that the previously scheduled HA resources are
> already started
>
> Signed-off-by: Daniel Kral <d.kral@proxmox.com>
> ---
> changes v2 -> v3:
> - adapt the test-crs-dynamic-rebalance1 test case to correctly handle
> the change in score_nodes_to_start_resource() as done by changing how
> $running is set in add_service_usage() a few patches prior
>

[snip]