On 10/30/2013 01:54 AM, Mark Kirkwood wrote:
On 29/10/13 20:53, lixuehui wrote:Hi,list From the document that a radosgw-agent's right info should like thisINFO:radosgw_agent.sync:Starting incremental sync INFO:radosgw_agent.worker:17910 is processing shard number 0 INFO:radosgw_agent.worker:shard 0 has 0 entries after '' INFO:radosgw_agent.worker:finished processing shard 0 INFO:radosgw_agent.worker:17910 is processing shard number 1 INFO:radosgw_agent.sync:1/64 shards processed INFO:radosgw_agent.worker:shard 1 has 0 entries after '' INFO:radosgw_agent.worker:finished processing shard 1 INFO:radosgw_agent.sync:2/64 shards processed my radosgw-agent return error like out = request(connection, 'get', '/admin/log', dict(type=shard_type)) File "/usr/lib/python2.7/dist-packages/radosgw_agent/client.py", line 76, in request return result.json() AttributeError: 'Response' object has no attribute 'json' ERROR:root:error doing incremental sync, trying again later Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/radosgw_agent/cli.py", line 247, in main args.max_entries) File "/usr/lib/python2.7/dist-packages/radosgw_agent/sync.py", line 22, in sync_incremental num_shards = client.num_log_shards(self.src_conn, self._type) File "/usr/lib/python2.7/dist-packages/radosgw_agent/client.py", line 142, in num_log_shards out = request(connection, 'get', '/admin/log', dict(type=shard_type)) File "/usr/lib/python2.7/dist-packages/radosgw_agent/client.py", line 76, in request Maybe there anyone ever encountered the same problem. Any help is appropriated!I received this error too - although I was attempting a 'full' sync at the time. I surmised that maybe the response object == None at that point? But otherwise I had no idea.
This particular error is coming from a too-old version of the python-requests package. We weren't setting a lower bound for that library
version before, but are now. If you install with the bootstrap script you should get a new enough version in a virtualenv, and you can run ./radosgw-agent from your git checkout.
I was also confused about: - was this even supposed to work with ceph 0.71?
No, there ended up being a bug and an admin api change, so if you want to try it early you can use the next branch. You'll need to restart the osds and radosgw if you're upgrading. It'll be backported to dumpling as well, but the backport hasn't been finished yet.
- which radosgw-agent to use: * https://github.com/ceph/radosgw-agent
This one.
* https://github.com/jdurgin/radosgw-agent Given that the newly updated docs: http://ceph.com/docs/wip-doc-radosgw/radosgw/federated-config/ suggest ceph 0.72, I'm wondering if we just need to be more patient?
Note that the wip in the url means it's a work-in-progress branch, so it's not totally ready yet either. If anything is confusing or missing, let us know.
However - Inktank folks - there is a lot of interest in the feature, so forgive us if we are jumping the gun, but also the current state of play is murky and some clarification would not go amiss!
It's great people are interested in trying this early. It's very helpful to find issues sooner (like the requests library version). Thanks! Josh _______________________________________________ ceph-users mailing list [email protected] http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
