Skip to content

Commit 4d97b1a

Browse files
committed
qa/suites/nvmeof: increase hosts in cluster setup
In "nvmeof" task, change "client" config to "installer" which allows to take inputs like "host.a". nvmeof/basic: change 2-gateway-2-initiator to 4-gateway-2-inititator cluster nvmeof/thrash: change 3-gateway-1-initiator to 4-gateway-1-inititaor cluster Signed-off-by: Vallari Agrawal <[email protected]>
1 parent 2ed818e commit 4d97b1a

File tree

10 files changed

+43
-39
lines changed

10 files changed

+43
-39
lines changed

qa/suites/nvmeof/basic/clusters/2-gateways-2-initiator.yaml renamed to qa/suites/nvmeof/basic/clusters/4-gateways-2-initiator.yaml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
11
roles:
2+
- - client.0
3+
- - client.1
24
- - host.a
35
- mon.a
46
- mgr.x
57
- osd.0
6-
- osd.1
7-
- client.0
8+
- client.2
89
- ceph.nvmeof.nvmeof.a
910
- - host.b
1011
- mon.b
12+
- osd.1
13+
- client.3
14+
- ceph.nvmeof.nvmeof.b
15+
- - host.c
1116
- mon.c
1217
- osd.2
18+
- client.4
19+
- ceph.nvmeof.nvmeof.c
20+
- - host.d
1321
- osd.3
14-
- osd.4
15-
- client.1
16-
- ceph.nvmeof.nvmeof.b
17-
- - client.2
18-
- - client.3
22+
- client.5
23+
- ceph.nvmeof.nvmeof.d
1924

2025
overrides:
2126
ceph:

qa/suites/nvmeof/basic/workloads/nvmeof_initiator.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
tasks:
22
- nvmeof:
3-
client: client.0
3+
installer: host.a
44
gw_image: quay.io/ceph/nvmeof:1.2 # "default" is the image cephadm defaults to; change to test specific nvmeof images, example "latest"
55
rbd:
66
pool_name: mypool
@@ -16,7 +16,7 @@ tasks:
1616
- workunit:
1717
no_coverage_and_limits: true
1818
clients:
19-
client.2:
19+
client.0:
2020
- nvmeof/setup_subsystem.sh
2121
env:
2222
RBD_POOL: mypool
@@ -26,10 +26,10 @@ tasks:
2626
no_coverage_and_limits: true
2727
timeout: 30m
2828
clients:
29-
client.2:
29+
client.0:
3030
- nvmeof/basic_tests.sh
3131
- nvmeof/fio_test.sh --start_ns 1 --end_ns 30 --rbd_iostat
32-
client.3:
32+
client.1:
3333
- nvmeof/basic_tests.sh
3434
- nvmeof/fio_test.sh --start_ns 31 --end_ns 60
3535
env:

qa/suites/nvmeof/basic/workloads/nvmeof_namespaces.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
tasks:
22
- nvmeof:
3-
client: client.0
3+
installer: host.a
44
gw_image: quay.io/ceph/nvmeof:1.2 # "default" is the image cephadm defaults to; change to test specific nvmeof images, example "latest"
55
rbd:
66
pool_name: mypool
@@ -16,7 +16,7 @@ tasks:
1616
- workunit:
1717
no_coverage_and_limits: true
1818
clients:
19-
client.2:
19+
client.0:
2020
- nvmeof/setup_subsystem.sh
2121
env:
2222
RBD_POOL: mypool
@@ -26,10 +26,10 @@ tasks:
2626
no_coverage_and_limits: true
2727
timeout: 30m
2828
clients:
29-
client.2:
29+
client.0:
3030
- nvmeof/basic_tests.sh
3131
- nvmeof/fio_test.sh --rbd_iostat
32-
client.3:
32+
client.1:
3333
- nvmeof/basic_tests.sh
3434
- nvmeof/namespace_test.sh
3535
env:

qa/suites/nvmeof/basic/workloads/nvmeof_scalability.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
tasks:
22
- nvmeof:
3-
client: client.0
3+
installer: host.a
44
gw_image: quay.io/ceph/nvmeof:1.2 # "default" is the image cephadm defaults to; change to test specific nvmeof images, example "latest"
55
rbd:
66
pool_name: mypool
@@ -17,7 +17,7 @@ tasks:
1717
no_coverage_and_limits: true
1818
timeout: 30m
1919
clients:
20-
client.2:
20+
client.0:
2121
- nvmeof/setup_subsystem.sh
2222
- nvmeof/basic_tests.sh
2323
- nvmeof/fio_test.sh --rbd_iostat
@@ -31,9 +31,8 @@ tasks:
3131
no_coverage_and_limits: true
3232
timeout: 30m
3333
clients:
34-
client.2:
35-
- nvmeof/scalability_test.sh nvmeof.a
36-
- nvmeof/scalability_test.sh nvmeof.b
34+
client.0:
35+
- nvmeof/scalability_test.sh nvmeof.a,nvmeof.b
36+
- nvmeof/scalability_test.sh nvmeof.b,nvmeof.c,nvmeof.d
3737
env:
3838
SCALING_DELAYS: '50'
39-

qa/suites/nvmeof/thrash/clusters/3-gateways-1-initiator.yaml renamed to qa/suites/nvmeof/thrash/clusters/4-gateways-1-initiator.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
11
roles:
2+
- - client.0 # initiator
23
- - host.a
34
- mon.a
45
- mgr.x
56
- osd.0
67
- osd.1
7-
- client.0
8+
- client.1
89
- ceph.nvmeof.nvmeof.a
910
- - host.b
1011
- mon.b
1112
- osd.2
1213
- osd.3
1314
- osd.4
14-
- client.1
15+
- client.2
1516
- ceph.nvmeof.nvmeof.b
1617
- - host.c
1718
- mon.c
1819
- osd.5
1920
- osd.6
2021
- osd.7
21-
- client.2
22+
- client.3
2223
- ceph.nvmeof.nvmeof.c
23-
- - client.3 # initiator
24+
- - host.d
25+
- client.4
26+
- ceph.nvmeof.nvmeof.d
27+
2428

2529
overrides:
2630
ceph:

qa/suites/nvmeof/thrash/gateway-initiator-setup/3-subsys-60-namespace.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
tasks:
22
- nvmeof:
3-
client: client.0
3+
installer: host.a
44
gw_image: quay.io/ceph/nvmeof:1.2 # "default" is the image cephadm defaults to; change to test specific nvmeof images, example "latest"
55
rbd:
66
pool_name: mypool
@@ -16,7 +16,7 @@ tasks:
1616
- workunit:
1717
no_coverage_and_limits: true
1818
clients:
19-
client.3:
19+
client.0:
2020
- nvmeof/setup_subsystem.sh
2121
- nvmeof/basic_tests.sh
2222
env:

qa/suites/nvmeof/thrash/thrashers/nvmeof_mon_thrash.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ overrides:
1313

1414
tasks:
1515
- nvmeof.thrash:
16-
checker_host: 'client.3'
16+
checker_host: 'client.0'
1717
switch_thrashers: True
1818

1919
- mon_thrash:

qa/suites/nvmeof/thrash/thrashers/nvmeof_thrash.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ overrides:
88

99
tasks:
1010
- nvmeof.thrash:
11-
checker_host: 'client.3'
11+
checker_host: 'client.0'

qa/suites/nvmeof/thrash/workloads/fio.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ tasks:
33
no_coverage_and_limits: true
44
timeout: 30m
55
clients:
6-
client.3:
6+
client.0:
77
- nvmeof/fio_test.sh --rbd_iostat
88
env:
99
RBD_POOL: mypool

qa/tasks/nvmeof.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Nvmeof(Task):
2424
Setup nvmeof gateway on client and then share gateway config to target host.
2525
2626
- nvmeof:
27-
client: client.0
27+
installer: host.a // or 'nvmeof.nvmeof.a'
2828
version: default
2929
rbd:
3030
pool_name: mypool
@@ -38,15 +38,11 @@ class Nvmeof(Task):
3838
def setup(self):
3939
super(Nvmeof, self).setup()
4040
try:
41-
self.client = self.config['client']
41+
host = self.config['installer']
4242
except KeyError:
43-
raise ConfigError('nvmeof requires a client to connect with')
44-
45-
self.cluster_name, type_, self.client_id = misc.split_role(self.client)
46-
if type_ != 'client':
47-
msg = 'client role ({0}) must be a client'.format(self.client)
48-
raise ConfigError(msg)
49-
self.remote = get_remote_for_role(self.ctx, self.client)
43+
raise ConfigError('nvmeof requires a installer host to deploy service')
44+
self.cluster_name, _, _ = misc.split_role(host)
45+
self.remote = get_remote_for_role(self.ctx, host)
5046

5147
def begin(self):
5248
super(Nvmeof, self).begin()

0 commit comments

Comments
 (0)