-
Notifications
You must be signed in to change notification settings - Fork 229
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
[v0.10] Backport of Updating Ports with correctDrift enabled using multiple-paths repo triggers an error #2834
Comments
(copied from #2609) Additional QAProblemWhen failing to correct drift on a resource (eg. modified ports array on a service), Fleet would leave a Solution
TestingSee reproduction steps above, in the issue description. Engineering TestingManual Testing
Automated Testing
QA Testing Considerations
Regressions ConsiderationsN/A |
I am still observing this in Rancher @weyfonk, am I perhaps not looking at something well or is it still this fix not being propagated into the above-mentioned fleet version? Fleet reconciliation error log{
"level": "error",
"ts": "2024-10-04T14:28:04Z",
"logger": "bundledeployment",
"msg": "Failed to deploy bundle",
"controller": "bundledeployment",
"controllerGroup": "fleet.cattle.io",
"controllerKind": "BundleDeployment",
"BundleDeployment": {
"name": "ds-cluster-correct-79-multiple-paths-service",
"namespace": "cluster-fleet-default-imported-0-f1158df57e01"
},
"namespace": "cluster-fleet-default-imported-0-f1158df57e01",
"name": "ds-cluster-correct-79-multiple-paths-service",
"reconcileID": "0b51e68c-b581-44cb-8a9d-4a00bc09c8ae",
"status": {
"conditions": [
{
"type": "Installed",
"status": "True",
"lastUpdateTime": "2024-10-04T14:09:56Z"
},
{
"type": "Deployed",
"status": "False",
"lastUpdateTime": "2024-10-04T14:11:18Z",
"reason": "Error",
"message": "cannot patch \"mp-app-service\" with kind Service: Service \"mp-app-service\" is invalid: spec.ports[1].name: Duplicate value: \"required-name2\""
},
{
"type": "Ready",
"status": "True",
"lastUpdateTime": "2024-10-04T14:10:04Z"
},
{
"type": "Monitored",
"status": "True",
"lastUpdateTime": "2024-10-04T14:09:56Z"
}
],
"appliedDeploymentID": "s-e900fb60b86d8593e95a733a0c0d1794f2d71a00910f794d19bcd4d57deca:aa73273923fd2b194b95dc51be330a7b1be92dafa689e0afb400abda8b37d8c0",
"release": "test-fleet-mp-service/ds-cluster-correct-79-multiple-paths-service:1",
"ready": true,
"nonModified": true,
"display": {
"deployed": "Error: cannot patch \"mp-app-service\" with kind Service: Service \"mp-app-service\" is invalid: spec.ports[1].name: Duplicate value: \"required-name2\"",
"monitored": "True",
"state": "ErrApplied"
},
"syncGeneration": 0
},
"error": "cannot patch \"mp-app-service\" with kind Service: Service \"mp-app-service\" is invalid: spec.ports[1].name: Duplicate value: \"required-name2\"",
"errorVerbose": "cannot patch \"mp-app-service\" with kind Service: Service \"mp-app-service\" is invalid: spec.ports[1].name: Duplicate value: \"required-name2\"\nhelm.sh/helm/v3/pkg/kube.(*Client).Update\n\t/home/runner/go/pkg/mod/github.com/rancher/helm/[email protected]/pkg/kube/client.go:438\nhelm.sh/helm/v3/pkg/action.(*Install).performInstall\n\t/home/runner/go/pkg/mod/github.com/rancher/helm/[email protected]/pkg/action/install.go:456\nhelm.sh/helm/v3/pkg/action.(*Install).performInstallCtx.func1\n\t/home/runner/go/pkg/mod/github.com/rancher/helm/[email protected]/pkg/action/install.go:421\nruntime.goexit\n\t/home/runner/go/pkg/mod/golang.org/[email protected]/src/runtime/asm_amd64.s:1695",
"stacktrace": "github.com/rancher/fleet/internal/cmd/agent/controller.(*BundleDeploymentReconciler).Reconcile\n\t/home/runner/work/fleet/fleet/internal/cmd/agent/controller/bundledeployment_controller.go:131\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:114\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:311\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:261\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:222"
}
{
"level": "error",
"ts": "2024-10-04T14:28:04Z",
"msg": "Reconciler error",
"controller": "bundledeployment",
"controllerGroup": "fleet.cattle.io",
"controllerKind": "BundleDeployment",
"BundleDeployment": {
"name": "ds-cluster-correct-79-multiple-paths-service",
"namespace": "cluster-fleet-default-imported-0-f1158df57e01"
},
"namespace": "cluster-fleet-default-imported-0-f1158df57e01",
"name": "ds-cluster-correct-79-multiple-paths-service",
"reconcileID": "0b51e68c-b581-44cb-8a9d-4a00bc09c8ae",
"error": "failed deploying bundle: cannot patch \"mp-app-service\" with kind Service: Service \"mp-app-service\" is invalid: spec.ports[1].name: Duplicate value: \"required-name2\"",
"errorCauses": [
{
"error": "failed deploying bundle: cannot patch \"mp-app-service\" with kind Service: Service \"mp-app-service\" is invalid: spec.ports[1].name: Duplicate value: \"required-name2\""
}
],
"stacktrace": "sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:324\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:261\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:222"
} |
Thanks @mmartin24 for raising this. I am still able to reproduce issues with updating service ports on Rancher |
Confirmed: this line calls a Fixing this would require either:
|
Tested in Setting back to backlog |
This was never in a RC |
Rechecked in 2.9 with Fleet |
This is a backport of #2609 to v0.10.
The text was updated successfully, but these errors were encountered: