Project

General

Profile

Bug #20688

radosgw-admin: bucket rm with --bypass-gc and without --purge-data doesn't throw error message

Added by Abhishek Varshney 5 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
07/19/2017
Due date:
% Done:

0%

Source:
Tags:
Backport:
jewel kraken
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Release:
Needs Doc:
No

Description

When radosgw-admin bucket rm is invoked with --bypass-gc and without --purge-data flag, bucket deletion is not allowed. But this does not throw the right error message to the user.

Steps to reproduce

  1. Create a bucket and upload some objects to it.
  2. Try to delete the bucket with --bypass-gc flag. Deletion fails without an error message, which is misleading.
    # bin/radosgw-admin bucket rm --bucket=test --bypass-gc
    2017-07-19 12:03:59.764220 7f31b4fe8a00 -1 WARNING: all dangerous and experimental features are enabled.
    2017-07-19 12:03:59.764658 7f31b4fe8a00 -1 WARNING: all dangerous and experimental features are enabled.
    2017-07-19 12:03:59.768206 7f31b4fe8a00 -1 WARNING: all dangerous and experimental features are enabled.
    
  3. Try getting stats for the bucket.
     
    # bin/radosgw-admin bucket stats --bucket=test > /dev/null 2>&1
    # echo $?
    0
    
  4. Now delete bucket with additional --purge-data flag
    # bin/radosgw-admin bucket rm --bucket=test --bypass-gc --purge-data
    2017-07-19 12:16:05.165853 7f6639b8ca00 -1 WARNING: all dangerous and experimental features are enabled.
    2017-07-19 12:16:05.166295 7f6639b8ca00 -1 WARNING: all dangerous and experimental features are enabled.
    2017-07-19 12:16:05.169515 7f6639b8ca00 -1 WARNING: all dangerous and experimental features are enabled.
    
  5. Now bucket stats fails.
    # bin/radosgw-admin bucket stats --bucket=test > /dev/null 2>&1
    # echo $?
    2
    

    The bucket is now actually deleted.

Related issues

Copied to rgw - Backport #20709: jewel: radosgw-admin: bucket rm with --bypass-gc and without --purge-data doesn't throw error message Resolved
Copied to rgw - Backport #20710: kraken: radosgw-admin: bucket rm with --bypass-gc and without --purge-data doesn't throw error message Rejected

History

#2 Updated by Casey Bodley 5 months ago

  • Status changed from New to Testing
  • Backport set to jewel kraken

#3 Updated by Casey Bodley 5 months ago

  • Status changed from Testing to Pending Backport

#4 Updated by Nathan Cutler 5 months ago

  • Copied to Backport #20709: jewel: radosgw-admin: bucket rm with --bypass-gc and without --purge-data doesn't throw error message added

#5 Updated by Nathan Cutler 5 months ago

  • Copied to Backport #20710: kraken: radosgw-admin: bucket rm with --bypass-gc and without --purge-data doesn't throw error message added

#6 Updated by Nathan Cutler 3 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF