in files/gitlab-ctl-commands/pg-upgrade.rb [861:890]
def goodbye_message
log '==== Upgrade has completed ===='
log 'Please verify everything is working and run the following if so'
log "sudo rm -rf #{@db_worker.tmp_data_dir}.#{@db_worker.initial_version.major}"
log "sudo rm -f #{REVERT_VERSION_FILE}"
log ""
case @instance_type
when :pg_secondary
log "As part of PostgreSQL upgrade, this secondary node was removed from"
log "the HA cluster. Once the primary node is upgraded to new version of"
log "PostgreSQL, you will have to configure this secondary node to follow"
log "the primary node again."
log "Check https://docs.gitlab.com/omnibus/settings/database.html#upgrading-a-gitlab-ha-cluster for details."
when :pg_primary
log "As part of PostgreSQL upgrade, the secondary nodes were removed from"
log "the HA cluster. So right now, the cluster has only a single node in"
log "it - the primary node."
log "Now the primary node has been upgraded to new version of PostgreSQL,"
log "you may go ahead and configure the secondary nodes to follow this"
log "primary node."
log "Check https://docs.gitlab.com/omnibus/settings/database.html#upgrading-a-gitlab-ha-cluster for details."
when :geo_primary, :geo_secondary
log 'As part of the PostgreSQL upgrade, replication between primary and secondary has'
log 'been shut down. After the secondary has been upgraded, it needs to be re-initialized'
log 'Please see the instructions at https://docs.gitlab.com/omnibus/settings/database.html#upgrading-a-geo-instance'
end
end