On 1 Jul 2024, at 07:34, Aankhi Talukdar <tallukd...@gmail.com> wrote:Can someone please help me on the below issue
ThanksAankhiOn Friday, June 28, 2024 at 2:37:52 PM UTC+5:30 Aankhi Talukdar wrote:Attaching pull-replication logsOn Friday, June 28, 2024 at 2:35:39 PM UTC+5:30 Aankhi Talukdar wrote:Hi Team,
We are implementing pull replication on Kubernetes for Gerrit in a multi-site (multi-region) setup.
Scenario:
Target Pod: This is where repositories are being pulled to.
Source Pod: This is the origin from which repositories are being pulled.
Remote URL: The URL of the source Gerrit instance.
We have two clusters in different regions with Gerrit instances running in multi-site mode, following the documentation [1].
In the target pod, the replication.config file is configured as follows:
replication.config: |-
[gerrit]
autoReload = true
replicateOnStartup = false
[replication]
lockErrorMaxRetries = 5
maxRetries = 5
useCGitClient = false
consumeStreamEvents = false
eventBrokerTopic = gerrit
syncRefs = "ALL REFS ASYNC"
maxApiPayloadSize = 40000
[remote]
url = admin@<remote_url>:/var/gerrit/git/${name}.git
apiUrl = http://<remote_url>:8080
fetch = +refs/:refs/
When starting the pull replication from the target pod to pull repositories from the source pod use the following command:
ssh -p 29418 <target-pod_url> pull-replication start --all
The ${name} placeholder in the config file is incorrectly taking the repository names from the target pod instead of the source pod, resulting in an error (see attached screenshot).
Note: The test.git repository exists in the target pod but not in the source pod.
Could someone help us with the configuration of the same and let us know where are we going wrong?
[1] : https://gerrit.googlesource.com/plugins/pull-replication/+/refs/heads/master/src/main/resources/Documentation/config.md
Thanks
Aankhi--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/bcd8f1f4-c52c-4d42-8fc8-f2d3e1505a8en%40googlegroups.com.