pcp
[Top] [All Lists]

[Bug 1299806] New: Python PMAPI pmRegisterDerived does not return error

To: pcp@xxxxxxxxxxx
Subject: [Bug 1299806] New: Python PMAPI pmRegisterDerived does not return error string
From: bugzilla@xxxxxxxxxx
Date: Tue, 19 Jan 2016 10:04:14 +0000
Auto-submitted: auto-generated
Delivered-to: pcp@xxxxxxxxxxx
https://bugzilla.redhat.com/show_bug.cgi?id=1299806

            Bug ID: 1299806
           Summary: Python PMAPI pmRegisterDerived does not return error
                    string
           Product: Fedora
           Version: 23
         Component: pcp
          Assignee: nathans@xxxxxxxxxx
          Reporter: myllynen@xxxxxxxxxx
        QA Contact: extras-qa@xxxxxxxxxxxxxxxxx
                CC: brolley@xxxxxxxxxx, fche@xxxxxxxxxx, lberk@xxxxxxxxxx,
                    mgoodwin@xxxxxxxxxx, nathans@xxxxxxxxxx,
                    pcp@xxxxxxxxxxx, scox@xxxxxxxxxx



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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug 
https://bugzilla.redhat.com/token.cgi?t=QFcx5ZtUNg&a=cc_unsubscribe
<Prev in Thread] Current Thread [Next in Thread>
  • [Bug 1299806] New: Python PMAPI pmRegisterDerived does not return error string, bugzilla <=