Bug 1379457 - Wrong error message for metrics missing help information pminfo -t and pminfo -T
Summary: Wrong error message for metrics missing help information pminfo -t and pminfo -T
Keywords:
Status: CLOSED DUPLICATE of bug 1336208
Alias: None
Product: Fedora
Classification: Fedora
Component: pcp
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Nathan Scott
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-26 19:28 UTC by William Cohen
Modified: 2016-10-11 21:03 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-09-26 22:34:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


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