Bug 1299806 - Python PMAPI pmRegisterDerived does not return error string
Summary: Python PMAPI pmRegisterDerived does not return error string
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: pcp
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nathan Scott
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-19 10:04 UTC by Marko Myllynen
Modified: 2016-03-15 00:55 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-15 00:55:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


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