Hi Matthias,Thanks for your reply. So, do you mean the Gerrit operator helm chart got deprecated or the individual gerrit and gerrit replica helm charts? We are referring to the repo:
helm-charts/gerrit-operator - k8s-gerrit - Git at Google (googlesource.com)--> Is this chart deprecated?
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/27647451-bed2-4a38-9f2c-3609191b797en%40googlegroups.com.
Hi Mathias,Thanks for the confirmation.
Also, we have another situation here. I would be grateful if you could help:We are in the process of setting up Gerrit with a Gerrit operator on a local Ubuntu cluster using Minikube for testing. We've successfully deployed the Gerrit operator, along with the Gerrit cluster custom resource (CR) containing one primary and one replica, and ensured that prerequisites like NFS and Ingress (ISTIO) are installed.
However, even though all the pods and deployments are running, the Gerrit UI is not accessible. Upon checking the logs of the Gerrit operator, we noticed some startup errors related to the informer, and there are also warnings about the version. (Screenshot attached below: Operator_logs.png). Can someone provide insights into why these errors might be occurring?
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/7ac49c7d-3864-437e-b125-cc3e56498052n%40googlegroups.com.
Hi Matthias,
Please find the logs below:
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/c27c516c-b2da-4898-b054-5c948f7eaf58n%40googlegroups.com.
On Tue, Feb 6, 2024 at 7:36 AM Aankhi Talukdar <tallukd...@gmail.com> wrote:Hi Matthias,Please find the logs below:
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/CAKSZd3T748jmbTUqj03w44YB4kyi8EO8A49P5XzfXzjPvUynQw%40mail.gmail.com.
On Tue, 6 Feb 2024 at 09:29, Matthias Sohn <matthi...@gmail.com> wrote:On Tue, Feb 6, 2024 at 7:36 AM Aankhi Talukdar <tallukd...@gmail.com> wrote:Hi Matthias,Please find the logs below:The error is caused by missing CRDs. The operator requires the CRDs of the resources it manages to be present in the cluster. The easiest way to install those, is to install the gerrit-operator-crds helm chart, which is also a dependency of the gerrit-operator helm chart.
Hi Thomas,The CRDs are already implemented as a dependency in the Gerrit operator.Used the following commands to implement CRDs as per the documentation:
# Build the gerrit-operator-crds chart and store it in the charts/ subdirectory
helm dependency build helm-charts/gerrit-operator/
# Install the gerrit-operator-crds chart and the gerrit-operator chart
helm -n gerrit-operator install gerrit-operator helm-charts/gerrit-operator/
Also, the CRDs are installed as shown below:
kubectl get crds
NAME CREATED AT
addons.k3s.cattle.io 2024-02-07T06:26:44Z
etcdsnapshotfiles.k3s.cattle.io 2024-02-07T06:26:45Z
helmcharts.helm.cattle.io 2024-02-07T06:26:45Z
helmchartconfigs.helm.cattle.io 2024-02-07T06:26:45Z
gerritnetworks.gerritoperator.google.com 2024-02-07T07:07:43Z
gitgcs.gerritoperator.google.com 2024-02-07T07:07:43Z
receivers.gerritoperator.google.com 2024-02-07T07:07:43Z
gerrits.gerritoperator.google.com 2024-02-07T07:07:43Z
gerritclusters.gerritoperator.google.com 2024-02-07T07:07:43Z
I too suspect there might be some issue with the version mismatch as shown in the logs. Could you please update on the same?
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/70e7c4f7-c285-462f-aa7d-b7ba71363d76n%40googlegroups.com.
Hi Thomas,
Thanks for the update. The issue is resolved now.I could make the gerrit and gerrit replica up without ingress(with port forwarding).Trying to implement ingress following the documentation: https://gerrit-review.googlesource.com/c/k8s-gerrit/+/405561/4/Documentation/operator.md#401The istio-ingressgateway service is assigned with an external service and the Gateway URL as: 127.0.0.1:80. (Screenshot attached)
When trying to access the application with the URL, it throws a "404 page not found error".
Could you let me know what else am I missing?
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/41eadea4-86fb-4d9c-9d40-b07e5be72648n%40googlegroups.com.
Hi Thomas,Thanks for replying. I could bring up the Gerrit UI now. Thanks for helping.
Do we have Gerrit operator image supporting linux/arm64 platform as we could see that the image is supporting only Linux/amd64 architecture.If so, please share the image. If not, could you please share with us the Dockerfile for the gerrit-operator image?
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/CALaBVApq%3Drn_VjAsNkWst%2Bgv8TAu%2B_SApDUHBxJnn4-hJP7nMA%40mail.gmail.com.
Hi Matthias,
When we tried to run the maven build using the cmd [mvn clean install], we got errors related to the plugins used. I don't get the usage of the plugins and even though the image is created locally, the image is not runnable in arm64 architecture.As per the documentation mentioned over here:https://gerrit.googlesource.com/k8s-gerrit/+/54ee885f27451cf12528ff9348316a670802c19e/Documentation/operator-dev.md[This will build the operator source code, and create an image out of the built artifacts. The built image is multi-platform - it will run on both amd64 and arm64 architectures. It is okay to run this build command from an ARM Mac.]When run the build command from ARM Mac, getting build errors as provided in the log file attached.Also, the created image is specific to amd64 platform alone.
Hi Thomas,
Thanks for pointing out the formatting error.Could you please also let us know what should be the URL for globalref-db under the libs section of gerrit-cluster.yaml file? How did we set the URL and sha1 for the same?I am trying to pull the module: https://gerrit-ci.gerritforge.com/view/Plugins-stable-3.9/job/module-global-refdb-bazel-stable-3.9/lastSuccessfulBuild/artifact/bazel-bin/plugins/global-refdb/global-refdb.jar
but this is giving us sha1 mismatch issue:
initializer.tasks.download_plugins.InvalidPluginException: SHA1 of downloaded file (e4344b4e9ec70b52085fc8a8e313e93a328f4675) did not match expected SHA1 (0797df9f4d3937f2f78f1b8a0d9e5092bfaeee58). Removed downloaded file (/var/gerrit/lib/global-refdb.jar)
Hi Thomas,
Hi Thomas,
Thanks for the confirmation. The issue is solved now.
Next, we want to add one more pod in the Replica pod. We have two nodes in the EKS cluster. While deploying the Gerrit cluster with the configuration of two replicas into two nodes, we are getting the following issue:Failed to read NoteDb schema version1 error
at com.google.gerrit.server.schema.NoteDbSchemaVersionCheck.start(NoteDbSchemaVersionCheck.java:90)
at com.google.gerrit.lifecycle.LifecycleManager.start(LifecycleManager.java:95)
at com.google.gerrit.pgm.Daemon.start(Daemon.java:405)
at com.google.gerrit.pgm.Daemon.run(Daemon.java:298)
at com.google.gerrit.pgm.util.AbstractProgram.main(AbstractProgram.java:62)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.google.gerrit.launcher.GerritLauncher.invokeProgram(GerritLauncher.java:252)
at com.google.gerrit.launcher.GerritLauncher.mainImpl(GerritLauncher.java:148)
at com.google.gerrit.launcher.GerritLauncher.main(GerritLauncher.java:93)
at Main.main(Main.java:30)Could you let us know how to configure NoteDb inside the Gerrit cluster? Our version of Gerrit is 3.9.1.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/98752529-4c42-4588-b377-f6aa5b09a18dn%40googlegroups.com.
Hi Thomas,
Thanks for your support. We are done with all the high-availability plugin tests for Gerrit-operator in the AWS EKS cluster, and everything is working well.We want to work on a multi-site plugin for the Gerrit operator on the EKS cluster. We found many documentation on multi-site, but we are not getting any concrete idea on how to start with it. Could you please guide us on how to configure the multi-site plugin for Gerrit in the EKS cluster?
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/63156e93-12d8-4093-af8a-e8df2f05af0en%40googlegroups.com.