Project

General

Profile

Bug #41895

Bucket name with space fails rados command

Added by Pietari Hyvärinen over 4 years ago. Updated over 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
common
Target version:
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

while trying to get rid of failed bucket in multisite sync environment, found out that there due to space in bucket name, rados command fails to remove any objects from the pools

rados -p funkypool.rgw.log rm bucket.sync-status.aeed5d68-eeee-aaaa-bbbb-51b085dd286c:DUX4 Raw MS DATA:aeed5d68-eeee-aaaa-bbbb-51b085dd286c.426911151.3218
error removing funkypool.rgw.log>bucket.sync-status.aeed5d68-eeee-aaaa-bbbb-51b085dd286c:DUX4: (2) No such file or directory

Anyhow listing shows the object just fine

# rados -p funkypool.rgw.log ls |grep "DUX4 Raw MS DATA" 
bucket.sync-status.aeed5d68-eeee-aaaa-bbbb-51b085dd286:DUX4 Raw MS DATA:aeed5d68-eeee-aaaa-bbbb-51b085dd286.426911151.3218

History

#1 Updated by Pietari Hyvärinen over 4 years ago

Pietari Hyvärinen wrote:

while trying to get rid of failed bucket in multisite sync environment, found out that there due to space in bucket name, rados command fails to remove any objects from the pools
[...]

Anyhow listing shows the object just fine
[...]

internal bug. There was a script in path before rados command that added --id in front of the command.

#!/bin/bash
  1. Wrapper for rados so you don't have to enter --id $RGW_NAME always
  2. Managed by puppet
    /bin/rados --id rgw.gwuser $*

Also available in: Atom PDF