Running all.yml on a Geo secondary cluster fails
I believe this is related to omnibus-gitlab!5369 (merged)
Failing task is https://gitlab.com/gitlab-org/quality/gitlab-environment-toolkit/-/blob/master/ansible/roles/gitlab-rails/tasks/main.yml#L61
Before, gitlab-ctl get-postgresql-primary
would exit 0 with no output if nothing was found. Now, it exits 1. This is failing on a Geo standby cluster as we don't tag the postgresql-ha
service in consul
with master
, but with standby-leader
instead.
Adding an ignore_errors: true
to the block
seems to work (the gitlab-geo
step is failing to bootstrap the secondary cluster still, but that could be my fault). But, I'm guessing other use cases might care if that fails.