You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: "exec /manager: argument list too long" in bootstrap-controller #6234
I have a k8s managed cluster and a namespace with thousands of pods with different VENV. My cnpg worked fine for over a year and suddenly, newly created clusters or rebooted old ones start hanging in pending status due to sidecar container error.
Log: exec /manager: argument list too long
Exactly same cluster manifest worked fine in other namespaces, so the problem relays to bash problem with large amount of VENVs in one namespace.
Proposed solution:
Add an ability to set Pod parameter: enableServiceLinks: false to any created CNPG pod.
@gbartolini Hi! Thanks for the attention. I want to emphasise that disableDefaultServices would not help as the issue is not linked directly to number of services deployed by cnpg, but rather to number of services in the same NS. And these services could be managed by other means. I think the proper solution would be to allow the cluster operator to change some fields from Pod Template Spec in cnpg cluster definition.
Did experience this issue as well. Gave cnpg.io/podPatch a try, but it does not seem to fix it in our case. We got the exec /manager: argument list too long for the initdb jobs
Activity
gbartolini commentedon Dec 3, 2024
Have you considered reducing the number of services deployed by the operator with
disableDefaultServices? See https://cloudnative-pg.io/documentation/current/service_management/gecube commentedon Dec 9, 2024
@gbartolini Hi! Thanks for the attention. I want to emphasise that
disableDefaultServiceswould not help as the issue is not linked directly to number of services deployed by cnpg, but rather to number of services in the same NS. And these services could be managed by other means. I think the proper solution would be to allow the cluster operator to change some fields from Pod Template Spec in cnpg cluster definition.mnencia commentedon Jan 31, 2025
Now you can fix this issue by using the new
cnpg.io/podPatchannotation. I.e.,feat: support customizable pod patches via annotations (cloudnative-p…
simplysoft commentedon Apr 19, 2025
Did experience this issue as well. Gave
cnpg.io/podPatcha try, but it does not seem to fix it in our case. We got theexec /manager: argument list too longfor theinitdbjobsfix: disable service links in bootstrap job pods to prevent argument …
fix: disable service links in bootstrap job pods to prevent argument …
fix: disable service links on the bootstrap pod