-
Notifications
You must be signed in to change notification settings - Fork 72
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
Conversation
As part of this PR, I reworked a few comments that I previously found confusing. |
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. |
This one should be testable with components off of the master branches now @votdev. |
I attempted to test this, by deploying a build of the current longhorn-auto-evict.mp4 |
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. |
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: longhorn-ui/src/routes/host/DiskList.js Lines 16 to 18 in 3b15475
While it sets the text to There is no discussion of this in that PR. I will go ahead and fix it to be yellow unless you disagree? |
0238478
to
767c345
Compare
Welcome to the team @scures! Could you review this one when you get a chance? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@longhorn/dev-ui We need to get this one merged if possible so we can transition longhorn/longhorn#2238 to |
Longhorn 2238 Signed-off-by: Eric Weber <eric.weber@suse.com>
Longhorn 2238 Signed-off-by: Eric Weber <eric.weber@suse.com>
767c345
to
bc6eb51
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@mergify backport v1.5.x |
✅ Backports have been created
|
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.