Skip to content

Commit

Permalink
Added patch to also remove mon.host entries
Browse files Browse the repository at this point in the history
Signed-off-by: Utkarsh Bhatt <[email protected]>
  • Loading branch information
UtkarshBhatthere committed Oct 24, 2024
1 parent c9f2b08 commit 21bff02
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions microceph/ceph/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 21bff02

Please sign in to comment.