Merge pull request #1136 from ceph/wip-16129

rgw: add sleep to let the sync agent init

Reviewed-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
Casey Bodley 2016-09-16 10:43:52 -04:00 committed by GitHub
commit f51a65523a
2 changed files with 4 additions and 0 deletions

View File

@ -57,4 +57,6 @@ tasks:
max-entries: 10 max-entries: 10
src: client.0 src: client.0
dest: client.1 dest: client.1
- sleep:
duration: 30
- radosgw-admin: - radosgw-admin:

View File

@ -262,6 +262,8 @@ def task(ctx, config):
(err2, out2) = rgwadmin(ctx, dest_client, (err2, out2) = rgwadmin(ctx, dest_client,
['metadata', 'get', 'bucket:{bucket_name}'.format(bucket_name=bucket_name2)], ['metadata', 'get', 'bucket:{bucket_name}'.format(bucket_name=bucket_name2)],
check_status=True) check_status=True)
log.debug('metadata 1 %r', out1)
log.debug('metadata 2 %r', out2)
assert out1 == out2 assert out1 == out2
# get the bucket.instance info and compare that # get the bucket.instance info and compare that