-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: GitRepository.idpbuilder.cnoe.io "argocd" is invalid: spec.provider.gitURL: Invalid value: "": spec.provider.gitURL in body should match '^https?:\/\/.+$' #425
Comments
I think that we have an issue when se set the gitea auth
|
Hmm this isn't good. Looks like we are not checking for nil somehow. We will have to investigate. |
This is usually harmless. It just means the Gitea repository is not ready and do not have an repository to associate yet. We can improve logging here. For nil ref, gitea.NewClient apparently calls the server. Under situations with resource contentions, this could return nil. We shouldn't call that function. |
Nil ref should be fixed now. Errors three and four seem to be related to resource contentions where we cannot get the response we need in reasonable time. We assume gitea and k8s can respond in 30 seconds per request. |
I did some tests on a Virtual VM (on ly macos) having 8GB of RAM and 6 CPU and using your fix (= Git Client) and didn't get anymore the errors 2, 3. Remark: Error 1 still happens but is not blocking. A better log message should help the users @nabuskey to understand what it happens under the hood |
I will close this ticket as fixed and another ticket exists also to better log the message |
Issue
When we create a new new cluster (using podman as container engine), we got different errors
Command used:
Errors
We have potentially several issues OR one having the following side effects here:
Error 1 -
spec.provider.gitURL: Invalid value
Oct 24 09:09:13 ERROR Reconciler error controller=localbuild controllerGroup=idpbuilder.cnoe.io controllerKind=Localbuild name=konflux name=konflux reconcileID=332f25c8-136d-465b-b517-db93baa3defd err=reconciling bootstrap apps creating argocd repo CR: GitRepository.idpbuilder.cnoe.io "argocd" is invalid: spec.provider.gitURL: Invalid value: "": spec.provider.gitURL in body should match '^https?:\/\/.+$'
Error 2 -
panic: runtime error: invalid memory address or nil pointer dereference
Error 3 - Timeout
Error 4 - tls
Tests
I did a couple of tests on MacOS - ARM64 using either podman or docker locally and here is what I oberserved
Docker
Docker client: 27.2.0
Docker engine: 4.34.2
where the VM has 12 CPU and max 12 GB of RAM
I didn't get such errors when I created 2 times a cluster
Podman
Podman engine (uses AppleHV): 5.0.3
Podman Client: 5.2.4
I got the errors reported here using: CPU: 6 and Max memory 8 GB of RAM
I din't get the errors except one time the
error 1
using CPU: 12 and memory 12 GB of RAMThe text was updated successfully, but these errors were encountered: