[pve-devel] [PATCH manager v2 2/3] show bluestore info in the osd tree

Dominik Csapak d.csapak at proxmox.com
Fri Aug 4 16:28:50 CEST 2017


namely the osd type (filestore/bluestore), bluestore device,
db device and wal device

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
changes from v1:
* dropped gettext for technical terms
* show 'N/A' for wal when there is none on bluestore
 www/manager6/ceph/OSD.js | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/www/manager6/ceph/OSD.js b/www/manager6/ceph/OSD.js
index 80c191f6..e651e0ed 100644
--- a/www/manager6/ceph/OSD.js
+++ b/www/manager6/ceph/OSD.js
@@ -191,6 +191,41 @@ Ext.define('PVE.node.CephOsdTree', {
 	    width: 40
 	},
 	{
+	    text: "OSD Type",
+	    dataIndex: 'osdtype',
+	    align: 'right',
+	    width: 40
+	},
+	{
+	    text: "Bluestore Device",
+	    dataIndex: 'blfsdev',
+	    align: 'right',
+	    width: 40,
+	    hidden: true
+	},
+	{
+	    text: "DB Device",
+	    dataIndex: 'dbdev',
+	    align: 'right',
+	    width: 40,
+	    hidden: true
+	},
+	{
+	    text: "WAL Device",
+	    dataIndex: 'waldev',
+	    align: 'right',
+	    renderer: function(value, metaData, rec) {
+		if (!value &&
+		    rec.data.osdtype === 'bluestore' &&
+		    rec.data.type === 'osd') {
+		    return 'N/A';
+		}
+		return value;
+	    },
+	    width: 40,
+	    hidden: true
+	},
+	{
 	    text: 'Status',
 	    dataIndex: 'status',
 	    align: 'right',
@@ -501,6 +536,10 @@ Ext.define('PVE.node.CephOsdTree', {
 		     { type: 'integer', name: 'apply_latency_ms' },
 		     { type: 'integer', name: 'commit_latency_ms' },
 		     { type: 'string', name: 'device_class' },
+		     { type: 'string', name: 'osdtype' },
+		     { type: 'string', name: 'blfsdev' },
+		     { type: 'string', name: 'dbdev' },
+		     { type: 'string', name: 'waldev' },
 		     { type: 'string', name: 'iconCls', calculate: function(data) {
 			 var iconCls = 'x-fa x-fa-tree fa-';
 			 switch (data.type) {
-- 
2.11.0





More information about the pve-devel mailing list