Bug 1336130 - derived metrics between singleton and indom'd metrics result in bad result indom
Summary: derived metrics between singleton and indom'd metrics result in bad result indom
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pcp
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nathan Scott
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1337212
TreeView+ depends on / blocked
 
Reported: 2016-05-14 14:12 UTC by Frank Ch. Eigler
Modified: 2016-07-09 20:19 UTC (History)
8 users (show)

Fixed In Version: pcp-3.11.3-1.fc24 pcp-3.11.3-1.fc22 pcp-3.11.3-1.fc23 pcp-3.11.3-1.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1337212 (view as bug list)
Environment:
Last Closed: 2016-06-27 18:28:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
possible patch (1.73 KB, patch)
2016-05-14 14:12 UTC, Frank Ch. Eigler
no flags Details | Diff
possible patch (862 bytes, patch)
2016-05-14 14:13 UTC, Frank Ch. Eigler
no flags Details | Diff

Description Frank Ch. Eigler 2016-05-14 14:12:19 UTC
Created attachment 1157490 [details]
possible patch

Let x.conf be a file

   x = kernel.all.uptime - proc.psinfo.start_time

Let the command to run be

   env PCP_DERIVED_CONFIG=/path/to/x.conf pminfo -f x

Observe output

  x
    value 1008990.98
    value 1008990.98
    value 1008990.97
    value 1008990.97
    value 1008990.97
    value 1008990.97
    [...]

Observe absence of instances.  Let the next command to run be

   env PCP_DERIVED_CONFIG=/path/to/x.conf pminfo -d x

Observe output:
  x
    Data Type: double  InDom: PM_INDOM_NULL 0xffffffff
    Semantics: instant  Units: sec

Observe mismatch: InDom should have been the indom of the right operand (proc.psinfo.start_time).

Examine libpcp/src/derive.c, find bugs.

Comment 1 Frank Ch. Eigler 2016-05-14 14:13:43 UTC
Created attachment 1157491 [details]
possible patch

Comment 2 Fedora Update System 2016-06-18 05:23:53 UTC
pcp-3.11.3-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-331bd3e9bf

Comment 3 Fedora Update System 2016-06-18 05:24:22 UTC
pcp-3.11.3-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-aad44ac639

Comment 4 Fedora Update System 2016-06-18 06:17:25 UTC
pcp-3.11.3-1.el5 has been pushed to the Fedora EPEL 5 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-4745f3e292

Comment 5 Fedora Update System 2016-06-18 16:26:08 UTC
pcp-3.11.3-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-0b45289bc4

Comment 6 Fedora Update System 2016-06-27 18:27:58 UTC
pcp-3.11.3-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2016-06-27 22:52:59 UTC
pcp-3.11.3-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2016-06-27 22:56:44 UTC
pcp-3.11.3-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2016-07-09 20:18:54 UTC
pcp-3.11.3-1.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.


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