Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package minio-client for openSUSE:Factory checked in at 2023-12-10 19:39:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/minio-client (Old) and /work/SRC/openSUSE:Factory/.minio-client.new.25432 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "minio-client" Sun Dec 10 19:39:43 2023 rev:60 rq:1132265 version:20231207T221317Z Changes: -------- --- /work/SRC/openSUSE:Factory/minio-client/minio-client.changes 2023-12-06 23:49:45.618622874 +0100 +++ /work/SRC/openSUSE:Factory/.minio-client.new.25432/minio-client.changes 2023-12-10 19:39:46.299233605 +0100 @@ -1,0 +2,8 @@ +Sat Dec 09 19:55:41 UTC 2023 - ka...@b1-systems.de + +- Update to version 20231207T221317Z: + * Fix a panic for bucket heal (#4781) + * ready: Do not quit when the target server is offline or any + other error (#4783) + +------------------------------------------------------------------- Old: ---- mc-20231202T112410Z.obscpio New: ---- mc-20231207T221317Z.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ minio-client.spec ++++++ --- /var/tmp/diff_new_pack.fRO1Kq/_old 2023-12-10 19:39:47.931293711 +0100 +++ /var/tmp/diff_new_pack.fRO1Kq/_new 2023-12-10 19:39:47.935293858 +0100 @@ -22,7 +22,7 @@ %define binary_name minio-client Name: minio-client -Version: 20231202T112410Z +Version: 20231207T221317Z Release: 0 Summary: Client for MinIO License: AGPL-3.0-only ++++++ _service ++++++ --- /var/tmp/diff_new_pack.fRO1Kq/_old 2023-12-10 19:39:47.963294889 +0100 +++ /var/tmp/diff_new_pack.fRO1Kq/_new 2023-12-10 19:39:47.967295037 +0100 @@ -5,7 +5,7 @@ <param name="exclude">.git</param> <param name="changesgenerate">enable</param> <param name="versionformat">@PARENT_TAG@</param> - <param name="revision">RELEASE.2023-12-02T11-24-10Z</param> + <param name="revision">RELEASE.2023-12-07T22-13-17Z</param> <param name="match-tag">RELEASE.*</param> <param name="versionrewrite-pattern">RELEASE\.(.*)-(.*)-(.*)-(.*)-(.*)</param> <param name="versionrewrite-replacement">\1\2\3\4\5</param> @@ -19,7 +19,7 @@ <param name="compression">gz</param> </service> <service name="go_modules" mode="manual"> - <param name="archive">mc-20231202T112410Z.obscpio</param> + <param name="archive">mc-20231207T221317Z.obscpio</param> </service> </services> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.fRO1Kq/_old 2023-12-10 19:39:47.991295921 +0100 +++ /var/tmp/diff_new_pack.fRO1Kq/_new 2023-12-10 19:39:47.991295921 +0100 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/minio/mc</param> - <param name="changesrevision">d920e2b34b22a15bca4cd081201d3b301c623d87</param></service></servicedata> + <param name="changesrevision">1ba9435365a772d6b4cab225458306a70dfb2309</param></service></servicedata> (No newline at EOF) ++++++ mc-20231202T112410Z.obscpio -> mc-20231207T221317Z.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mc-20231202T112410Z/.github/workflows/vulncheck.yml new/mc-20231207T221317Z/.github/workflows/vulncheck.yml --- old/mc-20231202T112410Z/.github/workflows/vulncheck.yml 2023-12-02 12:24:10.000000000 +0100 +++ new/mc-20231207T221317Z/.github/workflows/vulncheck.yml 2023-12-07 23:13:17.000000000 +0100 @@ -16,7 +16,7 @@ - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.21.4 + go-version: 1.21.5 check-latest: true - name: Get official govulncheck run: go install golang.org/x/vuln/cmd/govulncheck@latest diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mc-20231202T112410Z/cmd/admin-heal-result-item.go new/mc-20231207T221317Z/cmd/admin-heal-result-item.go --- old/mc-20231202T112410Z/cmd/admin-heal-result-item.go 2023-12-02 12:24:10.000000000 +0100 +++ new/mc-20231207T221317Z/cmd/admin-heal-result-item.go 2023-12-07 23:13:17.000000000 +0100 @@ -61,9 +61,18 @@ getColCode := func(numAvail int) (c col, err error) { // calculate color code for replicated object similar // to erasure coded objects - quorum := h.DiskCount/h.SetCount/2 + 1 - surplus := numAvail/h.SetCount - quorum - parity := h.DiskCount/h.SetCount - quorum + var quorum, surplus, parity int + if h.SetCount > 0 { + quorum = h.DiskCount/h.SetCount/2 + 1 + surplus = numAvail/h.SetCount - quorum + parity = h.DiskCount/h.SetCount - quorum + } else { + // in case of bucket healing, disk count is for the node + // also explicitly set count would be set to invalid value of -1 + quorum = h.DiskCount/2 + 1 + surplus = numAvail - quorum + parity = h.DiskCount - quorum + } c, err = getHColCode(surplus, parity) return } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mc-20231202T112410Z/cmd/ready.go new/mc-20231207T221317Z/cmd/ready.go --- old/mc-20231202T112410Z/cmd/ready.go 2023-12-02 12:24:10.000000000 +0100 +++ new/mc-20231207T221317Z/cmd/ready.go 2023-12-07 23:13:17.000000000 +0100 @@ -77,13 +77,19 @@ MaintenanceMode bool `json:"maintenanceMode"` WriteQuorum int `json:"writeQuorum"` HealingDrives int `json:"healingDrives"` + + Err error `json:"error"` } func (r readyMessage) String() string { - if r.Healthy { + switch { + case r.Healthy: return color.GreenString("The cluster is ready") + case r.Err != nil: + return color.RedString("The cluster is unreachable: " + r.Err.Error()) + default: + return color.RedString("The cluster is not ready") } - return color.RedString("The cluster is not ready") } // JSON jsonified ready result @@ -116,38 +122,25 @@ Maintenance: maintenance, } - healthResult, hErr := anonClient.Healthy(ctx, healthOpts) - fatalIf(probe.NewError(hErr).Trace(aliasedURL), "Couldn't get the health status for `"+aliasedURL+"`.") - - if healthResult.Healthy { - printMsg(readyMessage{ - Healthy: healthResult.Healthy, - MaintenanceMode: healthResult.MaintenanceMode, - WriteQuorum: healthResult.WriteQuorum, - HealingDrives: healthResult.HealingDrives, - }) - return nil - } - - timer := time.NewTimer(healthCheckInterval) + timer := time.NewTimer(0) defer timer.Stop() + for { select { case <-ctx.Done(): return nil case <-timer.C: healthResult, hErr := anonClient.Healthy(ctx, healthOpts) - fatalIf(probe.NewError(hErr).Trace(aliasedURL), "Couldn't get the health status for `"+aliasedURL+"`.") printMsg(readyMessage{ Healthy: healthResult.Healthy, MaintenanceMode: healthResult.MaintenanceMode, WriteQuorum: healthResult.WriteQuorum, HealingDrives: healthResult.HealingDrives, + Err: hErr, }) if healthResult.Healthy { return nil } - timer.Reset(healthCheckInterval) } } ++++++ mc.obsinfo ++++++ --- /var/tmp/diff_new_pack.fRO1Kq/_old 2023-12-10 19:39:48.275306381 +0100 +++ /var/tmp/diff_new_pack.fRO1Kq/_new 2023-12-10 19:39:48.275306381 +0100 @@ -1,5 +1,5 @@ name: mc -version: 20231202T112410Z -mtime: 1701516250 -commit: d920e2b34b22a15bca4cd081201d3b301c623d87 +version: 20231207T221317Z +mtime: 1701987197 +commit: 1ba9435365a772d6b4cab225458306a70dfb2309 ++++++ vendor.tar.gz ++++++ /work/SRC/openSUSE:Factory/minio-client/vendor.tar.gz /work/SRC/openSUSE:Factory/.minio-client.new.25432/vendor.tar.gz differ: char 5, line 1