Rados GW and Ceph versions installed:
Version: 0.67.7-1precise
I create a user:
radosgw-admin --name client.radosgw.<hostname> user create --uid test --display-name "Test User"
It outputs some JSON that looks convincing:
{ "user_id": "test",
"display_name": "test user",
"email": "",
"suspended": 0,
"max_buckets": 1000,
"auid": 0,
"subusers": [],
"keys": [
{ "user": "test",
"access_key": "<snip>",
"secret_key": "<snip>"},
{ "user": "test",
"access_key": "<snip>",
"secret_key": "<snip>"}],
"swift_keys": [],
"caps": [],
"op_mask": "read, write, delete",
"default_placement": "",
"placement_tags": []}
There are two keys because I have tried this twice.
I can see it in metadata list:
radosgw-admin --name client.radosgw.<hostname> metadata list user
[
"test",
"us-east-2",
"us-west-1"]
I then try to get user info:
radosgw-admin --name client.radosgw.<hostname> user info test
could not fetch user info: no user info saved
I try to create a bucket with the user using Ruby's aws/s3 API:
equire 'aws/s3'
AWS::S3::Base.establish_connection!(
access_key_id: '<snip>',
secret_access_key: '<snip>',
use_ssl: true,
server: '<snip>',
persistent: true
)
AWS::S3::Bucket.create('test')
file = 'sloth.txt'
AWS::S3::S3Object.store(file, open(file), 'test')
bucket = AWS::S3::Bucket.find('test')
puts bucket
bucket.each do |object|
puts "#{object.key}\t#{object.about['content-length']}\t#{object.about['last-modified']}"
end
And I get the following:
#<AWS::S3::Bucket:0x007f9852854e58>
/Users/greg.poirier/.rvm/gems/ruby-1.9.3-p429/gems/aws-s3-0.6.3/lib/aws/s3/base.rb:235:in `method_missing': undefined local variable or method `name' for #<AWS::S3::Bucket:0x007f9852854e58> (NameError)
from /Users/greg.poirier/.rvm/gems/ruby-1.9.3-p429/gems/aws-s3-0.6.3/lib/aws/s3/bucket.rb:313:in `reload!'
from /Users/greg.poirier/.rvm/gems/ruby-1.9.3-p429/gems/aws-s3-0.6.3/lib/aws/s3/bucket.rb:242:in `objects'
from /Users/greg.poirier/.rvm/gems/ruby-1.9.3-p429/gems/aws-s3-0.6.3/lib/aws/s3/bucket.rb:253:in `each'
from test.rb:21:in `<main>'
The bucket fails to be created:
radosgw-admin --name client.radosgw.<hostname> bucket list
[]
And also this:
radosgw-admin --name client.radosgw.<hostname> metadata list bucket
[]2014-03-12 17:42:42.221112 7f426b779780 -1 failed to list objects pool_iterate returned r=-2
So clearly there is something going on here. My questions:
Is this failure to create a bucket related to do the "no user info saved" error?
What would cause the "no user info saved" error?
What may be causing the bucket to not be created?
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com