diff options
author | Bala Konda Reddy M <bala12352@gmail.com> | 2020-06-18 20:40:48 +0530 |
---|---|---|
committer | Arthy Loganathan <aloganat@redhat.com> | 2020-06-24 09:00:20 +0000 |
commit | 3f5e3553cebceb95e8d051e27f18a26f9c8f725d (patch) | |
tree | 91974782a046dc771537e30edce59d3e2d0a1764 /tests/functional/afr/test_replace_brick_self_heal_io_in_progress.py | |
parent | 17bda60f4df608f93963a4e8e984cfe9a09851a2 (diff) |
[TestFix] Remove hot and cold bricks list on regular volumes
For the non-tiered volume types, In few test cases while bringing
bricks offline, collecting both hot_tier_bricks and cold_tier_bricks
and it is not needed to collect hot and cold tier bricks.
Removing the hot and cold tiered bricks and collecting only bricks
of the particular volume as mentioned below.
Removing below section
```
bricks_to_bring_offline_dict = (select_bricks_to_bring_offline(
self.mnode, self.volname))
bricks_to_bring_offline = list(filter(None, (
bricks_to_bring_offline_dict['hot_tier_bricks'] +
bricks_to_bring_offline_dict['cold_tier_bricks'] +
bricks_to_bring_offline_dict['volume_bricks'])))
```
Modifying as below for bringing bricks offline.
```
bricks_to_bring_offline = bricks_to_bring_offline_dict['volume_bricks']
```
Change-Id: Icb1dc4a79cf311b686d839f2c9390371e42142f7
Signed-off-by: Bala Konda Reddy M <bala12352@gmail.com>
Diffstat (limited to 'tests/functional/afr/test_replace_brick_self_heal_io_in_progress.py')
-rw-r--r-- | tests/functional/afr/test_replace_brick_self_heal_io_in_progress.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/functional/afr/test_replace_brick_self_heal_io_in_progress.py b/tests/functional/afr/test_replace_brick_self_heal_io_in_progress.py index 4a69d5700..198351589 100644 --- a/tests/functional/afr/test_replace_brick_self_heal_io_in_progress.py +++ b/tests/functional/afr/test_replace_brick_self_heal_io_in_progress.py @@ -140,10 +140,7 @@ class TestAFRSelfHeal(GlusterBaseClass): # Select bricks to bring offline bricks_to_bring_offline_dict = (select_bricks_to_bring_offline( self.mnode, self.volname)) - bricks_to_bring_offline = list(filter(None, ( - bricks_to_bring_offline_dict['hot_tier_bricks'] + - bricks_to_bring_offline_dict['cold_tier_bricks'] + - bricks_to_bring_offline_dict['volume_bricks']))) + bricks_to_bring_offline = bricks_to_bring_offline_dict['volume_bricks'] # Bring brick offline ret = bring_bricks_offline(self.volname, bricks_to_bring_offline) |