Skip to content

Commit 42e121a

Browse files
committed
qa: add rbd/nvmeof test
A basic test for ceph-nvmeof[1] where nvmeof initiator is created. It requires use of a new task "nvmeof_gateway_cfg" under cephadm which shares config information between two remote hosts. [1] https://github.com/ceph/ceph-nvmeof/ Signed-off-by: Vallari Agrawal <[email protected]>
1 parent 33363a5 commit 42e121a

File tree

13 files changed

+181
-0
lines changed

13 files changed

+181
-0
lines changed

qa/suites/rbd/nvmeof/%

Whitespace-only changes.

qa/suites/rbd/nvmeof/.qa

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../.qa/

qa/suites/rbd/nvmeof/base/.qa

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../.qa/
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
use_shaman: True
2+
tasks:
3+
- install:
4+
- cephadm:
5+
- cephadm.shell:
6+
host.a:
7+
# get state before nvmeof deployment
8+
- ceph orch status
9+
- ceph orch ps
10+
- ceph orch host ls
11+
- ceph orch device ls
12+
- ceph osd lspools
13+
# create pool
14+
- ceph osd pool create mypool
15+
- rbd pool init mypool
16+
# deploy nvmeof
17+
## Uncomment to test specific nvmeof images
18+
## - ceph config set mgr mgr/cephadm/container_image_nvmeof quay.io/ceph/nvmeof:latest
19+
- ceph orch apply nvmeof mypool --placement="1 $(hostname)"
20+
- ceph orch ps --refresh
21+
22+
- cephadm.wait_for_service:
23+
service: nvmeof.mypool
24+
25+
- cephadm.nvmeof_gateway_cfg:
26+
source: host.a
27+
target: client.1
28+
service: nvmeof.mypool
29+
30+
- exec:
31+
client.0:
32+
- journalctl -u $(systemctl list-units | grep nvmeof.mypool | awk '{print $1}')
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.qa/distros/supported/centos_latest.yaml

qa/suites/rbd/nvmeof/cluster/+

Whitespace-only changes.

qa/suites/rbd/nvmeof/cluster/.qa

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../.qa/
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
roles:
2+
- - host.a
3+
- mon.a
4+
- mgr.x
5+
- osd.0
6+
- osd.1
7+
- client.0
8+
- - host.b
9+
- mon.b
10+
- osd.2
11+
- osd.3
12+
- osd.4
13+
- client.1
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
openstack:
2+
- machine:
3+
disk: 40 # GB
4+
ram: 8000 # MB
5+
cpus: 1
6+
volumes: # attached to each instance
7+
count: 4
8+
size: 30 # GB

qa/suites/rbd/nvmeof/workloads/.qa

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../.qa/

0 commit comments

Comments
 (0)