Remove error message from gitlab:geo:check rake task if replication not enabled
What does this MR do and why?
This MR makes the following changes -
- Adds a new feature flag -
geo_postgresql_replication_agnostic
relating to this epic - &13721 - When the
geo_postgresql_replication_agnostic
feature flag is enabled:-- The error message from
DatabaseReplicationEnabledCheck
, (triggered via the rake taskgitlab:geo:check
), will not be displayed if replication is not enabled - The
DatabaseReplicationWorkingCheck
from the same rake task will be skipped, if replication is not enabled
- The error message from
Relates to #491296 (closed)
Changelog: changed EE: true
How to set up and validate locally
- Set up a secondary Geo site
- Ensure replication is disabled
- Enable the new feature in the rails console with
Feature.enable(:geo_postgresql_replication_agnostic)
- Run
bundle exec rails gitlab:geo:check
from the secondary - Observe the output - error message should no longer be present, and the
DatabaseReplicationWorkingCheck
should be skipped with the messagereplication is disabled
Related to #491296 (closed)
Edited by Scott Murray