Description of problem: Currently container chargeback can only be done based on project. This RFE is requesting to add the ability to do chargeback reporting for containers based on tag. The use case from the customer is that they would like to show back costs to their internal businesses. Each business will have 1 to many projects. They will tag projects to the business unit they belong to. Then would like to report a cost to the business unit based on all the projects they ran. Overall they would like to be able to charge back based on number and allocated sizes of pods by a customer for a given time interval.
(In reply to Jon Jozwiak from comment #0) > Overall they would like to be able to charge back based on number and > allocated sizes of pods by a customer for a given time interval. Jon can you clarify this requirement? What are the allocated sizes of a pod? Are you referring to the pod limitranges? http://kubernetes.io/docs/admin/limitrange/ or the container limits/requests: http://kubernetes.io/docs/user-guide/compute-resources/ or both? If this part is less important we can tackle the rest and leave this to be analyzed in a second step.
I followed up with the customer and it is actually chargeback by allocated size of a project. They are using resource quotas as described here: https://docs.openshift.com/enterprise/3.1/dev_guide/quota.html They will implement small, medium, and large quotas and then chargeback a different amount based on size of the project.
(In reply to Jon Jozwiak from comment #5) > I followed up with the customer and it is actually chargeback by allocated > size of a project. They are using resource quotas as described here: > > https://docs.openshift.com/enterprise/3.1/dev_guide/quota.html > > They will implement small, medium, and large quotas and then chargeback a > different amount based on size of the project. Jon I split out this requirement to bug 1362615.
Ari, I think we have PR for this right? Can you leave the link here?
Upstream PR: https://github.com/ManageIQ/manageiq/pull/10671
Additional PR's that must go in: https://github.com/ManageIQ/manageiq/pull/10788 https://github.com/ManageIQ/manageiq/pull/10784
This should be posted right?
More necessary PRs https://github.com/ManageIQ/manageiq/pull/10784 https://github.com/ManageIQ/manageiq/pull/10788
https://github.com/ManageIQ/manageiq/pull/11010 Fixes this feature for VMs and its merged upstream
Verified. As per RFE: It is now possible to generate chargeback reports based on tags that are assigned to projects.