From: Kefu Chai Date: Sun, 30 Jul 2017 07:05:05 +0000 (+0800) Subject: qa/workunits/mon/crush_ops.sh: remove existing dev class before setting it X-Git-Tag: v12.1.3~103^2~3 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=007095b7ae555054665494ad9cedf8fabff51ade;p=ceph-ci.git qa/workunits/mon/crush_ops.sh: remove existing dev class before setting it we cannot overwrite existing dev class, and "osd_class_update_on_start" is true by default (see 0c885d6). so we should remove all device classes before setting them. Signed-off-by: Kefu Chai --- diff --git a/qa/workunits/mon/crush_ops.sh b/qa/workunits/mon/crush_ops.sh index 5e6f696118f..a9f1512c5cc 100755 --- a/qa/workunits/mon/crush_ops.sh +++ b/qa/workunits/mon/crush_ops.sh @@ -21,6 +21,7 @@ ceph osd crush rule create-simple bar default host # make sure we're at luminous+ before using crush device classes ceph osd require-osd-release luminous +ceph osd crush rm-device-class all ceph osd crush set-device-class ssd osd.0 ceph osd crush set-device-class hdd osd.1 ceph osd crush rule create-replicated foo-ssd default host ssd