Description of problem: There are 2 reports desired for a use case around accounting for software license/subscription usage. 1) Show a count of all images in use per OpenShift project and their count of pods per image. (Or more simply, just list all pods and their associated image per project) 2) Show a count of all images in use per OpenShift node. (Or more simply, list pods and their associated imaged being run per node) In reports it is not possible to show a link between a pod and the image that it is running. If you create a report and base it off of Projects, there is no way to select images. The same is true if you base a report off of pods or containers. The below bugzilla is similar, but not entirely the same: https://bugzilla.redhat.com/show_bug.cgi?id=1297036 Version-Release number of selected component (if applicable): CF 4.1 GA
(In reply to Jon Jozwiak from comment #0) > 2) Show a count of all images in use per OpenShift node. (Or more simply, > list pods and their associated imaged being run per node) Jon can you clarify better why you need that? ("count of all images in use per OpenShift node") I'd understand an ask of "show a count of pods per OpenShift node", why instead you're focusing on images? Thanks.
It could also be a count of pods per node running a specific image. The desire is for license or subscription-based products a customer can get a count of the nodes running a software (based on the image deployed). They can then use that to understand how many physical systems are running that software for license compliance.
Jon can you check if the screenshots here are satisfying the request of this BZ? https://github.com/ManageIQ/manageiq/pull/10262 Thanks.
I've provided some additional detail in PR10262 asking for: 1) In the first screen shot, sort/count on image used per project vs count on all pods per project 2) On the second report, we should include image per pod. And sort/count per image per node image.
(In reply to Jon Jozwiak from comment #6) > I've provided some additional detail in PR10262 asking for: > > 1) In the first screen shot, sort/count on image used per project vs count > on all pods per project > 2) On the second report, we should include image per pod. And sort/count per > image per node image. Jon the discussion on the PR developed and it seems that without changes at the core of ManageIQ this is the best we can have at the moment: https://github.com/ManageIQ/manageiq/pull/10262 given that in your initial description you said: - ...Or more simply, just list all pods and their associated image per project - ...Or more simply, list pods and their associated imaged being run per node Would it be enough what we deliver in that PR?
Currently the report looks like: Project Name Image Name Pod Name default openshift3/jenkins-1-rhel7 jenkins-1-kv4ri default openshift3/jenkins-1-rhel7 jenkins-1-sss3s default openshift3/jenkins-1-rhel7 jenkins-1-mi14x default openshift3/jenkins-1-rhel7 jenkins-1-gfvkt default openshift3/jenkins-1-rhel7 jenkins-1-7822c default openshift3/jenkins-1-rhel7 jenkins-1-1d6s7 default openshift3/jenkins-1-rhel7 jenkins-1-vj9g6 default openshift3/jenkins-1-rhel7 jenkins-1-kyhrs default openshift3/jenkins-1-rhel7 jenkins-1-7lsio default openshift3/jenkins-1-rhel7 jenkins-1-7lf4h default openshift3/jenkins-1-rhel7 jenkins-1-748il Name: default | Count: 11 management-infra openshift3/image-inspector manageiq-img-scan-f49b1 management-infra openshift3/image-inspector manageiq-img-scan-ea561 management-infra openshift3/image-inspector manageiq-img-scan-b7b91 management-infra openshift3/image-inspector manageiq-img-scan-a306f management-infra openshift3/image-inspector manageiq-img-scan-9ac62 management-infra openshift3/image-inspector manageiq-img-scan-9abd5 management-infra openshift3/image-inspector manageiq-img-scan-991bc It seems to contain much of duplicate information. The Project name and Image name is duplicated all over the place. I think it could be stated only once. Also the pagination caused the footer of the management-infra project summary to remain in the next page which is quite inconvenient. I think there should be some indication of continuation of the table -- for example "...", or something like that.
New commit detected on ManageIQ/manageiq/euwe: https://github.com/ManageIQ/manageiq/commit/3f840ef85eb45c7e6b7381f350de4b2259129199 commit 3f840ef85eb45c7e6b7381f350de4b2259129199 Author: Oleg Barenboim <chessbyte> AuthorDate: Tue Nov 8 16:42:59 2016 -0500 Commit: Oleg Barenboim <chessbyte> CommitDate: Tue Nov 8 16:43:29 2016 -0500 Merge pull request #12327 from zeari/hide_chargeback_container_project Hide chargeback container image reports (cherry picked from commit 73a2aebb3c9c6876f76c06246e77ddcf3012156e) https://bugzilla.redhat.com/show_bug.cgi?id=1357515 lib/miq_expression.rb | 1 - 1 file changed, 1 deletion(-)
https://github.com/ManageIQ/manageiq/pull/12728
Jaroslav, this is the best we can do right now with these types of reports. For additional generic features like having 'indication of continuation of the table' we should open separate bz's and examine them there. Federico\jon, Can we move this to post?
It looks broken. It seems it is doing a Cartesian product. project x project images x pods It is visible even on the https://cloud.githubusercontent.com/assets/11256940/17407436/eec5d154-5a6f-11e6-8736-b4ed04656026.png from one of the PRs (as well as on my latest CFME). There is no way that management-metrics or docker registry would be runnning from haproxy-router which (IIUC) the linked picture shows.
Jaroslav, you're correct. Zahi and I looked at this and we couldn't find a solution that presents the requested data correctly with the current reporting mechanism. We might have to remove this report entirely.
https://github.com/ManageIQ/manageiq/pull/14421
https://github.com/ManageIQ/manageiq/pull/15237
(In reply to CFME Bot from comment #20) > https://github.com/ManageIQ/manageiq/pull/15237 Libor I have the feeling that this PR is not related. Is it a Bot bug or was this BZ mentioned there somehow?
Federico, yes it was accidentally added by the Bot(I had in PR some unwanted commits), the PR https://github.com/ManageIQ/manageiq/pull/15237 is not related to this BZ
This bug has been open for more than a year and is assigned to an older release of CloudForms. If you would like to keep this Bugzilla open and if the issue is still present in the latest version of the product, please file a new Bugzilla which will be added and assigned to the latest release of CloudForms.