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

Fabian Grünbichler f.gruenbichler at proxmox.com
Fri Aug 4 12:02:15 CEST 2017


On Tue, Aug 01, 2017 at 02:59:36PM +0200, Dominik Csapak wrote:
> namely the osd type (filestore/bluestore), bluestore device,
> db device and wal device
> 
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
>  www/manager6/ceph/OSD.js | 31 +++++++++++++++++++++++++++++++
>  1 file changed, 31 insertions(+)
> 
> diff --git a/www/manager6/ceph/OSD.js b/www/manager6/ceph/OSD.js
> index 80c191f6..a37d4d2a 100644
> --- a/www/manager6/ceph/OSD.js
> +++ b/www/manager6/ceph/OSD.js
> @@ -191,6 +191,33 @@ Ext.define('PVE.node.CephOsdTree', {
>  	    width: 40
>  	},
>  	{
> +	    text: gettext("OSD Type"),
> +	    dataIndex: 'osdtype',
> +	    align: 'right',
> +	    width: 40
> +	},
> +	{
> +	    text: gettext("Bluestore Device"),
> +	    dataIndex: 'blfsdev',
> +	    align: 'right',
> +	    width: 40,
> +	    hidden: true
> +	},
> +	{
> +	    text: gettext("DB Device"),
> +	    dataIndex: 'dbdev',
> +	    align: 'right',
> +	    width: 40,
> +	    hidden: true
> +	},
> +	{
> +	    text: gettext("WAL Device"),
> +	    dataIndex: 'waldev',
> +	    align: 'right',
> +	    width: 40,
> +	    hidden: true
> +	},

wonder if it makes sense to leave OSD, Bluestore, DB and WAL
untranslated and use the (existing) translations for Device and Type?

> +	{
>  	    text: 'Status',
>  	    dataIndex: 'status',
>  	    align: 'right',
> @@ -501,6 +528,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
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel




More information about the pve-devel mailing list