Description of problem: Mapped OpenShift Node labels (mapped to tags) are not available as fields in Node reports. Node-based reports should be able to include Node tags. Version-Release number of selected component (if applicable): CFME 5.7.1 How reproducible: Always Steps to Reproduce: 1. Set up a Label/Tag mapping of an OpenShift Node label 2. Verify that the label is listed both in the Labels table and in the Smart Management / Company Tags table in the Node summary screen 3. Create a new report based on Nodes 4. Search for the imported Tag in Available Fields Actual results: Node tags are not available in Available Fields list for the Node report. Expected results: The tag mapped from Node labels should be available as a field for the Node report. Additional info: The mapped tag is listed under Images.Tags and Provider.Tags, but not for the actual Node object. See https://gist.github.com/cben/344b34e3b8cd390d33afe558c9308104 for output of `rails runner "pp MiqExpression.reporting_available_fields('ContainerNode')"`
I believe label->tag mapping (steps 1,2) is irrelevant here; the bug is that tag categories are not offered at all as reporting fields in "based on Container Node" reports. It's not unique to ContainerNode. Also missing from e.g. ContainerReplicator, ContainerGroup. OTOH, e.g. Vm, Host, ContainerProject, ContainerImage all offer tags.
(In reply to Beni Paskin-Cherniavsky from comment #2) > I believe label->tag mapping (steps 1,2) is irrelevant here; the bug is that > tag categories are not offered at all as reporting fields in "based on > Container Node" reports. > > It's not unique to ContainerNode. Also missing from e.g. > ContainerReplicator, ContainerGroup. > OTOH, e.g. Vm, Host, ContainerProject, ContainerImage all offer tags. Beni is this related to the fact that the auto-tags are somewhat different from the regular tags? (E.g. we need to enable the auto-tags categories in the Reports).
No (that was bug 1382720, solved and still works AFAICT). Martin was looking for mapped tag categories, but there are NO tag categories – not even the regular "Department", "Location" — offered for the node itself. Martin sent me the list he sees, it does have some mapped categories among the categories offered for "Provider.<Company> Tags" and "Images.<Company> Tags". But there is no "<Company> Tags" at all.
Sorry wrong link in comment 4. Mapped tags in reporting was bug 1388659, solved and still working AFAICT. (1382720 is about labels directly as labels in reporting, no tags involved)
(In reply to Beni Paskin-Cherniavsky from comment #2) > It's not unique to ContainerNode. Also missing from e.g. > ContainerReplicator, ContainerGroup. > OTOH, e.g. Vm, Host, ContainerProject, ContainerImage all offer tags.
Upstream PR: https://github.com/ManageIQ/manageiq/pull/14535
Added tags appear under Available Fields