Bug 1299806

Summary: Python PMAPI pmRegisterDerived does not return error string
Product: [Fedora] Fedora Reporter: Marko Myllynen <myllynen>
Component: pcpAssignee: Nathan Scott <nathans>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: brolley, fche, lberk, mbenitez, mgoodwin, nathans, pcp, scox
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-15 00:55:49 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:

Description Marko Myllynen 2016-01-19 10:04:14 UTC
Description of problem:
See the attachment in bug 1286733 (URL: https://bugzilla.redhat.com/attachment.cgi?id=1100522), for a code like:

        try:
            self.context.pmRegisterDerived("foo", "rat(disk.dev.read)")
        except:
            print self.context.pmDerivedErrStr()

It currently prints:

$ python test.py                                          
REGISTERED 1
EXCEPTION 2
None

But libpcp gets it right:

http://oss.sgi.com/pipermail/pcp/2016-January/009333.html

So this looks like a Python PMAPI issue.

Comment 1 Nathan Scott 2016-03-15 00:55:49 UTC
This issue was tackled in pcp-3.11.0