Skip to content
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

Bug 2064336: Fix log collection of virtv2v pods with long names #52

Merged
merged 1 commit into from Jul 8, 2022

Conversation

mansam
Copy link
Collaborator

@mansam mansam commented Jul 7, 2022

Virtv2v pods are named based on the plan name and VM id. If the plan and VM id are too long, the name of the pod will be truncated and not contain the entire plan or VM id. Targeted log collection will fail for such a pod, as the collection script attempts to grep for the entire VM id in the pod name.

Because the collection script already filters for pods based on the vmID label, this additional grep for the VM id in the pod name should be redundant. Removing it allows the pod to be found and logs collected.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2064336

Virtv2v pods are named based on the plan name and VM id. If
the plan and VM id are too long, the name of the pod will be
truncated and not contain the entire plan or VM id. Targeted
log collection will fail for such a pod, as the collection
script attempts to grep for the entire VM id in the pod name.

Because the collection script already filters for pods based
on the vmID label, this additional grep for the VM id in the
pod name should be redundant. Removing it allows the pod to be
found and logs collected.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2064336
@mansam mansam changed the title Fix log collection of virtv2v pods with long names Bug 2064336: Fix log collection of virtv2v pods with long names Jul 7, 2022
@github-actions
Copy link

github-actions bot commented Jul 7, 2022

Bug was not moved to POST but was valid. Something went wrong

Copy link

@jortel jortel left a comment

Choose a reason for hiding this comment

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

LGTM

@mansam mansam merged commit bdaeed5 into kubev2v:main Jul 8, 2022
2 of 3 checks passed
jortel added a commit that referenced this pull request Jul 11, 2022
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.

None yet

2 participants