Skip to content

Commit 5eec1d2

Browse files
authored
Doc: Update setup instructions (#1207)
* Doc: Update setup instructions Signed-off-by: nik-redhat <[email protected]> * Add some packages Signed-off-by: nik-redhat <[email protected]> * Fix hostname Signed-off-by: nik-redhat <[email protected]> * Remove iptables flush Signed-off-by: nik-redhat <[email protected]> * Fix hostname parsing Signed-off-by: nik-redhat <[email protected]>
1 parent 1028a0f commit 5eec1d2

File tree

6 files changed

+35
-12
lines changed

6 files changed

+35
-12
lines changed

README.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
/_/ |_/_____/_____/_/ |_/_/ |_/ /_/
1111
1212

13-
usage: redant_main.py [-h] -c CONFIG_FILE -t TEST_DIR [-l LOG_DIR]
14-
[-ll LOG_LEVEL] [-cc CONCUR_COUNT] [-xls EXCEL_SHEET][--show-backtrace]
13+
usage: redant_main.py [-h] -c CONFIG_FILE -t TEST_DIR [-l LOG_DIR] [-ll LOG_LEVEL]
14+
[-cc CONCUR_COUNT] [-xls EXCEL_SHEET][--show-backtrace] [-kold]
1515

1616
Redant test framework main script.
1717

@@ -30,6 +30,9 @@ optional arguments:
3030
-xls EXCEL_SHEET, --excel-sheet EXCEL_SHEET
3131
Spreadsheet for result. Default value is NULL
3232
--show-backtrace Show full backtrace on error
33+
-kold, --keep-old-logs
34+
Don't clear the old glusterfs logs directory during environment setup.
35+
Default behavior is to clear the logs directory on each run.
3336
```
3437

3538
## Tested and Supported Distros
@@ -39,6 +42,7 @@ optional arguments:
3942
|Fedora 32| :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
4043
|Fedora 34|:heavy_check_mark: | :heavy_multiplication_x: | ✖️ |
4144
|RHEL 7.9| :heavy_multiplication_x: | :heavy_check_mark: | :heavy_check_mark:|
45+
|RHEL 8.4| :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
4246

4347
The architects of any project won't be there forever with it
4448
( not everyone has the luxury to be a BDFL ), hence it is important to have
@@ -63,11 +67,26 @@ The Documentation index can be found at [Docs](./docs/README.md)
6367

6468
## Set up
6569

70+
### Pre requisites:
71+
1. Passwordless ssh between all (to self as well) the nodes in the cluster.
72+
2. Gluster installed on all the nodes and the bricks which would be used in the volumes,
73+
are created on all the servers.
74+
3. The following packages should be installed on all the nodes in the cluster, it includes
75+
some packages which are required by external tools used in some test cases:
76+
1. git
77+
2. make
78+
3. gcc
79+
4. autoconf
80+
5. automake
81+
6. cronie
82+
7. rsync
83+
8. numpy
84+
9. sh
85+
6686
### To start Working:
6787

6888
1. Clone redant repo.
69-
70-
2. Populate the conf.yaml with relevant server and client details..
89+
2. Populate the [config.yml](./config/config.yml) with relevant server and client details.
7190

7291

7392
### STEP-BY-STEP procedure to run:

common/ops/support_ops/machine_ops.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,6 @@ def hard_terminate(self, server_list: list, client_list: list,
200200

201201
self.remove_snap_lv(lv_dict)
202202

203-
# Flush the IP tables
204-
cmd = "iptables --flush"
205-
for node in server_list:
206-
self.execute_abstract_op_node(cmd, node, False)
207-
208203
self.es.reset_ds()
209204

210205
def check_os(self, os_name: str, nodes: str,

config/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ servers_info:
1212
brick_root: ["/bricks"]
1313
"4.4.4.4":
1414
brick_root: ["/bricks"]
15-
15+
1616
#clients_info - All the relevant information about the clients
1717
clients_info:
1818
"5.5.5.5":

core/redant_main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ def pars_args():
5454
dest="show_backtrace", action='store_true')
5555
parser.add_argument("-kold", "--keep-old-logs",
5656
help="Don't clear the old glusterfs logs directory "
57-
"during environment setup",
57+
"during environment setup. Default behavior is to "
58+
"clear the logs directory on each run.",
5859
dest="keep_logs", action='store_true')
5960
return parser.parse_args()
6061

tests/functional/afr/heal/test_server_side_healing_happens_only_when_glustershd_running.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,5 +172,5 @@ def run_test(self, redant):
172172

173173
# Wait for heal to complete
174174
if not redant.monitor_heal_completion(self.server_list[0],
175-
self.vol_name):
175+
self.vol_name, 2400):
176176
raise Exception("Heal has not yet completed")

tests/functional/dht/test_file_creation.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"""
2020

2121
# disruptive;dist-disp,dist-arb,dist-rep,dist
22+
from socket import gethostbyname
2223
from tests.d_parent_test import DParentTest
2324

2425

@@ -53,6 +54,7 @@ def _is_file_present_on_brick(self, file_name):
5354

5455
for brick in brick_list['brickdir_paths']:
5556
host, path = brick.split(':')
57+
host = gethostbyname(host)
5658
ret = self._file_exists(host, path)
5759
if not ret:
5860
raise Exception(f"File {file_name} is not present on {brick}")
@@ -71,6 +73,7 @@ def _compare_file_permissions(self, file_name,
7173
file_info_brick = []
7274
for brick in brick_list['brickdir_paths']:
7375
host, path = brick.split(':')
76+
host = gethostbyname(host)
7477
info_brick = self.redant.get_file_stat(host, path)
7578
file_info_brick.append(info_brick['msg']['permission'])
7679

@@ -93,6 +96,7 @@ def _check_change_time_brick(self, file_name):
9396
brick_mtime = []
9497
for brick in brick_list['brickdir_paths']:
9598
host, path = brick.split(':')
99+
host = gethostbyname(host)
96100
cmd = f"ls -lR {path}"
97101
self.redant.execute_abstract_op_node(cmd, host)
98102
file_ctime_brick = self.redant.get_file_stat(host, path)
@@ -141,6 +145,7 @@ def _compare_file_md5sum_on_bricks(self, link_file_name):
141145
md5sum_list_test_file = []
142146
for brick in brick_list_test_file['brickdir_paths']:
143147
host, path = brick.split(':')
148+
host = gethostbyname(host)
144149
md5sum_test_file = self.redant.get_md5sum(host, path).split()[0]
145150
md5sum_list_test_file.append(md5sum_test_file)
146151

@@ -150,6 +155,7 @@ def _compare_file_md5sum_on_bricks(self, link_file_name):
150155
md5sum_list_link_file = []
151156
for brick in brick_list_link_file['brickdir_paths']:
152157
host, path = brick.split(':')
158+
host = gethostbyname(host)
153159
md5sum_link_file = self.redant.get_md5sum(host, path).split()[0]
154160
md5sum_list_link_file.append(md5sum_link_file)
155161

@@ -167,6 +173,7 @@ def _compare_gfid_xattr_on_files(self, link_file_name, expected=True):
167173
xattr_list_test_file = []
168174
for brick in brick_list_test_file['brickdir_paths']:
169175
host, path = brick.split(':')
176+
host = gethostbyname(host)
170177
xattr_test_file = self.redant.get_fattr(path, "trusted.gfid", host)
171178
xattr_test_file = xattr_test_file[1].split('=')[1].strip()
172179
xattr_list_test_file.append(xattr_test_file[1:-1])
@@ -177,6 +184,7 @@ def _compare_gfid_xattr_on_files(self, link_file_name, expected=True):
177184
xattr_list_link_file = []
178185
for brick in brick_list_link_file['brickdir_paths']:
179186
host, path = brick.split(':')
187+
host = gethostbyname(host)
180188
xattr_link_file = self.redant.get_fattr(path, "trusted.gfid", host)
181189
xattr_link_file = xattr_link_file[1].split('=')[1].strip()
182190
xattr_list_link_file.append(xattr_link_file[1:-1])

0 commit comments

Comments
 (0)