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

Ensuring check the actual new pod got migrated #44

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

nsilla
Copy link
Collaborator

@nsilla nsilla commented Dec 21, 2023

In order to test the pod migration when the current node is cordoned, we get the list of running pods and cordon the node for the first pod in the list.

Once the pod is migrated, we get the new list and verify the node for the first pod has changed.

The problem is the first pod in the new list is not necessarily the new pod and, even more, it may be more than one pod were running on the cordoned node which may lead us to think the node was not migrated.

With this change, we ensure we check the node for the new (migrated) pod in the replica set.

@nsilla nsilla self-assigned this Dec 21, 2023
@nsilla nsilla marked this pull request as draft December 21, 2023 14:42
Copy link
Collaborator

@ramperher ramperher left a comment

Choose a reason for hiding this comment

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

LGTM

@nsilla nsilla marked this pull request as ready for review January 2, 2024 12:12
@ramperher
Copy link
Collaborator

CC @betoredhat , this is the change I was commenting in the daily jobs regarding the example-cnf issue, @nsilla is off till Monday

In order to test the pod migration when the current node is cordoned, we
get the list of running pods and cordon the node for the first pod in
the list.

Once the pod is migrated, we get the new list and verify the node for
the first pod has changed.

The problem is the first pod in the new list is not necessarily the new
pod and, even more, it may be more than one pod were running on the
cordoned node which may lead us to think the node was not migrated.

With this change, we ensure we check the node for the new (migrated) pod
in the replica set.
Copy link
Collaborator

@betoredhat betoredhat left a comment

Choose a reason for hiding this comment

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

LGTM

@tkrishtop tkrishtop merged commit 4942abd into master Jan 10, 2024
@tkrishtop tkrishtop deleted the testpmd_pod_delete branch January 10, 2024 15:47
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

6 participants