Bug 1413049

Summary: container-deployed CF 4.2 fails to refresh OCP 3.3 , fails on nil value
Product: Red Hat CloudForms Management Engine Reporter: Felix Dewaleyne <fdewaley>
Component: ProvidersAssignee: Federico Simoncelli <fsimonce>
Status: CLOSED DUPLICATE QA Contact: Einat Pacifici <epacific>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.7.0CC: fdewaley, jfrey, jhardy, obarenbo
Target Milestone: GA   
Target Release: cfme-future   
Hardware: All   
OS: All   
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 10:54:59 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:
Embargoed:

Description Felix Dewaleyne 2017-01-13 13:19:46 UTC
Created attachment 1240337 [details]
evm.log trace

Description of problem:
container-deployed CF 4.2 fails to refresh OCP 3.3 , fails on nil value

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

How reproducible:
customer environemnt

Steps to Reproduce:
1.add openshift 3.3 to cloudforms
2.
3.

Actual results:
[----] I, [2017-01-10T09:24:17.747736 #18694:a8b13c]  INFO -- : MIQ(MiqQueue#deliver) Message id: [9751], Delivering...
[----] I, [2017-01-10T09:24:17.757271 #18694:a8b13c]  INFO -- : MIQ(ManageIQ::Providers::OpenshiftEnterprise::ContainerManager::Refresher#refresh) Refreshing all targets...
[----] I, [2017-01-10T09:24:17.757391 #18694:a8b13c]  INFO -- : MIQ(ManageIQ::Providers::OpenshiftEnterprise::ContainerManager::Refresher#refresh) EMS: [NPC], id: [1] Refreshing targets for EMS...
[----] I, [2017-01-10T09:24:17.757477 #18694:a8b13c]  INFO -- : MIQ(ManageIQ::Providers::OpenshiftEnterprise::ContainerManager::Refresher#refresh) EMS: [NPC], id: [1]   ManageIQ::Providers::OpenshiftEnterprise::ContainerManager [NPC] id [
1]
[----] I, [2017-01-10T09:24:17.757596 #18694:a8b13c]  INFO -- : MIQ(ManageIQ::Providers::OpenshiftEnterprise::ContainerManager::Refresher#refresh_targets_for_ems) EMS: [NPC], id: [1] Refreshing target ManageIQ::Providers::OpenshiftEnterpr
ise::ContainerManager [NPC] id [1]...
[----] I, [2017-01-10T09:24:17.757685 #18694:a8b13c]  INFO -- : MIQ(ManageIQ::Providers::OpenshiftEnterprise::ContainerManager#with_provider_connection) Connecting through ManageIQ::Providers::OpenshiftEnterprise::ContainerManager: [NPC]
[----] I, [2017-01-10T09:24:19.756409 #18694:a8b13c]  INFO -- : MIQ(ManageIQ::Providers::OpenshiftEnterprise::ContainerManager#with_provider_connection) Connecting through ManageIQ::Providers::OpenshiftEnterprise::ContainerManager: [NPC]
[----] E, [2017-01-10T09:24:25.910487 #18694:a8b13c] ERROR -- : MIQ(ManageIQ::Providers::OpenshiftEnterprise::ContainerManager::Refresher#refresh) EMS: [NPC], id: [1] Refresh failed
[----] E, [2017-01-10T09:24:25.911522 #18694:a8b13c] ERROR -- : [TypeError]: no implicit conversion of nil into String  Method:[rescue in block in refresh]
[----] E, [2017-01-10T09:24:25.911691 #18694:a8b13c] ERROR -- : /opt/rh/rh-ruby23/root/usr/share/gems/gems/json-2.0.2/lib/json/common.rb:156:in `initialize'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/json-2.0.2/lib/json/common.rb:156:in `new'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/json-2.0.2/lib/json/common.rb:156:in `parse'
/var/www/miq/vmdb/app/models/manageiq/providers/openshift/container_manager/refresh_parser.rb:179: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'


Expected results:
refresh goes through

Additional info:
full trace attached

Comment 3 Federico Simoncelli 2017-01-19 11:13:31 UTC
Felix is this a duplicate of bug 1405937?

This is mentioned in the Release Notes here:

https://access.redhat.com/documentation/en/red-hat-cloudforms/4.2/single/release-notes/#known_issues

Please contact Josh for the hotfix.

Comment 4 Felix Dewaleyne 2017-01-19 14:46:57 UTC
(In reply to Federico Simoncelli from comment #3)
> Felix is this a duplicate of bug 1405937?
> 
> This is mentioned in the Release Notes here:
> 
> https://access.redhat.com/documentation/en/red-hat-cloudforms/4.2/single/
> release-notes/#known_issues
> 
> Please contact Josh for the hotfix.

It looks like the same error is present in the logs attached in that bz. the hotfix has already been shared with the customer.

This case is a potential duplicate.

Comment 5 Federico Simoncelli 2017-01-23 10:54:59 UTC

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