Bug 1434856 - Container node tags are not available as report fields in Node reports
Summary: Container node tags are not available as report fields in Node reports
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Reporting
Version: 5.7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.9.0
Assignee: Ari Zellner
QA Contact: Einat Pacifici
URL:
Whiteboard: container:report
Depends On:
Blocks: 1444067
TreeView+ depends on / blocked
 
Reported: 2017-03-22 13:37 UTC by Martin Eggen
Modified: 2018-06-05 11:22 UTC (History)
7 users (show)

Fixed In Version: 5.9.0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1444067 (view as bug list)
Environment:
Last Closed: 2018-03-06 14:58:22 UTC
Category: ---
Cloudforms Team: Container Management
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Martin Eggen 2017-03-22 13:37:32 UTC
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')"`

Comment 2 Beni Paskin-Cherniavsky 2017-03-22 22:41:46 UTC
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.

Comment 3 Federico Simoncelli 2017-03-23 09:10:58 UTC
(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).

Comment 4 Beni Paskin-Cherniavsky 2017-03-23 10:20:06 UTC
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.

Comment 5 Beni Paskin-Cherniavsky 2017-03-23 10:28:05 UTC
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)

Comment 6 Federico Simoncelli 2017-03-24 08:09:20 UTC
(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.

Comment 7 zakiva 2017-03-28 14:13:31 UTC
Upstream PR: https://github.com/ManageIQ/manageiq/pull/14535

Comment 9 Pavel Zagalsky 2017-12-21 12:21:41 UTC
Added tags appear under Available Fields


Note You need to log in before you can comment on or make changes to this bug.