Bug 1395854

Summary: Refresh failing on kubeclient parsing OpenShift objects definition
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ProvidersAssignee: zakiva
Status: CLOSED ERRATA QA Contact: Einat Pacifici <epacific>
Severity: high Docs Contact:
Priority: high    
Version: 5.7.0CC: bgillet, cben, cpelland, dajohnso, epacific, fsimonce, gblomqui, jfrey, jhardy, lavenel, mtayer, obarenbo, simaishi, zakiva
Target Milestone: GAFlags: dron: needinfo+
Target Release: 5.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: container
Fixed In Version: 5.7.0.14 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1387614 Environment:
Last Closed: 2017-01-04 13:14:41 UTC Type: ---
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:
Bug Depends On: 1387614    
Bug Blocks:    
Attachments:
Description Flags
evm.tar.gz log none

Comment 7 Dafna Ron 2016-11-24 16:07:38 UTC
after discussion with Federico and Loic to reproduce: 
attach 3.1 openshift to 5.7 and refresh - see data is refreshed.

Comment 8 Einat Pacifici 2016-11-27 11:16:34 UTC
Created attachment 1224801 [details]
evm.tar.gz log

Failed 

Recreated: 
CFME 5.7. with OSE3.1.
Attached a new provider. 
Refresh fails with: Error - 1 Minute Ago
undefined method `get_pods' for #<Kubeclient::Client:0x0000000203ccd8> Did you mean? get_pod_log 

evm.tar.gz log attached.

Comment 12 zakiva 2016-12-06 16:36:53 UTC
As commented in the original bug the new fix is here:
Adding backward compatibility for 3.1 in kubeclient (which indeed fixes the OSE 3.1 issue): 
https://github.com/abonas/kubeclient/pull/214

Another related PRs (bumping kubeclient version):
Kubeclient - https://github.com/abonas/kubeclient/pull/216
Manageiq (euwe branch) - https://github.com/ManageIQ/manageiq/pull/12978
Manageiq-gems-pending (master branch) - https://github.com/ManageIQ/manageiq-gems-pending/pull/28

Comment 14 Einat Pacifici 2016-12-08 09:52:06 UTC
Verified. 
In previous versions, when refreshing provider (of OSE3.1. version) the error was seen: "Error - Less Than A Minute Ago
undefined method `get_pods' for #<Kubeclient::Client:0x00000002474260> Did you mean? get_pod_log "

Starting from 5.7.0.14, when refreshing provider (of OSE3.1 version) the refresh passes successfully.

Comment 15 Mooli Tayer 2016-12-08 10:05:21 UTC
We need to make sure the new code added to support OSE3.1 does not cause regression in later versions - not supporting a new version is a lot worth then not supporting an old one.

Comment 17 errata-xmlrpc 2017-01-04 13:14:41 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2017-0012.html

Comment 18 Red Hat Bugzilla 2023-09-14 03:34:32 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days