Bug 1728295

Summary: Newly added RHV provider is not refreshed and manual refresh is not working
Product: Red Hat CloudForms Management Engine Reporter: Matouš Mojžíš <mmojzis>
Component: ProvidersAssignee: Roberto Ciatti <rciatti>
Status: CLOSED CURRENTRELEASE QA Contact: Angelina Vasileva <anikifor>
Severity: urgent Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: high    
Version: 5.11.0CC: agrare, anikifor, jfrey, jhardy, jhenner, mperina, mshriver, obarenbo, rciatti, simaishi, tpapaioa
Target Milestone: GAKeywords: Regression
Target Release: 5.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.11.0.16 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-13 14:57:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: RHEVM Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1720640, 1724487    
Attachments:
Description Flags
evm.log stacktrace none

Description Matouš Mojžíš 2019-07-09 14:52:37 UTC
Created attachment 1588765 [details]
evm.log stacktrace

Description of problem:


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

How reproducible:
Always

Steps to Reproduce:
1. Add a new RHV provider - tried with rhv4.2, rhv4.3 and rhv4.0
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Jaroslav Henner 2019-07-15 11:39:05 UTC
*** Bug 1729907 has been marked as a duplicate of this bug. ***

Comment 4 Adam Grare 2019-07-15 12:26:33 UTC
This was probably introduced by https://github.com/ManageIQ/manageiq/pull/18842

Comment 5 Roberto Ciatti 2019-07-22 10:44:33 UTC
Hi,
  I was able to see the bug on 5.11.0.13 on an appliance ran by Matouš,
but on the master (an also on 5.11.z) I'm able to add a RHV provider(for rhv 4.3) and to refresh it without errors.

Comment 6 Mike Shriver 2019-07-22 18:43:36 UTC
QE continues to see this failure in CFME 5.11.0.15.

Roberto, were you implying in comment 5 that this is fixed in master after 5.11.0.15 was built on Jul 19th? Can you identify what PR should have resolved this?

Comment 7 Roberto Ciatti 2019-07-23 09:10:34 UTC
Hi Mike,
  I dig again on an appliance that Matouš gave me and I think I found the problem and also why on my local env was not showing up.

The problem is the 'permissions.yml" file in '/var/www/miq/vmdb/config'. 

The file was not including permissions for 

- ems-type:redhat_network

Adding it everything is working.
I don't know why this permission was missing and not copied from 'permissions.tmpl.yml'.

Maybe someone may have some ideas on this aspect?

I'll continue to dig on this

Comment 8 Roberto Ciatti 2019-07-23 14:02:34 UTC
Update:

Proposed a Merge Request on cfme_productization to add the ems_type required to the permissions.yml.

Comment 9 Roberto Ciatti 2019-07-23 15:43:42 UTC
Update:

The Request was merged into master.

Comment 15 Angelina Vasileva 2019-07-25 12:00:54 UTC
Fixed and verified in 5.11.0.16.20190724210259_2b4aa51.

Newly added RHV provider is refreshed and manual refresh also works.