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

Fix test_disk_eviction_with_node_level_soft_anti_affinity_disabled #1607

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

ejweber
Copy link
Contributor

@ejweber ejweber commented Nov 29, 2023

longhorn/longhorn#7210

The node controller refuses to update a node until its disk monitor has synced. In v1.6.0, the node controller is responsible for triggering replica eviction. This means it may take longer for replica eviction to start than it did in the past. In the long term, we may want to try to tighten up this timing again, but unfortunately, there is no obvious and easy way to do so.

test_disk_eviction_with_node_level_soft_anti_affinity_disabled is currently failing because it does not wait long enough for a replica to be evicted from one disk before checking for it on another. This PR ensures the eviction process has started before proceeding to do the check.

Longhorn 7210

Signed-off-by: Eric Weber <eric.weber@suse.com>
@ejweber
Copy link
Contributor Author

ejweber commented Nov 29, 2023

@ejweber
Copy link
Contributor Author

ejweber commented Dec 8, 2023

I initially requested @roger-ryao's review because he raised the associated issue. I am fine with merging based on @khushboo-rancher's review if that's more convenient, however.

Copy link
Contributor

@roger-ryao roger-ryao left a comment

Choose a reason for hiding this comment

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

LGTM

@roger-ryao roger-ryao merged commit 6b789f9 into longhorn:master Dec 15, 2023
3 checks passed
@roger-ryao roger-ryao assigned roger-ryao and ejweber and unassigned roger-ryao Dec 15, 2023
@ejweber
Copy link
Contributor Author

ejweber commented Jan 16, 2024

@mergify backport v1.5.x

Copy link

mergify bot commented Jan 16, 2024

backport v1.5.x

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Jan 16, 2024
…1607)

Longhorn 7210

Signed-off-by: Eric Weber <eric.weber@suse.com>
(cherry picked from commit 6b789f9)
ejweber added a commit that referenced this pull request Jan 16, 2024
…1607)

Longhorn 7210

Signed-off-by: Eric Weber <eric.weber@suse.com>
(cherry picked from commit 6b789f9)
PhanLe1010 pushed a commit that referenced this pull request Jan 20, 2024
…1607)

Longhorn 7210

Signed-off-by: Eric Weber <eric.weber@suse.com>
(cherry picked from commit 6b789f9)
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