Bug 1410374

Summary: Unable to perform inventory refresh in CFME 57017 with OCP as a provider
Product: Red Hat CloudForms Management Engine Reporter: Archit Sharma <arcsharm>
Component: ProvidersAssignee: Federico Simoncelli <fsimonce>
Status: CLOSED DUPLICATE QA Contact: Einat Pacifici <epacific>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.7.0CC: dajohnso, jfrey, jhardy, lavenel, mhepburn, mifiedle, ncatling, obarenbo, psuriset, vestival
Target Milestone: GAKeywords: Reopened
Target Release: cfme-future   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: container:ems_refresh
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-23 16:16:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Container Management Target Upstream Version:

Description Archit Sharma 2017-01-05 10:59:29 UTC
Description of problem:
Connected CFME 57017 to OSE provider. 

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

How reproducible:

Steps to Reproduce:
1. connect CFME 57017 to an OSE provider
2. Turn on C&U. Wait for refresh to happen first
3. Refresh fails to happen

Actual results:

"undefined method `each_with_object' for nil:NilClass" 

..under 'Last Refresh' on ems_container/1 route.

Expected results:

xyz minutes ago. Successful.

Additional info:
Error details in http://pastebin.test.redhat.com/443191

Comment 2 Archit Sharma 2017-01-06 11:21:40 UTC
This looks like it's present in 57017, but works fine in 57013.

So maybe some problem with partial refresh functionality introduced later? (not sure if it was present in 57013 as well? ..but it's evident from logs linked in description)

Comment 3 Federico Simoncelli 2017-01-12 15:46:19 UTC
Archit, this seems a duplicate of bug 1405937.
Please let us know if the fix for bug 1405937 is not working for you. Thanks.

*** This bug has been marked as a duplicate of bug 1405937 ***

Comment 5 Federico Simoncelli 2017-01-23 16:16:39 UTC
Relevant log here reported:

[----] E, [2017-01-04T10:46:19.466302 #60599:fe1140] ERROR -- : MIQ(ManageIQ::Providers::OpenshiftEnterprise::ContainerManager::Refresher#refresh) EMS: [perf-ose], id: [1] Refresh failed
[----] E, [2017-01-04T10:46:19.469542 #60599:fe1140] ERROR -- : [NoMethodError]: undefined method `each_with_object' for nil:NilClass  Method:[rescue in block in refresh]
[----] E, [2017-01-04T10:46:19.469717 #60599:fe1140] ERROR -- : /var/www/miq/vmdb/app/models/manageiq/providers/openshift/container_manager/refresh_parser.rb:168:in `parse_env_variables'
/var/www/miq/vmdb/app/models/manageiq/providers/openshift/container_manager/refresh_parser.rb:191:in `parse_openshift_image'
/var/www/miq/vmdb/app/models/manageiq/providers/openshift/container_manager/refresh_parser.rb:17:in `block in get_openshift_images'
/var/www/miq/vmdb/app/models/manageiq/providers/kubernetes/container_manager/refresh_parser.rb:136:in `process_collection_item'
/var/www/miq/vmdb/app/models/manageiq/providers/kubernetes/container_manager/refresh_parser.rb:130:in `block in process_collection'
/opt/rh/rh-ruby23/root/usr/share/ruby/delegate.rb:341:in `each'
/opt/rh/rh-ruby23/root/usr/share/ruby/delegate.rb:341:in `block in delegating_block'

Which makes it a duplicate of bug 1414508.

*** This bug has been marked as a duplicate of bug 1414508 ***