Bug 1377426 - In CFME UI, every object is displayed twice
Summary: In CFME UI, every object is displayed twice
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.7.0
Hardware: x86_64
OS: Linux
high
high
Target Milestone: GA
: 5.7.2
Assignee: Ari Zellner
QA Contact: Einat Pacifici
URL:
Whiteboard: container
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-19 16:01 UTC by Tony
Modified: 2017-12-05 15:47 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-02-23 15:00:05 UTC
Category: ---
Cloudforms Team: Container Management
Target Upstream Version:


Attachments (Terms of Use)
evm.log (284.56 KB, text/plain)
2016-09-19 16:01 UTC, Tony
no flags Details
audit.log (13.71 KB, text/plain)
2016-09-19 16:04 UTC, Tony
no flags Details
production.log (117.85 KB, text/plain)
2016-09-19 16:06 UTC, Tony
no flags Details
pods are displayed twice (170.49 KB, image/png)
2016-09-19 16:12 UTC, Tony
no flags Details
actual number of pods (145.36 KB, image/png)
2016-09-19 16:13 UTC, Tony
no flags Details

Description Tony 2016-09-19 16:01:49 UTC
Created attachment 1202541 [details]
evm.log

Description of problem:


CFME 5.7.0.0


Steps to Reproduce:

1.In CFME: 

Compute ---> Containers --> Projects

Notice how each object appears twice in the table


2.To verify that every object appears twice:


Compute ---> Containers --> Routes


Compute ---> Containers --> Container Services


Compute ---> Containers --> Replicators


Compute ---> Containers --> Pods


Compute ---> Containers --> Containers


Compute ---> Containers --> Container Nodes


Compute ---> Containers --> Container Builds


Compute ---> Containers --> Image Registries


Compute ---> Containers --> Container Images


3.In order to get the actual number of objects:


Computer ---> Containers ---> Providers


4. Click on Provider

5. Check the actual number of objects in the Relationships table



Actual results:

When accessing objects through

Computer ---> Containers ---> Pods(Nodes, etc), each object is displayed twice in the table. 


Expected results:

Each object should only be displayed once.

Comment 2 Tony 2016-09-19 16:04:14 UTC
Created attachment 1202542 [details]
audit.log

Comment 3 Tony 2016-09-19 16:06:41 UTC
Created attachment 1202543 [details]
production.log

Comment 4 Tony 2016-09-19 16:12:47 UTC
Created attachment 1202545 [details]
pods are displayed twice

Comment 5 Tony 2016-09-19 16:13:58 UTC
Created attachment 1202547 [details]
actual number of pods

Comment 7 Ari Zellner 2016-09-19 17:20:07 UTC
This might be a clone of https://bugzilla.redhat.com/show_bug.cgi?id=1369359
Tony did you delete and re-add the provider? 
Are you running the latest build?

Comment 8 Tony 2016-09-20 08:27:10 UTC
(In reply to Ari Zellner from comment #7)
> This might be a clone of https://bugzilla.redhat.com/show_bug.cgi?id=1369359
> Tony did you delete and re-add the provider? 
> Are you running the latest build?

Ari, I had deleted and added back the provider, but when I did it in CFME 5.6, it did not have any effect on the number of objects appearing in the UI. 

I am running the latest build  - CFME 5.7.0.0

The issue is very similar to 

https://bugzilla.redhat.com/show_bug.cgi?id=1369359

but in this case, we are only dealing with one provider as opposed to two, also I had waited a while before adding the provider back, just to make sure the all objects were deleted.

Comment 9 Ari Zellner 2016-09-20 12:46:23 UTC
So looks like this is caused by an AutomationEngine bug.
Some events trigger a provider refresh and looks like they trigger a refresh even after the provider was deleted. So all of the providers entities suddenly re-appear having entity.ext_management_system = nil.

The 'leftover' entities arent leftover, they are new entities that were created after the provider was deleted.
Disabling the automation engine stops this from occurring.

Comment 10 Tony 2016-09-20 12:50:49 UTC
(In reply to Ari Zellner from comment #9)
> So looks like this is caused by an AutomationEngine bug.
> Some events trigger a provider refresh and looks like they trigger a refresh
> even after the provider was deleted. So all of the providers entities
> suddenly re-appear having entity.ext_management_system = nil.
> 
> The 'leftover' entities arent leftover, they are new entities that were
> created after the provider was deleted.
> Disabling the automation engine stops this from occurring.

Is automation engine enabled by default?

Comment 11 Ari Zellner 2016-09-20 12:53:37 UTC
It was enabled on the env you gave me. You can test this out by creating->refreshing->deleting providers with the automation engine on and off.
Youll see that the number of entities continues to increase if the automation engine is enabled.

Comment 12 Tony 2016-09-20 14:48:35 UTC
I'll test it with the automation engine on and off, I wonder though, when an appliance is created and no providers were added yet, is the automation engine supposed to be on or off? I think the default state is on, right?

Comment 13 Ari Zellner 2016-09-20 14:59:35 UTC
Good question, I think its customer specific.

Comment 14 Barak 2016-11-28 14:17:32 UTC
This is not a blocker , it looks like a specific item that comes up only in automation.

The has a lesser priority for GA,
Hence removing the blocker flag & moving to zstream

Comment 15 Ari Zellner 2017-01-05 14:52:08 UTC
Possible solution discussed with core team: https://github.com/ManageIQ/manageiq/pull/13204

Comment 16 Barak 2017-01-26 14:37:38 UTC
Einat  does it happen in automation ? and how often ?

Comment 17 Einat Pacifici 2017-02-07 07:41:15 UTC
Indeed this happens in automation. 
However, it happens intermittently.
One of the test cases we have deletes and adds a provider immediately causing the appliance to, sometimes, show objects with no provider attached. 

We are working on fixing this test case, however, dev should look into why objects are not being totally cleaned from the DB once a provider is deleted.

Comment 19 Einat Pacifici 2017-02-23 14:56:56 UTC
Federico, 
Our CI has been refactored and the issue has been resolved. 
This was happening since in the automation scripts, a provider was deleted and added immediately i.e. CFME did not have a chance to "recover".
As discussed, this is not common practice at a customer site. 
QE will investigate further, however, for right now, this issue is not holding up automation any longer.

Comment 20 Federico Simoncelli 2017-02-23 15:00:05 UTC
OK closing for now because we don't have any way to reproduce or enough information. Feel free to reopen if relevant.


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