Skip to content

Commit 37816ef

Browse files
authored
Merge pull request ceph#56874 from smanjara/wip-shilpa-multisite-tests
qa/multisite: stabilize multisite testing
2 parents a0d71e5 + 6753e27 commit 37816ef

File tree

7 files changed

+67
-8
lines changed

7 files changed

+67
-8
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
roles:
2-
- [c1.mon.a, c1.mgr.x, c1.osd.0, c1.osd.1, c1.osd.2, c1.client.0, c1.client.1]
3-
- [c2.mon.a, c2.mgr.x, c2.osd.0, c2.osd.1, c2.osd.2, c2.client.0, c2.client.1]
2+
- [c1.mon.a, c1.osd.0, c1.osd.1, c1.osd.2, c1.client.0]
3+
- [c1.mgr.x, c1.osd.3, c1.osd.4, c1.osd.5, c1.client.1]
4+
- [c2.mon.a, c2.osd.0, c2.osd.1, c2.osd.2, c2.client.0]
5+
- [c2.mgr.x, c2.osd.3, c2.osd.4, c2.osd.5, c2.client.1]

qa/suites/rgw/multisite/overrides.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ overrides:
1515
rgw curl low speed time: 300
1616
rgw md log max shards: 4
1717
rgw data log num shards: 4
18+
rgw data sync poll interval: 5
19+
rgw meta sync poll interval: 5
1820
rgw sync obj etag verify: true
19-
rgw sync meta inject err probability: 0.1
20-
rgw sync data inject err probability: 0.1
21+
rgw sync meta inject err probability: 0
22+
rgw sync data inject err probability: 0
2123
rgw:
2224
compression type: random

qa/suites/rgw/multisite/realms/three-zones.yaml renamed to qa/suites/rgw/multisite/realms/three-zones.yaml.disabled

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ overrides:
88
is_master: true
99
is_default: true
1010
endpoints: [c1.client.0]
11-
enabled_features: ['resharding']
11+
enabled_features: ['resharding', 'notification_v2']
1212
zones:
1313
- name: test-zone1
1414
is_master: true

qa/suites/rgw/multisite/realms/two-zonegroup.yaml renamed to qa/suites/rgw/multisite/realms/two-zonegroup.yaml.disabled

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ overrides:
88
is_master: true
99
is_default: true
1010
endpoints: [c1.client.0]
11-
enabled_features: ['resharding']
11+
enabled_features: ['resharding', 'notification_v2']
1212
zones:
1313
- name: a1
1414
is_master: true
@@ -19,7 +19,7 @@ overrides:
1919
- name: b
2020
is_default: true
2121
endpoints: [c2.client.0]
22-
enabled_features: ['resharding']
22+
enabled_features: ['resharding', 'notification_v2']
2323
zones:
2424
- name: b1
2525
is_master: true
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
overrides:
2+
rgw-multisite:
3+
realm:
4+
name: test-realm
5+
is default: true
6+
zonegroups:
7+
- name: test-zonegroup
8+
is_master: true
9+
is_default: true
10+
endpoints: [c1.client.0]
11+
enabled_features: ['resharding', 'notification_v2']
12+
zones:
13+
- name: test-zone1
14+
is_master: true
15+
is_default: true
16+
endpoints: [c1.client.0]
17+
- name: test-zone2
18+
is_default: true
19+
endpoints: [c2.client.0]
20+
rgw-multisite-tests:
21+
args: [tests.py, -a, '!fails_with_rgw']

qa/suites/rgw/multisite/tasks/test_multi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ tasks:
1414
- rgw-multisite:
1515
- rgw-multisite-tests:
1616
config:
17-
reconfigure_delay: 60
17+
reconfigure_delay: 90

src/test/rgw/rgw_multi/tests.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,6 +1536,10 @@ def make_test_bucket():
15361536
cold_bilog = bilog_list(zone.zone, cold_bucket.name)
15371537
assert(len(cold_bilog) == 0)
15381538

1539+
# TODO: disable failing tests temporarily
1540+
# until they are fixed
1541+
1542+
@attr('fails_with_rgw')
15391543
def test_bucket_reshard_index_log_trim():
15401544
zonegroup = realm.master_zonegroup()
15411545
zonegroup_conns = ZonegroupConns(zonegroup)
@@ -1766,6 +1770,8 @@ def bucket_keys_eq(zone1, zone2, bucket_name):
17661770
zone2.name)
17671771
assert False
17681772

1773+
1774+
@attr('fails_with_rgw')
17691775
@attr('bucket_reshard')
17701776
def test_bucket_sync_run_basic_incremental():
17711777
"""
@@ -1831,6 +1837,7 @@ def trash_bucket(zone, bucket_name):
18311837
cmd += ['--bucket', bucket_name]
18321838
zone.cluster.admin(cmd)
18331839

1840+
@attr('fails_with_rgw')
18341841
@attr('bucket_reshard')
18351842
def test_zap_init_bucket_sync_run():
18361843
"""
@@ -1952,6 +1959,7 @@ def test_object_acl():
19521959
after_set_acl = bucket2.get_acl(k)
19531960
assert(len(after_set_acl.acl.grants) == 2) # read grant added on AllUsers
19541961

1962+
@attr('fails_with_rgw')
19551963
@attr('data_sync_init')
19561964
def test_bucket_full_sync_after_data_sync_init():
19571965
zonegroup = realm.master_zonegroup()
@@ -1983,6 +1991,7 @@ def test_bucket_full_sync_after_data_sync_init():
19831991
zonegroup_bucket_checkpoint(zonegroup_conns, bucket.name)
19841992
zonegroup_data_checkpoint(zonegroup_conns)
19851993

1994+
@attr('fails_with_rgw')
19861995
@attr('data_sync_init')
19871996
@attr('bucket_reshard')
19881997
def test_resharded_bucket_full_sync_after_data_sync_init():
@@ -2023,6 +2032,7 @@ def test_resharded_bucket_full_sync_after_data_sync_init():
20232032
zonegroup_bucket_checkpoint(zonegroup_conns, bucket.name)
20242033
zonegroup_data_checkpoint(zonegroup_conns)
20252034

2035+
@attr('fails_with_rgw')
20262036
@attr('data_sync_init')
20272037
def test_bucket_incremental_sync_after_data_sync_init():
20282038
zonegroup = realm.master_zonegroup()
@@ -2060,6 +2070,7 @@ def test_bucket_incremental_sync_after_data_sync_init():
20602070
zonegroup_bucket_checkpoint(zonegroup_conns, bucket.name)
20612071
zonegroup_data_checkpoint(zonegroup_conns)
20622072

2073+
@attr('fails_with_rgw')
20632074
@attr('data_sync_init')
20642075
@attr('bucket_reshard')
20652076
def test_resharded_bucket_incremental_sync_latest_after_data_sync_init():
@@ -2108,6 +2119,7 @@ def test_resharded_bucket_incremental_sync_latest_after_data_sync_init():
21082119
zonegroup_bucket_checkpoint(zonegroup_conns, bucket.name)
21092120
zonegroup_data_checkpoint(zonegroup_conns)
21102121

2122+
@attr('fails_with_rgw')
21112123
@attr('data_sync_init')
21122124
@attr('bucket_reshard')
21132125
def test_resharded_bucket_incremental_sync_oldest_after_data_sync_init():
@@ -2301,6 +2313,7 @@ def check_objects_not_exist(bucket, obj_arr):
23012313
for objname in obj_arr:
23022314
check_object_not_exists(bucket, objname)
23032315

2316+
@attr('fails_with_rgw')
23042317
@attr('sync_policy')
23052318
def test_sync_policy_config_zonegroup():
23062319
"""
@@ -2372,6 +2385,7 @@ def test_sync_policy_config_zonegroup():
23722385

23732386
return
23742387

2388+
@attr('fails_with_rgw')
23752389
@attr('sync_policy')
23762390
def test_sync_flow_symmetrical_zonegroup_all():
23772391
"""
@@ -2429,6 +2443,7 @@ def test_sync_flow_symmetrical_zonegroup_all():
24292443
remove_sync_policy_group(c1, "sync-group")
24302444
return
24312445

2446+
@attr('fails_with_rgw')
24322447
@attr('sync_policy')
24332448
def test_sync_flow_symmetrical_zonegroup_select():
24342449
"""
@@ -2497,6 +2512,7 @@ def test_sync_flow_symmetrical_zonegroup_select():
24972512
remove_sync_policy_group(c1, "sync-group")
24982513
return
24992514

2515+
@attr('fails_with_rgw')
25002516
@attr('sync_policy')
25012517
def test_sync_flow_directional_zonegroup_select():
25022518
"""
@@ -2614,6 +2630,7 @@ def test_sync_flow_directional_zonegroup_select():
26142630
remove_sync_policy_group(c1, "sync-group")
26152631
return
26162632

2633+
@attr('fails_with_rgw')
26172634
@attr('sync_policy')
26182635
def test_sync_single_bucket():
26192636
"""
@@ -2726,6 +2743,7 @@ def test_sync_single_bucket():
27262743
remove_sync_policy_group(c1, "sync-group")
27272744
return
27282745

2746+
@attr('fails_with_rgw')
27292747
@attr('sync_policy')
27302748
def test_sync_different_buckets():
27312749
"""
@@ -2875,6 +2893,7 @@ def test_sync_different_buckets():
28752893
remove_sync_policy_group(c1, "sync-group")
28762894
return
28772895

2896+
@attr('fails_with_rgw')
28782897
@attr('sync_policy')
28792898
def test_sync_multiple_buckets_to_single():
28802899
"""
@@ -2996,6 +3015,7 @@ def test_sync_multiple_buckets_to_single():
29963015
remove_sync_policy_group(c1, "sync-group")
29973016
return
29983017

3018+
@attr('fails_with_rgw')
29993019
@attr('sync_policy')
30003020
def test_sync_single_bucket_to_multiple():
30013021
"""
@@ -3124,6 +3144,7 @@ def start_2nd_rgw(zonegroup):
31243144
z.gateways[1].start()
31253145
log.info('gateway started zone=%s gateway=%s', z.name, z.gateways[1].endpoint())
31263146

3147+
@attr('fails_with_rgw')
31273148
@attr('rgw_down')
31283149
def test_bucket_create_rgw_down():
31293150
zonegroup = realm.master_zonegroup()
@@ -3141,6 +3162,7 @@ def test_bucket_create_rgw_down():
31413162
finally:
31423163
start_2nd_rgw(zonegroup)
31433164

3165+
@attr('fails_with_rgw')
31443166
@attr('rgw_down')
31453167
def test_bucket_remove_rgw_down():
31463168
zonegroup = realm.master_zonegroup()
@@ -3166,6 +3188,7 @@ def test_bucket_remove_rgw_down():
31663188
finally:
31673189
start_2nd_rgw(zonegroup)
31683190

3191+
@attr('fails_with_rgw')
31693192
@attr('rgw_down')
31703193
def test_object_sync_rgw_down():
31713194
zonegroup = realm.master_zonegroup()
@@ -3177,6 +3200,7 @@ def test_object_sync_rgw_down():
31773200
finally:
31783201
start_2nd_rgw(zonegroup)
31793202

3203+
@attr('fails_with_rgw')
31803204
@attr('rgw_down')
31813205
def test_object_delete_rgw_down():
31823206
zonegroup = realm.master_zonegroup()
@@ -3188,6 +3212,7 @@ def test_object_delete_rgw_down():
31883212
finally:
31893213
start_2nd_rgw(zonegroup)
31903214

3215+
@attr('fails_with_rgw')
31913216
@attr('rgw_down')
31923217
def test_concurrent_versioned_object_incremental_sync_rgw_down():
31933218
zonegroup = realm.master_zonegroup()
@@ -3199,6 +3224,7 @@ def test_concurrent_versioned_object_incremental_sync_rgw_down():
31993224
finally:
32003225
start_2nd_rgw(zonegroup)
32013226

3227+
@attr('fails_with_rgw')
32023228
@attr('rgw_down')
32033229
def test_suspended_delete_marker_full_sync_rgw_down():
32043230
zonegroup = realm.master_zonegroup()
@@ -3210,6 +3236,7 @@ def test_suspended_delete_marker_full_sync_rgw_down():
32103236
finally:
32113237
start_2nd_rgw(zonegroup)
32123238

3239+
@attr('fails_with_rgw')
32133240
@attr('rgw_down')
32143241
def test_bucket_acl_rgw_down():
32153242
zonegroup = realm.master_zonegroup()
@@ -3221,6 +3248,7 @@ def test_bucket_acl_rgw_down():
32213248
finally:
32223249
start_2nd_rgw(zonegroup)
32233250

3251+
@attr('fails_with_rgw')
32243252
@attr('rgw_down')
32253253
def test_bucket_sync_enable_right_after_disable_rgw_down():
32263254
zonegroup = realm.master_zonegroup()
@@ -3232,6 +3260,7 @@ def test_bucket_sync_enable_right_after_disable_rgw_down():
32323260
finally:
32333261
start_2nd_rgw(zonegroup)
32343262

3263+
@attr('fails_with_rgw')
32353264
@attr('rgw_down')
32363265
def test_multipart_object_sync_rgw_down():
32373266
zonegroup = realm.master_zonegroup()
@@ -3243,6 +3272,7 @@ def test_multipart_object_sync_rgw_down():
32433272
finally:
32443273
start_2nd_rgw(zonegroup)
32453274

3275+
@attr('fails_with_rgw')
32463276
@attr('rgw_down')
32473277
def test_bucket_sync_run_basic_incremental_rgw_down():
32483278
zonegroup = realm.master_zonegroup()
@@ -3254,6 +3284,7 @@ def test_bucket_sync_run_basic_incremental_rgw_down():
32543284
finally:
32553285
start_2nd_rgw(zonegroup)
32563286

3287+
@attr('fails_with_rgw')
32573288
@attr('rgw_down')
32583289
def test_role_sync_rgw_down():
32593290
zonegroup = realm.master_zonegroup()
@@ -3265,6 +3296,7 @@ def test_role_sync_rgw_down():
32653296
finally:
32663297
start_2nd_rgw(zonegroup)
32673298

3299+
@attr('fails_with_rgw')
32683300
@attr('rgw_down')
32693301
def test_bucket_full_sync_after_data_sync_init_rgw_down():
32703302
zonegroup = realm.master_zonegroup()
@@ -3276,6 +3308,7 @@ def test_bucket_full_sync_after_data_sync_init_rgw_down():
32763308
finally:
32773309
start_2nd_rgw(zonegroup)
32783310

3311+
@attr('fails_with_rgw')
32793312
@attr('rgw_down')
32803313
def test_sync_policy_config_zonegroup_rgw_down():
32813314
zonegroup = realm.master_zonegroup()
@@ -3287,6 +3320,7 @@ def test_sync_policy_config_zonegroup_rgw_down():
32873320
finally:
32883321
start_2nd_rgw(zonegroup)
32893322

3323+
@attr('fails_with_rgw')
32903324
@attr('rgw_down')
32913325
def test_sync_flow_symmetrical_zonegroup_all_rgw_down():
32923326
zonegroup = realm.master_zonegroup()

0 commit comments

Comments
 (0)