mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-07 02:23:23 +00:00
Fix #936: ceph: support multiple roots in osd tree
The OSD tree in our GUI otherwise only shows the "first" root it finds in the crush map.
This commit is contained in:
parent
eca5c8b1dc
commit
4aed5e3e3a
@ -138,17 +138,16 @@ __PACKAGE__->register_method ({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my $rootnode;
|
my $roots = [];
|
||||||
foreach my $e (@{$res->{nodes}}) {
|
foreach my $e (@{$res->{nodes}}) {
|
||||||
if (!$nodes->{$e->{id}}->{parent}) {
|
if (!$nodes->{$e->{id}}->{parent}) {
|
||||||
$rootnode = $newnodes->{$e->{id}};
|
push @$roots, $newnodes->{$e->{id}};
|
||||||
last;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
die "no root node\n" if !$rootnode;
|
die "no root node\n" if !@$roots;
|
||||||
|
|
||||||
my $data = { root => $rootnode };
|
my $data = { root => { leaf => 0, children => $roots } };
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}});
|
}});
|
||||||
|
2
debian/changelog.Debian
vendored
2
debian/changelog.Debian
vendored
@ -7,6 +7,8 @@ pve-manager (4.1-27) unstable; urgency=medium
|
|||||||
|
|
||||||
* qemu monitor GUI: support page up/down
|
* qemu monitor GUI: support page up/down
|
||||||
|
|
||||||
|
* Fix #936: ceph: support multiple roots in osd tree
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Tue, 12 Apr 2016 17:12:09 +0200
|
-- Proxmox Support Team <support@proxmox.com> Tue, 12 Apr 2016 17:12:09 +0200
|
||||||
|
|
||||||
pve-manager (4.1-26) unstable; urgency=medium
|
pve-manager (4.1-26) unstable; urgency=medium
|
||||||
|
Loading…
Reference in New Issue
Block a user