cluster: migrate to using pkg/rings for Addresses [WIP]

Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2024-06-03 14:28:38 +00:00
parent 0409cc5e66
commit 9aee20f36f
14 changed files with 216 additions and 163 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ import (
"darvaza.org/slog"
"git.jpi.io/amery/jpictl/pkg/ceph"
"git.jpi.io/amery/jpictl/pkg/rings"
)
type cephScanTODO struct {
@@ -14,7 +15,7 @@ type cephScanTODO struct {
func (todo *cephScanTODO) checkMachine(p *Machine) bool {
// on ceph all addresses are ring1
ring1, _ := RingOneAddress(p.Zone(), p.ID)
ring1, _ := rings.RingOneAddress(p.Region(), p.Zone(), p.ID)
addr := ring1.String()
if _, found := todo.names[p.Name]; found {