From ca8eadc161d23ce3451e0b0ebf4ea85a12671b82 Mon Sep 17 00:00:00 2001 From: Blaine Gardner Date: Thu, 10 Apr 2025 12:13:11 -0600 Subject: [PATCH] core: update cephstatus fsmap gid type to uint64 Ceph uses uint64 (unsigned long) type for CephFS GID. Rook was using int, which was causing failures when the GID overflowed Rook's type. Update Rook's type to match Ceph's. Signed-off-by: Blaine Gardner (cherry picked from commit 5b27189ac44200320144cc7193abaceddb645a34) --- pkg/daemon/ceph/client/status.go | 2 +- pkg/daemon/ceph/client/status_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/daemon/ceph/client/status.go b/pkg/daemon/ceph/client/status.go index 1812e3e60..8a4dd4f2e 100644 --- a/pkg/daemon/ceph/client/status.go +++ b/pkg/daemon/ceph/client/status.go @@ -151,7 +151,7 @@ type Fsmap struct { Rank int `json:"rank"` Name string `json:"name"` Status string `json:"status"` - Gid int `json:"gid"` + Gid uint64 `json:"gid"` } `json:"by_rank"` UpStandby int `json:"up:standby"` } diff --git a/pkg/daemon/ceph/client/status_test.go b/pkg/daemon/ceph/client/status_test.go index 28114e313..65848dba1 100644 --- a/pkg/daemon/ceph/client/status_test.go +++ b/pkg/daemon/ceph/client/status_test.go @@ -44,7 +44,7 @@ var ( "rank": 0, "name": "myfs-b", "status": "up:active", - "gid": 14716 + "gid": 13999249051405999408 } ], "up:standby": 1