Bug 870046 - pywbem client can not invoke methods on pegasus providers
Summary: pywbem client can not invoke methods on pegasus providers
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: pywbem
Version: 18
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: David Nalley
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 891637
TreeView+ depends on / blocked
 
Reported: 2012-10-25 13:32 UTC by Michal Minar
Modified: 2013-02-08 17:03 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
: 891637 (view as bug list)
Environment:
Last Closed: 2013-02-08 17:02:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
fixed CIMInstanceName rendering to string (560 bytes, patch)
2012-10-25 13:32 UTC, Michal Minar
no flags Details | Diff
updated version of patch (573 bytes, patch)
2012-11-19 09:50 UTC, Michal Minar
no flags Details | Diff

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.


Note You need to log in before you can comment on or make changes to this bug.