Skip to content

fix(run): warn when VM remainder is truncated in multi-role distribution#115

Merged
mrhillsman merged 1 commit into
mainfrom
fix/107-vm-remainder-distribution
May 28, 2026
Merged

fix(run): warn when VM remainder is truncated in multi-role distribution#115
mrhillsman merged 1 commit into
mainfrom
fix/107-vm-remainder-distribution

Conversation

@mrhillsman

@mrhillsman mrhillsman commented May 28, 2026

Copy link
Copy Markdown
Contributor

Integer division vmCount / len(roles) silently dropped remainder VMs.
Add a warning log with requested count, per-role count, and number of
dropped VMs so the truncation is visible to operators.

Resolves #107

@exe-prow-github-app
exe-prow-github-app Bot requested a review from OchiengEd May 28, 2026 14:51
@exe-prow-github-app

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mrhillsman

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@exe-prow-github-app exe-prow-github-app Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 28, 2026
@mrhillsman
mrhillsman removed the request for review from OchiengEd May 28, 2026 14:51
Integer division `vmCount / len(roles)` silently dropped remainder VMs.
Add a warning log with requested count, per-role count, and number of
dropped VMs so the truncation is visible to operators.

Resolves #107

Signed-off-by: Melvin Hillsman <mhillsma@redhat.com>
@mrhillsman
mrhillsman force-pushed the fix/107-vm-remainder-distribution branch from 2b8aa24 to 6a5ec39 Compare May 28, 2026 15:05
@mrhillsman mrhillsman changed the title fix(run): distribute remainder VMs across roles instead of truncating fix(run): warn when VM remainder is truncated in multi-role distribution May 28, 2026
@mrhillsman
mrhillsman merged commit cef97ce into main May 28, 2026
3 of 4 checks passed
@mrhillsman
mrhillsman deleted the fix/107-vm-remainder-distribution branch May 29, 2026 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Integer division truncation silently drops remainder VMs in multi-VM workloads

1 participant