Skip to content

Commit

Permalink
iscsi sanity for reef
Browse files Browse the repository at this point in the history
Signed-off-by: Sunil Kumar Nagaraju <[email protected]>
  • Loading branch information
sunilkumarn417 committed Jan 27, 2025
1 parent c6790c7 commit 1fea4e3
Show file tree
Hide file tree
Showing 2 changed files with 145 additions and 0 deletions.
44 changes: 44 additions & 0 deletions conf/reef/iscsi/ceph_iscsi_functional.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
globals:
- ceph-cluster:
name: ceph
vm-size: ci.standard.large
node1:
role:
- _admin
- installer
- mon
- mgr
node2:
role:
- mon
- mgr
node3:
role:
- mon
- osd
no-of-volumes: 4
disk-size: 20
node4:
role:
- mds
- osd
no-of-volumes: 4
disk-size: 20
node5:
role:
- mds
- osd
- iscsi
no-of-volumes: 4
disk-size: 20
node6:
role:
- iscsi
no-of-volumes: 4
disk-size: 20
node7:
role:
- client
node8:
role:
- client
101 changes: 101 additions & 0 deletions suites/reef/iscsi/iscsi_sanity.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
tests:
# Set up the cluster
- test:
abort-on-fail: true
module: install_prereq.py
name: install ceph pre-requisites

- test:
abort-on-fail: true
config:
verify_cluster_health: true
steps:
- config:
command: bootstrap
service: cephadm
args:
mon-ip: node1
registry-url: registry.redhat.io
allow-fqdn-hostname: true
log-to-file: true
- config:
command: add_hosts
service: host
args:
attach_ip_address: true
labels: apply-all-labels
- config:
command: apply
service: mgr
args:
placement:
label: mgr
- config:
command: apply
service: mon
args:
placement:
label: mon
- config:
command: apply
service: osd
args:
all-available-devices: true
desc: RHCS cluster deployment using cephadm
destroy-clster: false
module: test_cephadm.py
name: deploy cluster

# Test cases to be executed
- test:
abort-on-fail: true
config:
command: add
id: client.1
nodes:
- node7
- node8
install_packages:
- ceph-common
copy_admin_keyring: true
desc: Setup client for iSCSI gateway
destroy-cluster: false
module: test_client.py
name: Configure Ceph client for iSCSI tests
polarion-id: CEPH-83573758

- test:
name: Ceph iSCSI Sanity e2e test
desc: Configure iSCSI gateways, initiators and run IO
module: iscsi_test.py
polarion-id: CEPH-83605167
destroy-clster: false
config:
gw_nodes:
- node5
- node6
rbd_pool: rbd
do_not_create_image: true
rep-pool-only: true
rep_pool_config:
pool: rbd
install: true
cleanup:
- initiators
- gateway
- pool
targets:
- iqn: iscsi-target1
gateways:
- node5
- node6
hosts:
- client_iqn: iqn.2025-01.com.redhat.iscsi-gw:rh-client
disks:
- count: 5
size: 1G
initiators:
- iqn: iqn.2025-01.com.redhat.iscsi-gw:rh-client
node: node7
type: linux
target: all

0 comments on commit 1fea4e3

Please sign in to comment.