Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1510874 - failing with cpio version 2.11 or older
Summary: failing with cpio version 2.11 or older
Alias: None
Product: GlusterFS
Classification: Community
Component: unclassified
Version: mainline
Hardware: x86_64
OS: Linux
Target Milestone: ---
Assignee: Prashant Dhange
QA Contact: Rahul Hinduja
Depends On:
TreeView+ depends on / blocked
Reported: 2017-11-08 11:20 UTC by Prashant Dhange
Modified: 2018-03-15 11:20 UTC (History)
7 users (show)

Fixed In Version: glusterfs-4.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2018-03-15 11:20:03 UTC
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:

Attachments (Terms of Use)

Description Prashant Dhange 2017-11-08 11:20:11 UTC
Description of problem:
When tried with older cpio version, we failed to get proper call trace as cpio 2.11 or older version seems to be not having -D or --directory option.

Version-Release number of selected component (if applicable):
# cpio --version

How reproducible:

Steps to Reproduce:
1. Get script 
2. Use RHEL 6/7 having cpio version 2.11 or less
3. Run # sh /root/01966985/glusterfs-debuginfo-3.8.4-18.el7.x86_64.rpm bt.log

Actual results:
cpio command failing with unrecognised error 

Expected results: should work with all cpio version

Additional info:
# sh /root/01966985/glusterfs-debuginfo-3.8.4-18.el7.x86_64.rpm bt.log 
cpio: unrecognized option '--directory=glusterfs-debuginfo-3.8.4-18.el7.x86_64'
Try `cpio --help' or `cpio --usage' for more information.
eu-addr2line: /root/01966985/glusterfs-debuginfo-3.8.4-18.el7.x86_64/usr/lib/debug/usr/lib64/glusterfs/3.8.4/xlator/features/ No such file or directory
eu-addr2line: /root/01966985/glusterfs-debuginfo-3.8.4-18.el7.x86_64/usr/lib/debug/usr/lib64/glusterfs/3.8.4/xlator/features/ No such file or directory
eu-addr2line: /root/01966985/glusterfs-debuginfo-3.8.4-18.el7.x86_64/usr/lib/debug/usr/lib64/glusterfs/3.8.4/xlator/protocol/ No such file or directory
eu-addr2line: /root/01966985/glusterfs-debuginfo-3.8.4-18.el7.x86_64/usr/lib/debug/usr/lib64/glusterfs/3.8.4/xlator/protocol/ No such file or directory
eu-addr2line: /root/01966985/glusterfs-debuginfo-3.8.4-18.el7.x86_64/usr/lib/debug/usr/lib64/glusterfs/3.8.4/rpc-transport/ No such file or directory
eu-addr2line: /root/01966985/glusterfs-debuginfo-3.8.4-18.el7.x86_64/usr/lib/debug/lib64/ No such file or directory

Comment 2 Prashant Dhange 2017-11-08 11:29:56 UTC
Patch submitted :

Comment 4 Amar Tumballi 2017-11-20 18:19:44 UTC
looks fine. Just that the bug id is given from RHGS, instead of community project GlusterFS.

Comment 5 Worker Ant 2017-11-26 23:05:41 UTC
COMMIT: committed in master by  with a commit message- extras/devel-tools: Fix print-backtrace script

If cpio version is less 2.11 then cpio command failing with
unrecognised option --directory.

Check the cpio version and run rpm2cpio/cpio with or without
-D or --directory option.

Fixes : #359
Change-Id: Ibd440207231807dab1b58291ab661857094f1a4a
BUG: 1510874
Signed-off-by: Prashant D <>

Comment 6 Shyamsundar 2018-03-15 11:20:03 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-4.0.0, please open a new bug report.

glusterfs-4.0.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.


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