]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/pgmap: fix bluestore alerts output. 30342/head
authorIgor Fedotov <ifedotov@suse.com>
Mon, 9 Sep 2019 13:34:38 +0000 (16:34 +0300)
committerIgor Fedotov <ifedotov@suse.com>
Wed, 11 Sep 2019 14:16:44 +0000 (17:16 +0300)
Lost OSD count for most of them.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
src/mon/PGMap.cc

index 2eced47be1080fdbd4003f938f2aa5c4da14a6ba..e76ab9613f9973dc9457d0b773b3a8134a8131d7 100644 (file)
@@ -3190,13 +3190,13 @@ void PGMap::get_health_checks(
       if (asum.first == "BLUEFS_SPILLOVER") {
        summary += " experiencing BlueFS spillover";
       } else if (asum.first == "BLUESTORE_NO_COMPRESSION") {
-       summary = " have broken BlueStore compression";
+       summary += " have broken BlueStore compression";
       } else if (asum.first == "BLUESTORE_LEGACY_STATFS") {
-       summary = " reporting legacy (not per-pool) BlueStore stats";
+       summary += " reporting legacy (not per-pool) BlueStore stats";
       } else if (asum.first == "BLUESTORE_DISK_SIZE_MISMATCH") {
-       summary = " have dangerous mismatch between BlueStore block device and free list sizes";
+       summary += " have dangerous mismatch between BlueStore block device and free list sizes";
       } else if (asum.first == "BLUESTORE_NO_PER_POOL_OMAP") {
-       summary = " reporting legacy (not per-pool) BlueStore omap usage stats";
+       summary += " reporting legacy (not per-pool) BlueStore omap usage stats";
       }
       auto& d = checks->add(asum.first, HEALTH_WARN, summary, asum.second.first);
       for (auto& s : asum.second.second) {