Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DNM][Conf] Add cluster configuration for single site regression suites #4384

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 120 additions & 0 deletions conf/squid/common/13node-4client-single-site-regression.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
# Single site cluster with 13 Ceph & 4 Client nodes
# with daemons - 13 crash, 5 mon, 3 mgr, 3 rgw
# 5 nfs, 10 (+2 backup) osds and
# 1 alertmanager, node-exporter, prometheus, grafana
globals:
- ceph-cluster:
name: ceph
node1:
role:
- _admin
- installer
- crash
- alertmanager
- mon
node2:
role:
- crash
- rgw
- nfs
- osd
no-of-volumes: 4
disk-size: 20
node3:
role:
- crash
- rgw
- nfs
- osd
no-of-volumes: 4
disk-size: 20
node4:
role:
- crash
- rgw
- nfs
- osd
no-of-volumes: 4
disk-size: 20
node5:
role:
- crash
- nfs
- osd
no-of-volumes: 4
disk-size: 20
node6:
role:
- crash
- nfs
- osd
no-of-volumes: 4
disk-size: 20
node7:
role:
- crash
- node-exporter
- mds
- osd
no-of-volumes: 4
disk-size: 20
node8:
role:
- crash
- prometheus
- mds
- osd
no-of-volumes: 4
disk-size: 20
node9:
role:
- crash
- grafana
- mds
- osd
no-of-volumes: 4
disk-size: 20
node10:
role:
- crash
- mon
- mds
- osd
no-of-volumes: 4
disk-size: 20
node11:
role:
- crash
- mon
- mds
- osd
no-of-volumes: 4
disk-size: 20
node12:
role:
- crash
- mon
- mgr
- osd-bak
no-of-volumes: 4
disk-size: 20
node13:
role:
- crash
- mon
- mgr
- osd-bak
no-of-volumes: 4
disk-size: 20
node14:
role:
- client
node15:
role:
- client
node16:
role:
- client
node17:
role:
- client
145 changes: 145 additions & 0 deletions suites/squid/common/regression/single-site-deploy-and-configure.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
tests:
- test:
name: Setup pre-requisites
desc: Setup packages and configuration for cluster deployment
module: install_prereq.py
abort-on-fail: true

- test:
name: Deploy cluster using cephadm
desc: Bootstrap and deploy services
polarion-id: CEPH-83573713
module: test_cephadm.py
config:
steps:
- config:
service: cephadm
command: bootstrap
args:
mon-ip: node1
- config:
service: host
command: add_hosts
args:
attach_ip_address: true
labels: apply-all-labels
- config:
service: osd
command: apply
args:
all-available-devices: true
- config:
service: rgw
command: apply
pos_args:
- rgw.1
args:
placement:
label: rgw
- config:
command: shell
args:
- "ceph fs volume create cephfs"
- config:
service: mds
command: apply
args:
placement:
label: mds
base_cmd_args:
verbose: true
pos_args:
- cephfs
- config:
command: shell
args:
- "ceph osd pool create rbd"
- config:
command: shell
args:
- "rbd pool init rbd"
abort-on-fail: true

- test:
name: Configure client
desc: Configure the RGW & RBD clients
module: test_client.py
config:
command: add
id: client.1
node: node14
install_packages:
- ceph-common
- rbd-nbd
- jq
- fio
copy_admin_keyring: true
caps:
mon: "allow *"
osd: "allow *"
mds: "allow *"
mgr: "allow *"
abort-on-fail: true

- test:
name: Configure client
desc: Configure the RGW & RBD clients
module: test_client.py
config:
command: add
id: client.2
node: node15
install_packages:
- ceph-common
- rbd-nbd
- jq
- fio
copy_admin_keyring: true
caps:
mon: "allow *"
osd: "allow *"
mds: "allow *"
mgr: "allow *"
abort-on-fail: true

- test:
name: Configure client
desc: Configure the RGW & RBD clients
module: test_client.py
config:
command: add
id: client.3
node: node16
install_packages:
- ceph-common
- rbd-nbd
- jq
- fio
copy_admin_keyring: true
caps:
mon: "allow *"
osd: "allow *"
mds: "allow *"
mgr: "allow *"
abort-on-fail: true

- test:
name: Configure client
desc: Configure the RGW & RBD clients
module: test_client.py
config:
command: add
id: client.4
node: node17
install_packages:
- ceph-common
- rbd-nbd
- jq
- fio
copy_admin_keyring: true
caps:
mon: "allow *"
osd: "allow *"
mds: "allow *"
mgr: "allow *"
abort-on-fail: true