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 726097

Summary: `report-cli --delete $DIR' won't remove dump dir
Product: Red Hat Enterprise Linux 6 Reporter: Michal Nowak <mnowak>
Component: libreportAssignee: Nikola Pajkovsky <npajkovs>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 6.2CC: dhoward, kklic, ohudlick, rvokal
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libreport-2.0.5-6.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 12:14:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michal Nowak 2011-07-27 14:19:38 UTC
Description of problem:

`report-cli --delete $DIR' is not removing dump dir.

[newman@dhcp-25-35 abrt-should-return-rating-0-on-fail]$ sudo report-cli --delete /var/spool/abrt/ccpp-1310991931-5029/
Usage: report-cli [-vsp] -l[f] [-D BASE_DIR]...
or: report-cli [-vsp] -i[f] DUMP_DIR
or: report-cli [-vsp] -L[PREFIX] [DUMP_DIR]
or: report-cli [-vsp] -e EVENT DUMP_DIR
or: report-cli [-vsp] -a[y] DUMP_DIR
or: report-cli [-vsp] -r[y|o] DUMP_DIR
or: report-cli [-vsp] -d DUMP_DIR

    -l, --list                  List not yet reported problems, or all with -f
    -D BASE_DIR                 Directory to list problems from (default: -D $HOME/.abrt/spool -D /var/spool/abrt)
    -i, --info                  Print information about DUMP_DIR (detailed with -f)
    -L[PREFIX]                  List possible events [which start with PREFIX]
    -e EVENT                    Run EVENT on DUMP_DIR
    -a, --analyze               Run analyze event(s) on DUMP_DIR
    -r, --report                Analyze and report problem data in DUMP_DIR
    -d, --delete                Remove DUMP_DIR
    -V, --version               Display version and exit
    -f, --full                  Full listing
    -y, --always                Noninteractive: don't ask questions, assume 'yes'
    -o, --report-only           With -r: do not run analyzers, run only reporters
    -v, --verbose               Be verbose
    -s                          Log to syslog
    -p                          Add program names to log

[newman@dhcp-25-35 abrt-should-return-rating-0-on-fail]$ echo $?
1

[newman@dhcp-25-35 abrt-should-return-rating-0-on-fail]$ ll /var/spool/abrt/ccpp-1310991931-5029/
total 1600
-rw-r-----. 1 abrt newman       4 Jul 18 14:25 analyzer
-rw-r-----. 1 abrt newman       6 Jul 18 14:25 architecture
-rw-r-----. 1 abrt newman    2331 Jul 27 16:00 backtrace
-rw-r-----. 1 abrt newman       1 Jul 27 16:00 backtrace_rating
[...]

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

abrt-2.0.4-1.el6.x86_64
libreport-2.0.5-1.el6.x86_64
btparser-0.13-1.el6.x86_64

How reproducible:

always

Comment 3 Nikola Pajkovsky 2011-08-04 14:50:24 UTC
I see. Fix for that is not yet in cvs. If you need to delete dump dir use:

$ abrt-cli rm DUMP_DIR [DUMP_DIR...].


Usage:
  report-cli [-vsp] -r[y|o|d] DUMP_DIR

-d, --delete                Remove DUMP_DIR after reporting

Comment 7 errata-xmlrpc 2011-12-06 12:14:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1598.html