Project

General

Profile

Bug #3513

rgw log show error

Added by Lokesh Krishnappa over 11 years ago. Updated about 11 years ago.

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

0%

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

Description

hi ,
am using, ubuntu 12.04 lts operating with kernel version '3.2.0-23-generic'
and ceph version '0.52-958-gdb7c419 (db7c41934b6e894c7d5a01ddf1a3592744c3d73c)' in single machine for rgw testing.

when am executing the command 'radosgw-admin log show --bucket = bucket --bucket-id = 11221.1', getting the following error message : object or (at least one of date, bucket, bucket-id) were not specified . i have specified the bucket name and bucket id even though it showing same error .
the following is the output format:
lokesh@lokesh:~$ radosgw-admin log show --bucket = bucket --bucket-id = 11221.1
object or (at least one of date, bucket, bucket-id) were not specified

verifcation :
lokesh@lokesh:~$ radosgw-admin bucket stats --uid=radosgw
[ { "bucket": "bucket",
"pool": ".rgw.buckets",
"id": "11221.1",
"marker": "11221.1",
"owner": "radosgw",
"usage": {}}]

log show is failed to display bucket log details .
please reply.
thanks

Lokesh

History

#1 Updated by Yehuda Sadeh over 11 years ago

  • Source changed from Q/A to Community (user)

It looks like you've put spaces in your command line, should be '--bucket=<bucket>' and not '--bucket = <bucket>', etc.

#2 Updated by Lokesh Krishnappa over 11 years ago

hi Yehuda,
i hve given the space in relevant place and tried with as u r example . its not working ..

Yehuda Sadeh wrote:

It looks like you've put spaces in your command line, should be '--bucket=<bucket>' and not '--bucket = <bucket>', etc.

#3 Updated by Chris Holcombe about 11 years ago

I experienced this also on ubuntu 12.10 0.56.1-1

root@dlcephgw01:~# radosgw-admin log show --bucket=chris --date=2013-01-01
object or (at least one of date, bucket, bucket-id) were not specified
usage: radosgw-admin <cmd> [options...]

dmick on the irc channel suggested this patch:
(5:18:15 PM) dmick: if (object.empty() && (date.empty() || bucket_name.empty() || bucket_id.empty()))
(5:18:28 PM) dmick: those last || should be &&

#4 Updated by Dan Mick about 11 years ago

Actually I guess the && should be || and the || should be && (the old DeMorgan's rule)

#5 Updated by Dan Mick about 11 years ago

Nope, I had it wrong; the required params are: object or all three of date, bucket, and bucket-id.
Message change committed:

371e6fbed624ececb385663a59dad907e9153d6a

#6 Updated by Dan Mick about 11 years ago

  • Status changed from New to Resolved

Also available in: Atom PDF