Skip to content
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

Operator fails to get log stream from job submitter because of sidecar containers #392

Closed
gyulaur opened this issue May 9, 2022 · 1 comment

Comments

@gyulaur
Copy link

gyulaur commented May 9, 2022

In our environment there are a couple of sidecar containers created besides the main one and based on the logs it seems that the operator is not able to get the logs from the main one because of this:

{
    "level":"error",
    "ts":1652094036.206498,
    "logger":"controllers.FlinkCluster",
    "msg":"Failed to get log stream from the job submitter pod. Will try again in the next iteration.",
    "cluster":"<namespace omitted>/<cluster>",
    "error":"failed to get logs for pod <cluster>-jobmanager-9jzsh: a container name must be specified for pod <cluster>-jobmanager-9jzsh, choose one of: [vault-agent-init istio-init jobmanager istio-proxy vault-agent]",
    "stacktrace":"github.com/spotify/flink-on-k8s-operator/controllers/flinkcluster.(*ClusterStateObserver).observe\n\t/workspace/controllers/flinkcluster/flinkcluster_observer.go:270\ngithub.jparrowsec.cn/spotify/flink-on-k8s-operator/controllers/flinkcluster.(*FlinkClusterHandler).reconcile\n\t/workspace/controllers/flinkcluster/flinkcluster_controller.go:144\ngithub.jparrowsec.cn/spotify/flink-on-k8s-operator/controllers/flinkcluster.(*FlinkClusterReconciler).Reconcile\n\t/workspace/controllers/flinkcluster/flinkcluster_controller.go:85\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:298\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:253\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:214"
}

I think this was addressed in an earlier PR (#205) but it seems that change was removed during a bigger refactor (#207)

@gyulaur
Copy link
Author

gyulaur commented May 11, 2022

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant