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

Display AutoEvicting on Node tab while auto evicting #663

Merged
merged 2 commits into from
Dec 26, 2023

Conversation

ejweber
Copy link
Contributor

@ejweber ejweber commented Nov 13, 2023

longhorn/longhorn#2238

I originally considered also making AutoEvicting be a separate status from Unschedulable on the Dashboard, but this was too granular of a distinction in my opinion (and the opinion of a couple others I talked to). A user will probably only have one (or a small number) of auto evicting nodes at a time, and the Node tab is a good place to quickly identify it/them.

2238 Demo

@ejweber ejweber requested a review from a team as a code owner November 13, 2023 19:01
@ejweber
Copy link
Contributor Author

ejweber commented Nov 13, 2023

As part of this PR, I reworked a few comments that I previously found confusing.

@votdev
Copy link
Contributor

votdev commented Nov 20, 2023

Testing is currently blocked because of conflicts in longhorn/longhorn-manager#2138.

@ejweber
Copy link
Contributor Author

ejweber commented Nov 20, 2023

Testing is currently blocked because of conflicts in longhorn/longhorn-manager#2138.

Conflicts are resolved for now, but I think it is fine to wait until those changes are actually in master to review this one. I can ping you when it is appropriate @votdev.

@ejweber
Copy link
Contributor Author

ejweber commented Nov 27, 2023

This one should be testable with components off of the master branches now @votdev.

@m-ildefons
Copy link
Contributor

I attempted to test this, by deploying a build of the current master branch of the longhorn manager using the master branch of the chart. However I found that the drained node is displayed as "unschedulable" rather than "auto evicting" both during eviction and after.
In addition to that, I noticed that the display color of the "unschedulable" status is grey for the disk and yellow for the node.
Am I possibly doing something wrong during testing this?

longhorn-auto-evict.mp4

@ejweber
Copy link
Contributor Author

ejweber commented Dec 5, 2023

It took me a minute, but I recognized the problem, @m-ildefons. You don't actually have any replicas scheduled to your nodes in the attached video. We only display AutoEvicting as long as we are actively evicting replicas. Once we are done, we revert back to Unschedulable.

See https://github.com/longhorn/longhorn/blob/6ad473c1b68da13da8337489eefcc5cab26dd891/enhancements/20230905-automatically-evict-replicas-while-draining.md?plain=1#L203-L221 for a complete test case that will demonstrate the new UI behavior.

@ejweber
Copy link
Contributor Author

ejweber commented Dec 5, 2023

In addition to that, I noticed that the display color of the "unschedulable" status is grey for the disk and yellow for the node.

This is not a regression, though I'm not sure whether or not it was originally intended. In https://github.com/longhorn/longhorn-ui/pull/270/files, @smallteeths added:

if (node.conditions && node.conditions.Schedulable && node.conditions.Schedulable.status && node.conditions.Schedulable.status.toLowerCase() === 'false') {
return (<span className="disabled">Unschedulable</span>)
}

While it sets the text to Unschedulable under these circumstances, it uses the disabled className, causing the gray text.

There is no discussion of this in that PR. I will go ahead and fix it to be yellow unless you disagree?

@ejweber
Copy link
Contributor Author

ejweber commented Dec 8, 2023

Welcome to the team @scures! Could you review this one when you get a chance?

Copy link
Contributor

@votdev votdev left a comment

Choose a reason for hiding this comment

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

LGTM

Peek 2023-12-12 16-02

@ejweber
Copy link
Contributor Author

ejweber commented Dec 18, 2023

@longhorn/dev-ui

We need to get this one merged if possible so we can transition longhorn/longhorn#2238 to Ready For Testing for the upcoming v1.6.0 release.

Longhorn 2238

Signed-off-by: Eric Weber <eric.weber@suse.com>
Longhorn 2238

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

@innobead innobead left a comment

Choose a reason for hiding this comment

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

LGTM

@ejweber
Copy link
Contributor Author

ejweber commented Jan 11, 2024

@mergify backport v1.5.x

Copy link

mergify bot commented Jan 11, 2024

backport v1.5.x

✅ Backports have been created

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.

4 participants