Bug 1379457

Summary: Wrong error message for metrics missing help information pminfo -t and pminfo -T
Product: [Fedora] Fedora Reporter: William Cohen <wcohen>
Component: pcpAssignee: Nathan Scott <nathans>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 24CC: brolley, fche, lberk, mbenitez, mgoodwin, nathans, pcp, scox
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-26 22:34:07 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:

Description William Cohen 2016-09-26 19:28:25 UTC
Description of problem:

For metrics missing help information the "pminfo -t" and "pminfo -T" returning a misleading error message:

Error: Unknown or illegal metric identifier

Would expect PM_ERR_TEXT with the following string to be printed in these cases:

"One-line or help text is not available"

Also would expect it not to put in the additional blank lines in the output.

Version-Release number of selected component (if applicable):
pcp-3.11.4-1.fc24.x86_64

How reproducible: Always


Steps to Reproduce:
1. sudo yum install pcp
2.$ pminfo -t disk.dev

Actual results:

$ pminfo -t disk.dev
disk.dev.read [per-disk read operations]
disk.dev.write [per-disk write operations]
disk.dev.total [per-disk total (read+write) operations]
disk.dev.blkread [per-disk block read operations]
disk.dev.blkwrite [per-disk block write operations]
disk.dev.blktotal [per-disk total (read+write) block operations]
disk.dev.read_bytes [per-disk count of bytes read]
disk.dev.write_bytes [per-disk count of bytes written]
disk.dev.total_bytes [per-disk count of total bytes read and written]
disk.dev.read_merge [per-disk count of merged read requests]
disk.dev.write_merge [per-disk count of merged write requests]
disk.dev.avactive [per-disk count of active time]
disk.dev.read_rawactive [per-disk raw count of read response time]
disk.dev.write_rawactive [per-disk raw count of write response time]
disk.dev.total_rawactive [per-disk raw count of I/O response time]
disk.dev.aveq [per-disk time averaged count of request queue length]
disk.dev.scheduler [per-disk I/O scheduler]
disk.dev.await One-line Help: Error: Unknown or illegal metric identifier

disk.dev.r_await One-line Help: Error: Unknown or illegal metric identifier

disk.dev.w_await One-line Help: Error: Unknown or illegal metric identifier

disk.dev.avg_qlen One-line Help: Error: Unknown or illegal metric identifier

disk.dev.avg_rqsz One-line Help: Error: Unknown or illegal metric identifier

disk.dev.util One-line Help: Error: Unknown or illegal metric identifier




Expected results:

$ pminfo -t disk.dev
disk.dev.read [per-disk read operations]
disk.dev.write [per-disk write operations]
disk.dev.total [per-disk total (read+write) operations]
disk.dev.blkread [per-disk block read operations]
disk.dev.blkwrite [per-disk block write operations]
disk.dev.blktotal [per-disk total (read+write) block operations]
disk.dev.read_bytes [per-disk count of bytes read]
disk.dev.write_bytes [per-disk count of bytes written]
disk.dev.total_bytes [per-disk count of total bytes read and written]
disk.dev.read_merge [per-disk count of merged read requests]
disk.dev.write_merge [per-disk count of merged write requests]
disk.dev.avactive [per-disk count of active time]
disk.dev.read_rawactive [per-disk raw count of read response time]
disk.dev.write_rawactive [per-disk raw count of write response time]
disk.dev.total_rawactive [per-disk raw count of I/O response time]
disk.dev.aveq [per-disk time averaged count of request queue length]
disk.dev.scheduler [per-disk I/O scheduler]
disk.dev.await One-line Help: Error: One-line or help text is not available
disk.dev.r_await One-line Help: Error: One-line or help text is not available
disk.dev.w_await One-line Help: Error: One-line or help text is not available
disk.dev.avg_qlen One-line Help: Error: One-line or help text is not available
disk.dev.avg_rqsz One-line Help: Error: One-line or help text is not available
disk.dev.util One-line Help: Error: One-line or help text is not available

Comment 1 Nathan Scott 2016-09-26 22:34:07 UTC

*** This bug has been marked as a duplicate of bug 1336208 ***