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

Metrics Cleanup: Fix pvc allocated space reporting and pvc size at creation time. #416

Conversation

andrewd-zededa
Copy link
Collaborator

@andrewd-zededa andrewd-zededa commented Jan 2, 2025

Allocated space is only available from lh volume object status.
PVC should be created with app inst vol defined size not img.
Set FileLocation in Populate() so its published automatically.
Fix missing VolumeStatus after modifying in volumemgr/AppDiskMetrics.

Shorter timeout set in k8s api calls for metrics path.

@andrewd-zededa
Copy link
Collaborator Author

Will set 'ready for review' once my latest eve update completes test

@andrewd-zededa andrewd-zededa marked this pull request as ready for review January 2, 2025 23:56
Allocated space is only available from lh volume object status.
PVC should be created with app inst vol defined size not img.
Set FileLocation in Populate() so its published automatically.
Fix missing VolumeStatus after modifying in volumemgr/AppDiskMetrics.

Signed-off-by: Andrew Durbin <[email protected]>
@andrewd-zededa andrewd-zededa force-pushed the csi-handler-details-allocatedSpace branch from 5399dfd to 7ca4294 Compare January 3, 2025 00:14
@andrewd-zededa
Copy link
Collaborator Author

Latest push just removed the commented out block of code in RolloutDiskToPVC

Copy link
Collaborator

@zedi-pramodh zedi-pramodh left a comment

Choose a reason for hiding this comment

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

LGTM

@zedi-pramodh
Copy link
Collaborator

How did the testing go ?

@andrewd-zededa
Copy link
Collaborator Author

@zedi-pramodh app instance metrics look stable now and show proper thin allocation percentages.

@zedi-pramodh
Copy link
Collaborator

Great I will merge it then.

@zedi-pramodh zedi-pramodh merged commit 1b46a77 into naiming-zededa:poc-oct03-2024 Jan 3, 2025
5 of 6 checks passed
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.

2 participants