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

Reserved storage size in the dashboard isn't useful #1105

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

votdev
Copy link
Member

@votdev votdev commented Aug 19, 2024

Summary

The displayed storage statistics in the Dashboard and Hosts page were incorrect. The calculation was incorrect and has been adapted to how it is done in Longhorn.

Related Issue #
harvester/harvester#6362

Occurred changes and/or fixed issues

  • Rename Reserved to Allocated.
  • Adapt the calculation of the values used to populate the gauge components.
  • Add properties to HardwareResourceGauge to be able to customize the titles.

Technical notes summary

The most important change was the calculation of the total storage which is done based on the formula ((maximum - reserved) * storageOverProvisioningPercentage)) / 100.

Screenshot/Video

Bildschirmfoto vom 2024-08-22 13-31-57

Bildschirmfoto vom 2024-08-22 13-32-31

Bildschirmfoto vom 2024-08-22 13-32-16

@votdev votdev added the Bug Fix Something isn't working label Aug 19, 2024
@votdev votdev self-assigned this Aug 19, 2024
@votdev votdev force-pushed the issue_6362_calc_reserved_storage branch 3 times, most recently from 10ffffb to 008d334 Compare August 21, 2024 10:20
... display allocated/scheduled storage instead.

Relates to: harvester/harvester#6362

Signed-off-by: Volker Theile <vtheile@suse.com>
@votdev votdev force-pushed the issue_6362_calc_reserved_storage branch from 008d334 to bc0a671 Compare August 22, 2024 11:31
@votdev votdev marked this pull request as ready for review August 22, 2024 11:44
Copy link
Collaborator

@a110605 a110605 left a comment

Choose a reason for hiding this comment

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

Test locally is good 👍
The storage used and allocated are the same as Longhorn UI.

@a110605
Copy link
Collaborator

a110605 commented Aug 23, 2024

@bk201 , do we want to include this fix in v1.3.2 release ? (The ticket is labelled v1.3.3)

@bk201
Copy link
Member

bk201 commented Aug 23, 2024

I'm open to this. If we manage to backport this before the release, we can consult the QA to use an external ui source for validation (if there is no 1.3.2-rc3)

@a110605 a110605 added the Require backport v1.3 This change require open backport PR to v1.3 label Aug 30, 2024
@a110605
Copy link
Collaborator

a110605 commented Sep 10, 2024

Hi @votdev, since v1.3.2 is released. We are good to merge and backport to harvester-release-v1.3 branch.

@abonillabeeche
Copy link

1.3.2 is out. It looks like this didn't make it. Can we put it in 1.4 now before it passes?

@tserong tserong added the Backport to v1.4 Backport PR target v1.4 label Sep 17, 2024
@tserong tserong merged commit ac87187 into harvester:master Sep 17, 2024
8 checks passed
@votdev votdev deleted the issue_6362_calc_reserved_storage branch September 23, 2024 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backport to v1.4 Backport PR target v1.4 Bug Fix Something isn't working Require backport v1.3 This change require open backport PR to v1.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants