]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: ceph/StatusDetail: cleanups
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 3 Jun 2020 13:25:39 +0000 (15:25 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 3 Jun 2020 13:25:39 +0000 (15:25 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/CLI/pveceph.pm
www/manager6/ceph/StatusDetail.js

index 92500253c00f76682c356aca02b94b234e66abf2..c94c5ac9b455aaf0511587e76332621872339b30 100755 (executable)
@@ -145,8 +145,8 @@ __PACKAGE__->register_method ({
            $repolist = "deb http://download.proxmox.com/debian/ceph-luminous buster main\n";
        } elsif ($cephver eq 'octopus') {
            die "Not allowed to select version '$cephver'\n" if !$param->{'allow-experimental'};
-           $repolist = "deb http://repo.proxmox.com/staging/ceph-octopus buster ceph-15\n";
-           # FIXME: use public mirror once available
+           $repolist = "deb http://download.proxmox.com/debian/ceph-octopus buster test\n";
+           # FIXME: use production component once available
            #$repolist = "deb http://download.proxmox.com/debian/ceph-octopus buster main\n";
        } else {
            die "not implemented ceph version: $cephver";
index 211b0d6fb45079cdde73094a64fe721f92714c02..7156d2c902ef1b060c78cd50b58516ed98df0100 100644 (file)
@@ -212,15 +212,8 @@ Ext.define('PVE.ceph.StatusDetail', {
            });
        }
 
+       // update PGs sorted
        var pgmap = status.pgmap || {};
-       var health = status.health || {};
-       var osdmap = status.osdmap || {};
-
-       if (typeof osdmap.osdmap != "undefined") {
-           osdmap = osdmap.osdmap;
-       }
-
-       // update pgs sorted
        var pgs_by_state = pgmap.pgs_by_state || [];
        pgs_by_state.sort(function(a,b){
            return (a.state_name < b.state_name)?-1:(a.state_name === b.state_name)?0:1;
@@ -253,6 +246,7 @@ Ext.define('PVE.ceph.StatusDetail', {
        var downinregex = /(\d+) osds down/;
        var downin_osds = 0;
 
+       var health = status.health || {};
        // we collect monitor/osd information from the checks
        Ext.Object.each(health.checks, function(key, value, obj) {
            var found = null;
@@ -264,9 +258,11 @@ Ext.define('PVE.ceph.StatusDetail', {
            }
        });
 
+       var osdmap = status.osdmap || {};
+       if (typeof osdmap.osdmap != "undefined") {
+           osdmap = osdmap.osdmap;
+       }
        // update osds counts
-
-       // pre-octopus || octopus || 0
        var total_osds = osdmap.num_osds || 0;
        var in_osds = osdmap.num_in_osds || 0;
        var up_osds = osdmap.num_up_osds || 0;