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

Keep the populator pod on failure #637

Merged
merged 4 commits into from
Nov 12, 2023
Merged

Conversation

liranr23
Copy link
Member

This patch will keep the populator pod existence when failing. It won't restart or recreated. This is in the mind of aligning with v2v pod failure and the thought that once we fail, we will most likely keep failing. This change will allow to get the populator logs in case of failure in a easy way.

@liranr23 liranr23 requested a review from bennyz October 31, 2023 12:53
@liranr23 liranr23 requested a review from ahadas as a code owner October 31, 2023 12:53
This patch will keep the populator pod existence when failing. It won't
restart or recreated. This is in the mind of aligning with v2v pod
failure and the thought that once we fail, we will most likely keep
failing. This change will allow to get the populator logs in case of
failure in a easy way.

Signed-off-by: Liran Rotenberg <[email protected]>
@codecov
Copy link

codecov bot commented Oct 31, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

pkg/controller/plan/migration.go Outdated Show resolved Hide resolved
pkg/controller/plan/migration.go Outdated Show resolved Hide resolved
pkg/controller/plan/migration.go Show resolved Hide resolved
Signed-off-by: Liran Rotenberg <[email protected]>
pkg/controller/plan/migration.go Outdated Show resolved Hide resolved
pkg/lib-volume-populator/populator-machinery/controller.go Outdated Show resolved Hide resolved
pkg/lib-volume-populator/populator-machinery/controller.go Outdated Show resolved Hide resolved
pkg/lib-volume-populator/populator-machinery/controller.go Outdated Show resolved Hide resolved
pkg/controller/plan/migration.go Outdated Show resolved Hide resolved
@liranr23 liranr23 force-pushed the populator_logs branch 4 times, most recently from a2ae56e to 2d35602 Compare November 8, 2023 16:08
@liranr23 liranr23 requested a review from ahadas November 8, 2023 16:11
pkg/controller/plan/migration.go Outdated Show resolved Hide resolved
pkg/controller/plan/migration.go Outdated Show resolved Hide resolved
@liranr23 liranr23 force-pushed the populator_logs branch 2 times, most recently from 1565451 to d2b06af Compare November 12, 2023 16:02
Copy link
Member

@ahadas ahadas left a comment

Choose a reason for hiding this comment

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

looks good, minor comments

This change will count the number of restarts for the populator pod on
the destination PVC. That allows us to limit the number of recreations
of the pod. After 3 attempts, it will stop recreating it.

Signed-off-by: Liran Rotenberg <[email protected]>
Copy link

sonarcloud bot commented Nov 12, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
6.9% 6.9% Duplication

@ahadas ahadas merged commit 517ec46 into kubev2v:main Nov 12, 2023
10 checks passed
@liranr23 liranr23 deleted the populator_logs branch November 12, 2023 16:46
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