Add Geo node name info to `rake gitlab:geo:check`

Problem to solve

A Geo node must have a current_node_name that matches the name of a record in the geo_nodes table. It's easy to make a one character mistake in gitlab.rb or in the /admin/geo/nodes form that breaks this relationship. When things are broken or when setup is not complete, it would really help to call attention to this information when relevant.

Intended users

  • Geo sysadmins
  • Geo developers

Further details

Proposal

Add to output of rake gitlab:geo:check:

  • Output Node name: #{GeoNode.current_node_name}
  • If the instance has a matching GeoNode in DB, then output Found Geo node record
  • Else if the instance does not have a matching GeoNode in DB, then output Cannot find a Geo node record with name \"#{GeoNode.current_node_name}\"

Permissions and Security

Documentation

  • Update https://docs.gitlab.com/ee/administration/geo/replication/troubleshooting.html#check-the-health-of-the-secondary-node

Testing

What does success look like, and how can we measure that?

What is the type of buyer?

Links / references

Edited Jan 03, 2020 by Michael Kozono
Assignee Loading
Time tracking Loading