Hardcoded gitlab-psql user for geo ctl command
Summary
The database user (gitlab-psql
) is hardcoded for Geo replication ctl commands. The commands do not honor custom database users.
We should honor the custom database user set in gitlab.rb
and not hardcode gitlab-psql
.
Relevant logs
chown: invalid user: ‘gitlab-psql’
*** Initial replication failed! ***
Replication tool returned with a non zero exit status!
The gitlab-psql
username is hardcoded at the following places in https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-ctl-commands-ee/lib/geo/replication.rb:
Links
Customer ticket -> https://gitlab.zendesk.com/agent/tickets/111055 (internal use)