diff --git a/microceph/ceph/services.go b/microceph/ceph/services.go index d2393e34..07f2d35c 100644 --- a/microceph/ceph/services.go +++ b/microceph/ceph/services.go @@ -217,6 +217,15 @@ func removeServiceDatabase(s interfaces.StateInterface, service string) error { return fmt.Errorf("failed to remove service from db %q: %w", service, err) } + // Clear mon host entry from config table. + if service == "mon" { + key := fmt.Sprintf("mon.host.%s", s.ClusterState().Name()) + err = database.DeleteConfigItem(ctx, tx, key) + if err != nil { + return err + } + } + return nil }) return err