Bug 1420126

Summary: Custom Attributes not refreshing in Report's Available Fields
Product: Red Hat CloudForms Management Engine Reporter: Ian Tewksbury <itewksbu>
Component: ReportingAssignee: Gregg Tanzillo <gtanzill>
Status: CLOSED DUPLICATE QA Contact: Jiri Stefanisin <jistefan>
Severity: medium Docs Contact:
Priority: high    
Version: 5.7.0CC: greartes, jhardy, lpichler, obarenbo
Target Milestone: GA   
Target Release: cfme-future   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: report
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-19 14:10:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ian Tewksbury 2017-02-07 22:27:49 UTC
Description of problem:

I have added Custom Attributes to a VM but those new Custom Attributes are not showing up in the Available Fields selection when creating a new Report


Version-Release number of selected component (if applicable):

5.7.0.17.20161219135818_725f92f

How reproducible:

Always


Steps to Reproduce:
1. Use Automate to add a Custom Attribute to a VM
2. Create a new report
3. The Custom Attribute is not listed in the Available Fields

Actual results:

The Custom Attribute is not listed in the Available Fields


Expected results:

The Custom Attribute should be listed in the Available Fields


Additional info:

I had some Custom Attributes already the first time I ever opened the Reports UI and they show up in the Available Fields. But any new Custom Attributes do not show up in the UI since then.

This also seems to be a problem for the Tag Categories.

Comment 2 Ian Tewksbury 2017-02-07 22:32:10 UTC
As a workaround:

I logged onto a different worker that had UI enabled and was able to see the refreshed list of Custom Attributes there.

Comment 3 Ian Tewksbury 2017-02-08 13:35:54 UTC
Better work around:

If after adding new custom attributes to a VM you do a `systemctl restart evmserverd` on the UI appliance you are logged into then the new Custom Attributes will show up in the Available Fields for reports.

My hunch here is that the list of Available Fields is populated once the first time it is opened after an evmserverd restart and is loaded form cache after that. Besides seeing that a restart fixes the issue this hunch is compounded that after a restart the Available Fields dialog box takes 15-20 seconds longer to load the first time it is ever opened then any subsequent opening, whether on a new or existing report.