Project

General

Profile

Actions

Feature #463

closed

tool to capture debug info

Added by Sage Weil over 13 years ago. Updated over 13 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
-
Target version:
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

- /usr/bin/ binary
- /usr/lib/debug/usr/bin symbol binary (if any)
- core files (if any)
- logs

Maybe it should check that any found core files match the binary before including them (the default /core could be anything).

It should probably take a (required?) argument specifying the tar.gz with all the info.

Actions #1

Updated by Yehuda Sadeh over 13 years ago

commit:baa3772b1558af280a878c7b32b1d739c4054ed3 introduces cdebugpack. Generates a tar.gz (name needs to be specified on the command line). Included info is the cmon/cmds/cosd binaries, the log directory and core files. At the moment it search for the core files in a few predefined places, but doesn't try to be smart about it.

Actions #2

Updated by Sage Weil over 13 years ago

(04:08:30 PM) /slip: logs, binaries, core
(04:08:36 PM) /slip: /usr/lib/debug binary too, if it's there
(04:08:42 PM) /slip: ceph.conf
(04:08:50 PM) /slip: maybe ceph -s output?
(04:08:57 PM) /slip: ceph osd dump , ceph mds dump
ceph pg dump

Actions #3

Updated by Yehuda Sadeh over 13 years ago

  • Status changed from New to Resolved
Actions #4

Updated by Sage Weil over 13 years ago

  • Status changed from Resolved to In Progress
  • Assignee changed from Yehuda Sadeh to Sage Weil

add to deb, rpm packages

Actions #5

Updated by Sage Weil over 13 years ago

Yehuda can you make a quick man page?

Actions #6

Updated by Wido den Hollander over 13 years ago

There is a little bug in "cebugpack".

/bin/sh is used as interpreter. On Debian systems /bin/sh is symlinked to /bin/bash, but on Ubuntu systems it is linked to /bin/dash

When running the tool on Ubuntu you get:

root@node01:/usr/src/ceph/src# ./cdebugpack 
[: 52: unexpected operator
./cdebugpack: 55: Bad substitution
root@node01:/usr/src/ceph/src#

Changing to /bin/bash as interpreter fixes it.

Actions #7

Updated by Sage Weil over 13 years ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF