Description of problem: OpenShift 'Projects' based report 'Pods: Deleted On' attribute is empty, however 'Pods' based report 'Deleted On' contains the expected data. Version-Release number of selected component (if applicable): 5.7.0.17.20161219135818_725f92f OCP 3.3 How reproducible: Steps to Reproduce: 1. Create 'Projects' based report 'Pods: Deleted On' field selected; no data found. 2. Create 'Pods' based report with 'Deleted On' selected and the expected data exists. 3. Actual results: Expected results: Additional info:
This issue is caused by the fact that container groups that were "deleted" (with 'Deleted On' field as described above), are archived pods and thus still exist in the Container Groups table. However, we remove the connection between the container project and his container groups once they are archived. Therefore, a project report based on 'Pods: Deleted On' does not contain any data. I created this PR: https://github.com/ManageIQ/manageiq/pull/13810 in order to support the use case of viewing a project report that includes the ARCHIVED container groups of the project by basing the report on "Archived Container Groups:<field>".
Nick, can you take a look at the PR: https://github.com/ManageIQ/manageiq/pull/13810 and the screenshot? IIRC current implementation will allow you to do: - Reports with *only* active pods (*no* archived pods) and *no* DeletedOn value (as it is now, no changes here) - Reports with *only* archived pods and *no* active pods but with DeletedOn value available (what we introduced into the PR). But you will *not* be able to mix the two in a single report. Nick, is that acceptable? This is not just "a field is missing" type of bug as in the description, here we have to build a valuable use-case. Loic any insight?
(In reply to Federico Simoncelli from comment #3) > > But you will *not* be able to mix the two in a single report. Actually I'll leave this to Zahi to comment because I have the feeling I may be wrong on that (maybe you can mix them).
(In reply to Federico Simoncelli from comment #4) > (In reply to Federico Simoncelli from comment #3) > > > > But you will *not* be able to mix the two in a single report. > > Actually I'll leave this to Zahi to comment because I have the feeling I may > be wrong on that (maybe you can mix them). Zahi confirmed this today in the PR. Nick/Loic can you check what comment 3 states and if it's what you expected? Thanks.
The use case is create a daily project based report, showing pods (including their name) deleted by project. The screenshots in the PR look good.
Verified. Generated report as in PR https://github.com/ManageIQ/manageiq/pull/13810 Deleted on date field is populated in generated report.