Bug 870046

Summary: pywbem client can not invoke methods on pegasus providers
Product: [Fedora] Fedora Reporter: Michal Minar <miminar>
Component: pywbemAssignee: David Nalley <david>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 18CC: david, dmalcolm, jsafrane, miminar
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 891637 (view as bug list) Environment:
Last Closed: 2013-02-08 17:02:57 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:    
Bug Blocks: 891637    
Attachments:
Description Flags
fixed CIMInstanceName rendering to string
none
updated version of patch none

Description Michal Minar 2012-10-25 13:32:00 UTC
Created attachment 633317 [details]
fixed CIMInstanceName rendering to string

Description of problem:
  Due to the bug in CIMInstanceName rendering, it's impossible to invoke methods on pegasus providers, when this object path is referring to other objects or is containing pywbem.CIMInt as a key value.

Version-Release number of selected component (if applicable): 0.7.0-0.7.fc18

How reproducible:
ALWAYS

Steps to Reproduce:
1. yum install -y tog-pegasus pywbem openlmi-software
2. download a python test script (pywbem client) from https://fedorahosted.org/openlmi/browser/openlmi-providers/src/software/cli/software.py?format=txt
3. select arbitrary available package through yum (note its NEVRA)
4. try to install it with downloaded script:
   python software.py install slv2-0:0.6.6-8.fc17.x86_64
  
Actual results:
  Client blocks, tog-pegasus shows in trace log:
  HTTP/1.1 400 Bad Request
  CIMError: header-mismatch
  PGErrorDetail: ...

Expected results:
  Client exits and broker does not print error message.

Additional info:
  Running the same script with same parameters on sfcb broker ends up find.
  To enable tracing for tog-pegasus:
     cimconfig -s traceLevel=5
     cimconfig -s traceComponents=Xml,XmlIO
  To watch the trace output:
     tail -n 100 -f /var/lib/Pegasus/cache/trace/cimserver.trc
  Attached is a patch to solve this issue.
  The bug has been reported to upstream with the same attached patch. The bug report can be found here: https://sourceforge.net/tracker/?func=detail&aid=3580081&group_id=133883&atid=728404

Comment 1 Michal Minar 2012-11-19 09:50:31 UTC
Created attachment 647642 [details]
updated version of patch

I've found, that types affected with this problem include also bool and float. Attached is an updated version of original patch to solve this.

Comment 2 Jan Safranek 2013-01-21 11:38:38 UTC
I've pushed the patch upstream, as SVN rev. 611.

Comment 3 Fedora Update System 2013-01-28 14:28:59 UTC
pywbem-0.7.0-8.20130128svn613.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/pywbem-0.7.0-8.20130128svn613.fc18

Comment 4 Fedora Update System 2013-01-30 00:49:13 UTC
pywbem-0.7.0-8.20130128svn613.fc18 has been pushed to the Fedora 18 testing repository.

Comment 5 Fedora Update System 2013-02-08 17:03:00 UTC
pywbem-0.7.0-8.20130128svn613.fc18 has been pushed to the Fedora 18 stable repository.