Bug 1336130

Summary: derived metrics between singleton and indom'd metrics result in bad result indom
Product: [Fedora] Fedora Reporter: Frank Ch. Eigler <fche>
Component: pcpAssignee: Nathan Scott <nathans>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: brolley, fche, lberk, mgoodwin, myllynen, nathans, pcp, scox
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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:
Story Points: ---
Clone Of:
: 1337212 (view as bug list) Environment:
Last Closed: 2016-06-27 18:28:15 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1337212    
Attachments:
Description Flags
possible patch
none
possible patch none

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.