Geo: Improve troubleshooting by putting diagnostics in Geo Admin page
Right now my GDK environment isn't able to authorize system hooks for some reason. https://docs.gitlab.com/ee/gitlab-geo/configuration.html#troubleshooting mentions running Rails console commands, but this information should be shown in the Geo admin page:
- Status of
Gitlab::Geo.current_node
- Last Geo events received and failure codes
I see these messages in my logs:
07:37:12 gitlab-workhorse.1 | stanhu-geo-secondary 127.0.0.1:58712 - - [2017-02-17 07:37:12.491751926 +0000 UTC] "POST /api/v4/geo/receive_events HTTP/1.0" 403 81 "" "" 0.139086
07:38:20 gitlab-workhorse.1 | stanhu-geo-secondary 127.0.0.1:58720 - - [2017-02-17 07:38:20.309403624 +0000 UTC] "POST /api/v4/geo/receive_events HTTP/1.0" 403 81 "" "" 0.108999
07:38:20 gitlab-workhorse.1 | stanhu-geo-secondary 127.0.0.1:58722 - - [2017-02-17 07:38:20.625288451 +0000 UTC] "POST /api/v4/geo/receive_events HTTP/1.0" 403 81 "" "" 0.073628
Currently I have no idea why these got a 403.
/cc: @brodock, @dbalexandre, @rspeicher