-
Notifications
You must be signed in to change notification settings - Fork 125
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
Add requests and limits to Persistent Volume Claim #74
Conversation
Checked commit zakiva@fbb610d with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
@zakiva can you reference the relevant BZ in the description? I wonder if indeed we want to model that now. |
I didn't find a relevant BZ for that (maybe @Loicavenel knows if we have one). |
@simon3z Do you want to merge this before the freeze? |
@Loicavenel yes. the values we are collecting now might not be the correct values to use for chargeback with storage. |
@zeari can you be more explicite? We do have PV and the Size... this is fixed.. how it can be wrong? |
@Loicavenel The claim can have 3 different values related to the storage size:
We currently persist only the first one, this PR adds the other two. |
The capacity we are currently listing is the size of PV that was assigned to a pod\project instead of how much the claim asked for. If you request 1GB volume, you might be assigned a 2GB volume since that is the volume closest to the size to what you ask. So the size we know about would be 2GB instead if what was actually requested. |
@zeari so, Openshift is rounding up to the closest higher GB? |
The process AFAIK
|
I look in the doc here: https://docs.openshift.com/container-platform/3.5/dev_guide/compute_resources.html.. I don't see anything in Limits regarding PV storage. But I see it in Quota... requests.storage. |
These limits/quotas are in project level (summary of resources used in the project). The requested storage in this PR is per specific Persistent Volume Claim which represents a specific user request for storage, e.g. one pod needs 1GB. |
@Fryguy PTAL |
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1508372
Related PRs: ManageIQ/manageiq-providers-kubernetes#116, ManageIQ/manageiq#16026
@miq-bot add_label enhancement
@simon3z @zeari Please review