Project

General

Profile

Actions

Feature #5605

closed

rgw: teuthology tests to check bucket issues in multi region env

Added by Yehuda Sadeh almost 11 years ago. Updated over 10 years ago.

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

0%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Test 2a: test bucket listing on secondary

1. create a bucket on master region

(actually using boto)
$ s3 create buck1

(sync)

2. check if bucket exists on both master and secondary

$ radosgw-admin metadata get --region=master bucket:buck1
$ radosgw-admin metadata get --region=master bucket.instance:buck1:<bucket id>

- verify bucket is linked
- verify owner uid correct

$ radosgw-admin metadata get --region=second bucket:buck1
$ radosgw-admin metadata get --region=second bucket.instance:buck1:<bucket id>

compare both results to master

Test 2b : test bucket removal on secondary

1. create a bucket on master region ( + sync)

2. verify bucket exists on secondary

3. try to remove bucket on secondary (should fail)

4. remove bucket from master (+ sync)

5. verify bucket does not exist on secondary

Test 2c: test bucket rm / recreate at the same sync cycle

1. create a bucket on master region ( + sync) on user1

2. remove bucket, and recreate same bucket on user2

3. sync

4. Check on secondary whether user1 doesn't own the bucket, and user2 does own the bucket

Test 2d: test bucket metadata change

1. create bucket on master ( + sync)

2. verify that bucket metadata on secondary matches master

3. modify bucket metadata on master (e.g., mtime)

radosgw-admin metadata set --rgw-region=master bucket:bucket2d < bucket.md

4. sync, verify bucket metadata on secondary matches

Actions

Also available in: Atom PDF