Geo primary attempts to access secondary database in GeoNodeStatus
As seen in https://sentry.gitlap.com/gitlab/geo-testbed/issues/72491/
RuntimeError: Geo secondary database is not configured
from app/models/geo/base_registry.rb:9:in `connection'
from lib/gitlab/metrics/instrumentation.rb:156:in `block in connection'
from lib/gitlab/metrics/method_call.rb:23:in `measure'
from lib/gitlab/metrics/instrumentation.rb:156:in `connection'
from active_record/attributes.rb:93:in `columns'
from active_record/attributes.rb:98:in `columns_hash'
from active_record/relation/query_methods.rb:969:in `block in create_binds'
from active_record/relation/query_methods.rb:967:in `each'
from active_record/relation/query_methods.rb:967:in `partition'
from active_record/relation/query_methods.rb:967:in `create_binds'
from active_record/relation/query_methods.rb:954:in `build_where'
from active_record/relation/query_methods.rb:584:in `where!'
from active_record/relation/query_methods.rb:574:in `where'
from active_record/querying.rb:10:in `where'
from app/models/geo/file_registry.rb:2:in `block in <class:FileRegistry>'
from active_record/scoping/named.rb:155:in `block (2 levels) in scope'
from active_record/relation.rb:302:in `scoping'
from active_record/scoping/named.rb:155:in `block in scope'
from app/models/geo_node_status.rb:151:in `attachments_failed_count'
from grape_entity/delegator/plain_object.rb:6:in `delegate'
from grape_entity/entity.rb:490:in `delegate_attribute'
from grape_entity/exposure/delegator_exposure.rb:6:in `value'
from grape_entity/exposure/base.rb:79:in `valid_value'
from grape_entity/exposure/base.rb:63:in `serializable_value'
from grape_entity/exposure/nesting_exposure.rb:61:in `block (2 levels) in serializable_value'
from grape_entity/exposure/base.rb:109:in `block in with_attr_path'
from grape_entity/options.rb:102:in `with_attr_path'
from grape_entity/exposure/base.rb:108:in `with_attr_path'
from grape_entity/exposure/nesting_exposure.rb:60:in `block in serializable_value'
from grape_entity/exposure/nesting_exposure.rb:59:in `each'
from grape_entity/exposure/nesting_exposure.rb:59:in `each_with_object'
from grape_entity/exposure/nesting_exposure.rb:59:in `serializable_value'
from grape_entity/entity.rb:471:in `serializable_hash'
from app/serializers/base_serializer.rb:11:in `represent'
from admin/geo_nodes_controller.rb:72:in `block (2 levels) in status'
from action_controller/metal/mime_responds.rb:217:in `respond_to'
from admin/geo_nodes_controller.rb:70:in `status'
Context: this is on the Geo primary, attempting to read status from the Geo secondary. Probably a regression in %10.1 introduced by the fix to #3691 (closed)
/assignee @nick.thomas