Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1591504

Summary: dmstats list --group "Command failed."
Product: Red Hat Enterprise Linux 7 Reporter: Corey Marthaler <cmarthal>
Component: lvm2Assignee: Bryn M. Reeves <bmr>
lvm2 sub component: Default / Unclassified QA Contact: cluster-qe <cluster-qe>
Status: CLOSED DUPLICATE Docs Contact:
Severity: low    
Priority: unspecified CC: agk, bmr, heinzm, jbrassow, msnitzer, prajnoha, prockai, zkabelac
Version: 7.6   
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-28 13:28:54 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:
Attachments:
Description Flags
verbose dmstats attempt none

Description Corey Marthaler 2018-06-14 22:21:02 UTC
Description of problem:

dmstats create --filemap /mnt/span_second_part_primary_raid5_2legs_1/host-092.virt.lab.msp.redhat.com_load

[root@host-092 ~]# dmstats report --group

[root@host-092 ~]# dmstats list --group
Command failed.
Name                                  GrpID RgID ObjType RgStart RgSize  #Areas ArSize  ProgID 
host-092.virt.lab.msp.redhat.com_load     0    0 group     9.00m 977.00k      1 977.00k dmstats
[root@host-092 ~]# echo $?
1

Version-Release number of selected component (if applicable):
3.10.0-905.el7.x86_64

lvm2-2.02.178-2.el7    BUILT: Thu Jun 14 06:17:42 CDT 2018
lvm2-libs-2.02.178-2.el7    BUILT: Thu Jun 14 06:17:42 CDT 2018
lvm2-cluster-2.02.178-2.el7    BUILT: Thu Jun 14 06:17:42 CDT 2018
lvm2-lockd-2.02.178-2.el7    BUILT: Thu Jun 14 06:17:42 CDT 2018
lvm2-python-boom-0.8.5-5.el7    BUILT: Thu Jun 14 06:21:09 CDT 2018
cmirror-2.02.178-2.el7    BUILT: Thu Jun 14 06:17:42 CDT 2018
device-mapper-1.02.147-2.el7    BUILT: Thu Jun 14 06:17:42 CDT 2018
device-mapper-libs-1.02.147-2.el7    BUILT: Thu Jun 14 06:17:42 CDT 2018
device-mapper-event-1.02.147-2.el7    BUILT: Thu Jun 14 06:17:42 CDT 2018
device-mapper-event-libs-1.02.147-2.el7    BUILT: Thu Jun 14 06:17:42 CDT 2018
device-mapper-persistent-data-0.7.3-3.el7    BUILT: Tue Nov 14 05:07:18 CST 2017

How reproducible:
Everytime

Comment 2 Corey Marthaler 2018-06-14 22:22:37 UTC
Created attachment 1451633 [details]
verbose dmstats attempt

Comment 3 Bryn M. Reeves 2018-06-15 11:11:28 UTC
Both runs did actually output a report:

Name                                  GrpID RgID ObjType RgStart RgSize  #Areas ArID ArStart ArSize  ProgID 
host-092.virt.lab.msp.redhat.com_load     0    0 area      9.00m 977.00k      1    0   9.00m 977.00k dmstats
host-092.virt.lab.msp.redhat.com_load     0    0 group     9.00m 977.00k      1    0   9.00m 977.00k dmstats

Very odd: off the top of my head I'm not sure what's happening here but there are a bunch of <backtrace> in the output that need tracking down.

What's also odd is that "Command failed." appears before the successful -vvv output.

Any idea on a reproducer? Is there anything odd or unusual about the files?

It'd help to know the file system they are on, although it shouldn't make a difference as it obviously supports the FIEMAP ioctl. Also if you could post the "filefrag -v" it might give some extra hints.