Bug 1352461

Summary: PCP options -s and -T are mutually exclusive
Product: [Fedora] Fedora Reporter: Marko Myllynen <myllynen>
Component: pcpAssignee: Nathan Scott <nathans>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: brolley, fche, lberk, mgoodwin, nathans, pcp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pcp-4.0.0-2.fc26 pcp-4.0.0-2.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-27 16:55:46 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:

Description Marko Myllynen 2016-07-04 08:26:58 UTC
Description of problem:
$ pmrep -s 3 -T 1m -x -p -C mem.util.used
pmrep: at most one of -T and -s allowed
[...]

The same happens with other tools as well since this is coming from libpcp. PCPIntro(1) does not describe this restriction and in fact some clients (like pmrep(1)) would calculate the interval if -s and -T would be accepted together:

       -T   When  reporting archived metrics, the report will be restricted to
            those records logged before or at endtime.  Refer  to  PCPIntro(1)
            for a complete description of the syntax for endtime.

            When used to define the runtime before pmrep will exit, if no sam‐
            ples is given (see -s) then the number of reported samples depends
            on  interval  (see -t).  If samples is given then interval will be
            adjusted to allow reporting of samples during  runtime.   In  case
            all  of  -T,  -s,  and -t are given, endtime determines the actual
            time pmrep will run.

Comment 1 Fedora End Of Life 2017-07-25 21:34:00 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 2 Jan Kurik 2017-08-15 08:14:56 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle.
Changing version to '27'.

Comment 3 Marko Myllynen 2017-11-27 09:43:09 UTC
Filed https://github.com/performancecopilot/pcp/issues/379 about this.

Comment 4 Nathan Scott 2017-12-11 21:10:28 UTC
Resolved upstream, fix will be in pcp-4.0.0.

Comment 5 Fedora Update System 2018-02-16 04:47:18 UTC
pcp-4.0.0-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-5d50796a5d

Comment 6 Fedora Update System 2018-02-16 04:47:50 UTC
pcp-4.0.0-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-1a78dc89ec

Comment 7 Fedora Update System 2018-02-16 15:58:28 UTC
pcp-4.0.0-1.fc26 has been pushed to the Fedora 26 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-2018-1a78dc89ec

Comment 8 Fedora Update System 2018-02-16 16:28:21 UTC
pcp-4.0.0-1.fc27 has been pushed to the Fedora 27 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-2018-5d50796a5d

Comment 9 Fedora Update System 2018-02-19 21:40:07 UTC
pcp-4.0.0-2.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-84c14418ef

Comment 10 Fedora Update System 2018-02-19 21:41:01 UTC
pcp-4.0.0-2.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-6e29ed8f6d

Comment 11 Fedora Update System 2018-02-20 17:49:42 UTC
pcp-4.0.0-2.fc26 has been pushed to the Fedora 26 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-2018-6e29ed8f6d

Comment 12 Fedora Update System 2018-02-20 18:18:16 UTC
pcp-4.0.0-2.fc27 has been pushed to the Fedora 27 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-2018-84c14418ef

Comment 13 Fedora Update System 2018-02-27 16:55:46 UTC
pcp-4.0.0-2.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2018-02-27 17:20:56 UTC
pcp-4.0.0-2.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.