Skip to content

kubevirt: Fix cluster volume replica reporting, skip not fully created. #5189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andrewd-zededa
Copy link
Contributor

@andrewd-zededa andrewd-zededa commented Aug 19, 2025

Description

KubeClusterInfo: skip replicas without ownerid,
inst mgr, and image, wait until creation completes.

Some failure modes can show temporarily large replica counts for replicas
which have not completed creation.

PR dependencies

None

How to test and validate this PR

  • Configure an HV=kubevirt EVE-OS node
  • Deploy one or more VM App Instances each containing 1 or more volumes instances
  • Verify controller shows no more than 3 replicas for the volume instance.

Changelog notes

None

PR Backports

TBD

Checklist

  • I've provided a proper description

  • I've added the proper documentation

  • I've tested my PR on amd64 device

  • I've tested my PR on arm64 device

  • I've written the test verification instructions

  • I've set the proper labels to this PR

  • I've checked the boxes above, or I've provided a good reason why I didn't
    check them.

KubeClusterInfo: skip replicas without ownerid,
	inst mgr, and image, wait until creation completes.

Signed-off-by: Andrew Durbin <[email protected]>
Copy link

@zedi-pramodh zedi-pramodh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but why is it a Draft PR ?

@andrewd-zededa
Copy link
Contributor Author

LGTM, but why is it a Draft PR ?

Just waiting for CI checks (yetus, ...) to complete successfully before marking ready for review.

@andrewd-zededa andrewd-zededa marked this pull request as ready for review August 19, 2025 19:25
@andrewd-zededa andrewd-zededa marked this pull request as draft August 19, 2025 19:26
@@ -147,6 +147,11 @@ func populateKVIFromPVCName(kvi *types.KubeVolumeInfo) (*types.KubeVolumeInfo, e
onlineReps := 0
consistentReps := 0
for _, lhReplica := range replicas.Items {
if (lhReplica.Status.OwnerID == "") && (lhReplica.Status.InstanceManagerName == "") && (lhReplica.Status.CurrentImage == "") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't you skip if any of these fields are missing? Or it's OK to have only some of them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants