From 69d700529f592bd0c99166c4a8db9b3c469ac2d9 Mon Sep 17 00:00:00 2001 From: Sunil Kumar Nagaraju Date: Mon, 3 Feb 2025 20:33:53 +0530 Subject: [PATCH] Include iSCSI sanity in pacific release. Signed-off-by: Sunil Kumar Nagaraju --- conf/pacific/iscsi/ceph_iscsi_functional.yaml | 44 ++++++++ suites/pacific/iscsi/iscsi_sanity.yaml | 101 ++++++++++++++++++ 2 files changed, 145 insertions(+) create mode 100644 conf/pacific/iscsi/ceph_iscsi_functional.yaml create mode 100644 suites/pacific/iscsi/iscsi_sanity.yaml diff --git a/conf/pacific/iscsi/ceph_iscsi_functional.yaml b/conf/pacific/iscsi/ceph_iscsi_functional.yaml new file mode 100644 index 00000000000..4aed3746ada --- /dev/null +++ b/conf/pacific/iscsi/ceph_iscsi_functional.yaml @@ -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 diff --git a/suites/pacific/iscsi/iscsi_sanity.yaml b/suites/pacific/iscsi/iscsi_sanity.yaml new file mode 100644 index 00000000000..510533471e7 --- /dev/null +++ b/suites/pacific/iscsi/iscsi_sanity.yaml @@ -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