-
Notifications
You must be signed in to change notification settings - Fork 239
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
Problems with Gitrepos with wrong URLs #2520
Comments
Added this other issue to prevent from the UI that a Git Repo with invalid URL due to spaces or bad characters is allowed to go through: rancher/dashboard#11239 |
Both issues are
#2542 should fix both |
The following video shows the fix running with rancher 2.9-head and a dev version of fleet Screen.Recording.2024-06-21.at.17.39.28.mov |
Checked in It seems performance is still a bit slow compared to the one in fix. Screencast.from.05-07-24.17.08.33.webm |
FTR: noticed this other issue while testing this: rancher/dashboard#11404 |
Closing this issue given that the error message is fixed. |
Issue:
Some logs and performance degradation seem to occur on Rancher
v2.9-e0af6cccbff0210e1538004dfc67f10f40597c20-head
withfleet:v0.10.0-rc.15
when creating a GitRepo with spaces in URL and trying to fix.There are more then one issue here, but I try to summarize as this:
Git Updating
.Rancher v2.8.4
withfleet:103.1.5+up0.9.5
to settle things.This can be easier visualized as in this video of rancher
v2.9-e0af6cccbff0210e1538004dfc67f10f40597c20-head
|fleet:v0.10.0-rc.15
:29_ko.webm
As opposed to this one in
v2.8.4
|fleet:103.1.5+up0.9.5
where things look smoother:284_ok.webm
Attaching logs of gitjob: gitjob_logs.json
Logs summary here
{"level":"error","ts":"2024-06-14T08:01:43Z","logger":"git-latest-commit-poll-watch","msg":"error fetching commit","gitrepo":{"kind":"GitRepo","apiVersion":"fleet.cattle.io/v1alpha1","metadata":{"name":"test29","namespace":"fleet-local","uid":"234426b7-3e2c-4e4d-9a │
│ {"level":"error","ts":"2024-06-14T08:01:58Z","logger":"git-latest-commit-poll-watch","msg":"error fetching commit","gitrepo":{"kind":"GitRepo","apiVersion":"fleet.cattle.io/v1alpha1","metadata":{"name":"test29","namespace":"fleet-local","uid":"234426b7-3e2c-4e4d-9a │
│ {"level":"info","ts":"2024-06-14T08:02:01Z","logger":"gitjob","msg":"job deletion triggered because of generation change","controller":"gitrepo","controllerGroup":"fleet.cattle.io","controllerKind":"GitRepo","GitRepo":{"name":"test29","namespace":"fleet-local"},"na │
│ {"level":"error","ts":"2024-06-14T08:02:01Z","msg":"Reconciler error","controller":"gitrepo","controllerGroup":"fleet.cattle.io","controllerKind":"GitRepo","GitRepo":{"name":"test29","namespace":"fleet-local"},"namespace":"fleet-local","name":"test29","reconcileID" │
│ {"level":"error","ts":"2024-06-14T08:03:09Z","logger":"git-latest-commit-poll-watch","msg":"error fetching commit","gitrepo":{"kind":"GitRepo","apiVersion":"fleet.cattle.io/v1alpha1","metadata":{"name":"test-29","namespace":"fleet-local","uid":"9b7677fb-c6a6-4904-a │
│ {"level":"error","ts":"2024-06-14T08:03:24Z","logger":"git-latest-commit-poll-watch","msg":"error fetching commit","gitrepo":{"kind":"GitRepo","apiVersion":"fleet.cattle.io/v1alpha1","metadata":{"name":"test-29","namespace":"fleet-local","uid":"9b7677fb-c6a6-4904-a │
│ {"level":"info","ts":"2024-06-14T08:03:39Z","logger":"git-latest-commit-poll-watch","msg":"new commit found","gitrepo":{"kind":"GitRepo","apiVersion":"fleet.cattle.io/v1alpha1","metadata":{"name":"test-29","namespace":"fleet-local","uid":"9b7677fb-c6a6-4904-aafe-64 │
│ {"level":"error","ts":"2024-06-14T08:04:09Z","logger":"git-latest-commit-poll-watch","msg":"error fetching commit","gitrepo":{"kind":"GitRepo","apiVersion":"fleet.cattle.io/v1alpha1","metadata":{"name":"test-29","namespace":"fleet-local","uid":"9b7677fb-c6a6-4904-a │
│ {"level":"info","ts":"2024-06-14T08:04:21Z","logger":"gitjob","msg":"job deletion triggered because of generation change","controller":"gitrepo","controllerGroup":"fleet.cattle.io","controllerKind":"GitRepo","GitRepo":{"name":"test-29","namespace":"fleet-local"},"n
Reproduction steps:
You can watch the video to better reproduce but in nutshell:
fleet:v0.10.0-rc.15
. (You can use our ci if desired to spin a machine from here)3. Observe Issue 1
4. Now go back to Git Repo and correct the incorrect space at the end of URL. Save
5. Observe Issue 2 (long time to update repo compared to 2.8.4)
Test environment
v2.9-e0af6cccbff0210e1538004dfc67f10f40597c20-head
on single clusterK3s v1.28.8 +k3s1
The text was updated successfully, but these errors were encountered: