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

Failed to get pidID : unable to find pod main pid #19

Open
debianmaster opened this issue Oct 10, 2018 · 1 comment
Open

Failed to get pidID : unable to find pod main pid #19

debianmaster opened this issue Oct 10, 2018 · 1 comment

Comments

@debianmaster
Copy link

on 3.11 alpha pod-network controller is throwing this error. when a work load is deployed

time="2018-10-10T10:09:41Z" level=info msg="Go Version: go1.9.4"
--
  | time="2018-10-10T10:09:41Z" level=info msg="Go OS/Arch: linux/amd64"
  | time="2018-10-10T10:09:41Z" level=info msg="operator-sdk Version: 0.0.5+git"
  | time="2018-10-10T10:09:41Z" level=info msg="Managing Pods Running on Node: ns536048"
  | time="2018-10-10T10:10:55Z" level=error msg="Failed to get pidID : unable to find pod main pid"
  | time="2018-10-10T10:10:55Z" level=error msg="Failed to process pod : unable to find pod main pid"
  | time="2018-10-10T10:10:55Z" level=error msg="error syncing key (test/test-1-5zvts): unable to find pod main pid"
  | time="2018-10-10T10:10:55Z" level=error msg="Failed to get pidID : unable to find pod main pid"
  | time="2018-10-10T10:10:55Z" level=error msg="Failed to process pod : unable to find pod main pid"
  | time="2018-10-10T10:10:55Z" level=error msg="error syncing key (test/test-1-5zvts): unable to find pod main pid"
  | time="2018-10-10T10:10:55Z" level=error msg="Failed to get pidID : unable to find pod main pid"
  | time="2018-10-10T10:10:55Z" level=error msg="Failed to process pod : unable to find pod main pid"
  | time="2018-10-10T10:10:55Z" level=error msg="error syncing key (test/test-1-5zvts): unable to find pod main pid"
  | time="2018-10-10T10:10:55Z" level=error msg="Failed to get pidID : unable to find pod main pid"
  | time="2018-10-10T10:10:55Z" level=error msg="Failed to process pod : unable to find pod main pid"
  | time="2018-10-10T10:10:55Z" level=error msg="error syncing key (test/test-1-5zvts): unable to find pod main pid"
  | time="2018-10-10T10:10:56Z" level=error msg="Failed to get pidID : unable to find pod main pid"
  | time="2018-10-10T10:10:56Z" level=error msg="Failed to process pod : unable to find pod main pid"
  | time="2018-10-10T10:10:56Z" level=error msg="error syncing key (test/test-1-5zvts): unable to find pod main pid"
  | time="2018-10-10T10:10:56Z" level=error msg="Failed to get pidID : unable to find pod main pid"
  | time="2018-10-10T10:10:56Z" level=error msg="Failed to process pod : unable to find pod main pid"
  | time="2018-10-10T10:10:56Z" level=error msg="error syncing key (test/test-1-5zvts): unable to find pod main pid"
  | time="2018-10-10T10:10:56Z" level=error msg="Failed to get pidID : unable to find pod main pid"
  | time="2018-10-10T10:10:56Z" level=error msg="Failed to process pod : unable to find pod main pid"
  | time="2018-10-10T10:10:56Z" level=error msg="error syncing key (test/test-1-5zvts): unable to find pod main pid"
  | time="2018-10-10T10:10:57Z" level=info msg="Pod test-1-5zvts previously initialized, ignoring"
  | time="2018-10-10T10:11:02Z" level=info msg="Pod test-1-5zvts previously initialized, ignoring"
@jaredallard
Copy link

jaredallard commented Dec 15, 2018

Looks like this is caused by any container with more than one container running

if len(containers) == 1 {
inspect, err := h.dockerClient.ContainerInspect(dockerCtx, containers[0].ID)
if err != nil {
log.Error(err)
return "", err
}
log.Debugf("Pod Namespace: %s - Pod Name: %s - Container PID: %d", podName, podNamespace, inspect.State.Pid)
return fmt.Sprintf("%d", inspect.State.Pid), nil
}

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

2 participants