[pve-devel] applied: [PATCH manager] ui: ceph: osd: handle edge case with dead node

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Nov 16 14:24:32 CET 2021


On 16.11.21 14:08, Fabian Ebner wrote:
> If there is a left-over entry for a dead node in the ceph osd tree
> the panel wouldn't show and produce an
>     Uncaught TypeError: data.versions is undefined
> because of an access
>     node.version = data.versions[node.name];
> further below (not visible in the patch itself).
> 
> AFAICT, the same issue would also happen when something went wrong
> with getting the broadcasted ceph-versions, or when a node is part
> of Ceph, but not PVE.
> 
> Handle the situation gracefully by always initializing data.versions.
> 
> Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
> ---
>  www/manager6/ceph/OSD.js | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
>

applied, thanks!





More information about the pve-devel mailing list