Bug 856617

Summary: Unable to get list of components via XML-RPC
Product: [Community] Bugzilla Reporter: David Kovalsky <dkovalsk>
Component: WebServiceAssignee: PnT DevOps Devs <hss-ied-bugs>
Status: CLOSED NEXTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.2CC: azelinka, benl, jfearn, mtyson, psplicha, rbiba, xma
Target Milestone: 4.2-7Keywords: Regression, Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-01 23:59:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 817459    
Bug Blocks: 508685    

Description David Kovalsky 2012-09-12 12:44:30 UTC
I'm trying to get a list of components via XML-RPC for RHEL7 ("Red Hat Enterprise LInux 7" product) same as I'm doing for RHEL3,4,5,6 - but it's not working. On ticket it has been suggested this is a bug and I should file one here. 

I have this Python
con = xmlrpclib.ServerProxy(self.url)
con.User.login({"login" : self.login, "password": self.passwd})
product = con.Product.get({"names" : self.bz_product})


for RHEL4,5,6 product is an array (list) of product info and
components, for RHEL7 `product' is an empty list (`[]').

I'm pretty certain this used to work a couple of weeks ago, though through Python-bugzilla package.


This is blocking CYP functionality, deployment of new version, addition of any new components. And since tools like automated Beaker QE workflows rely on CYP same as Errata Tool does, it's top priority for me to get this bug fixed.



Red Hat Bugzilla 4.2.3-4.1

Comment 5 HSS Product Manager 2012-09-26 22:47:04 UTC
Product Management has reviewed and declined this request. You may appeal this
decision by reopening this request.

Comment 9 Matt Tyson 🤬 2012-11-01 23:59:45 UTC
I've tested this against release 4.2-6 of bugzilla which will be released shortly and everything works as expected.  Components for RHEL 7 are returned.

Comment 10 xuezhi ma 2012-11-20 03:28:05 UTC
Verify version: 4.2-6 on production and 4.2-7 test server -> PASS

Verify steps:
>>> import xmlrpclib
>>> proxy = xmlrpclib.ServerProxy('xmprpc URL')
>>> cops = proxy.Product.get({'Bugzilla_login': 'user', 'Bugzilla_password': 'PWD', 'names':['Red Hat Enterprise Linux 7']})
>>> for i in range(0, len(cops['products'][0]['components'])):
>>>    print '---------------------------------------'
>>>    print cops['products'][0]['components'][i]


Actual result:
User can get components of RHEL7