Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Error check to pdsh function & add field for user to specify osd devices #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xuechendi
Copy link

  1. Added error check in pdsh function
    Currently, CBT runs pdsh command without error check,
    thinking if we change the function to check stderr
    when invoking pdsh will be more easy for users to hands on CBT and debuging
  2. Adding new field in runtest.yaml to specify osd devices
    cceph01: [/dev/sda1, /dev/sdb1, /dev/sdc1, /dev/sdd1, /dev/sde1, /dev/sdf1, /dev/sdg1, /dev/sdh1]
    cceph02: [/dev/sda1, /dev/sdb1, /dev/sdc1, /dev/sdd1, /dev/sde1, /dev/sdf1, /dev/sdg1, /dev/sdh1]

If we specify osd devices in runtest.yaml, CBT will deploy to these
device rather than /dev/disk/by-partlabel/osd-device-%s-data

Signed-off-by: Chendi.Xue [email protected]

Also, I notice the runtest.yaml is out of date, so I submitted a refreshed yaml
I have tested it in my env to initialize ceph cluster successfully

benchmarks:
radosbench: {}

cluster:
cceph01: [/dev/sda1, /dev/sdb1, /dev/sdc1, /dev/sdd1, /dev/sde1, /dev/sdf1, /dev/sdg1,/dev/sdh1]
cceph02: [/dev/sda1, /dev/sdb1, /dev/sdc1, /dev/sdd1, /dev/sde1, /dev/sdf1, /dev/sdg1,/dev/sdh1]
clients: [cceph01, cceph02]
conf_file: ceph.conf
fs: xfs
head: cceph01
mkfs_opts: -f -i size=2048 -n size=64k
mons:
cceph01: {cceph01: 192.168.5.21}
mount_opts: -o inode64,noatime,logbsize=256k
osds: [cceph01, cceph02]
osds_per_node: 8
tmp_dir: /tmp/cbt
use_existing: true
user: root

Currently, CBT runs pdsh command without error check,
thinking if we change the function to check stderr
when invoking pdsh will be more easy for users to hands on CBT and debuging

2. Adding new field in runtest.yaml to specify osd devices
+  cceph01: [/dev/sda1, /dev/sdb1, /dev/sdc1, /dev/sdd1, /dev/sde1, /dev/sdf1, /dev/sdg1, /dev/sdh1]
+  cceph02: [/dev/sda1, /dev/sdb1, /dev/sdc1, /dev/sdd1, /dev/sde1, /dev/sdf1, /dev/sdg1, /dev/sdh1]

If we specify osd devices in runtest.yaml, CBT will deploy to these
device rather than /dev/disk/by-partlabel/osd-device-%s-data

Signed-off-by: Chendi.Xue <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant