[JIRA] (JENKINS-57396) Pods Terminate before container image can download

11 views
Skip to first unread message

daniel.watrous@trinet.com (JIRA)

unread,
May 10, 2019, 5:08:02 AM5/10/19
to jenkinsc...@googlegroups.com
Daniel Watrous created an issue
 
Jenkins / Bug JENKINS-57396
Pods Terminate before container image can download
Issue Type: Bug Bug
Assignee: Guillermo Sanchez Urien
Components: kubernetes-ci-plugin
Created: 2019-05-10 09:07
Environment: Jenkins 1.164.2, Kubernetes 1.14
Labels: jenkins kuberenetes-plugin
Priority: Major Major
Reporter: Daniel Watrous

I have a build that uses 9 containers, but the Pod never gets to start because it can't finish downloading in the amount of time (100 seconds) that the kubernetes plugin allows.

io.fabric8.kubernetes.client.KubernetesClientTimeoutException: Timed out waiting for [100000] milliseconds for [Pod] with name:[api-build-4f60479c-c124-4d8b-a7e6-3f27f05e163d-570px-5n191] in namespace [jenkins].
	at org.csanchez.jenkins.plugins.kubernetes.AllContainersRunningPodWatcher.await(AllContainersRunningPodWatcher.java:134)
	at org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher.launch(KubernetesLauncher.java:128)
	at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:294)
	at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
	at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

May 10, 2019 8:57:17 AM FINER org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncherRemoving Jenkins node: api-build-4f60479c-c124-4d8b-a7e6-3f27f05e163d-570px-5n191
May 10, 2019 8:57:17 AM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesSlave _terminateTerminating Kubernetes instance for agent api-build-4f60479c-c124-4d8b-a7e6-3f27f05e163d-570px-5n191
May 10, 2019 8:57:17 AM FINE org.csanchez.jenkins.plugins.kubernetes.KubernetesCloudBuilding connection to Kubernetes k8s-houston URL https://api.eng.houston.trinet-k8s.com:7443/ namespace jenkins
May 10, 2019 8:57:17 AM FINE org.csanchez.jenkins.plugins.kubernetes.KubernetesCloudConnected to Kubernetes k8s-houston URL https://api.eng.houston.trinet-k8s.com:7443/
May 10, 2019 8:57:17 AM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesSlave deleteSlavePodTerminated Kubernetes instance for agent jenkins/api-build-4f60479c-c124-4d8b-a7e6-3f27f05e163d-570px-5n191
May 10, 2019 8:57:17 AM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesSlave _terminateDisconnected computer api-build-4f60479c-c124-4d8b-a7e6-3f27f05e163d-570px-5n191

I would like to be able to set this in the settings, or at least as an argument when I start Jenkins.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

guillermo@elasticbox.com (JIRA)

unread,
May 13, 2019, 12:17:02 PM5/13/19
to jenkinsc...@googlegroups.com
Guillermo Sanchez Urien assigned an issue to Carlos Sanchez
 

Hola Carlos, this issue belongs to your plugin.

Salud2!

Change By: Guillermo Sanchez Urien
Assignee: Guillermo Carlos Sanchez Urien

daniel.watrous@trinet.com (JIRA)

unread,
May 13, 2019, 1:45:03 PM5/13/19
to jenkinsc...@googlegroups.com
Daniel Watrous updated an issue
Change By: Daniel Watrous
I have a build that uses 9 containers, but the Pod never gets to start because it can't finish downloading in the amount of time (100 seconds) that the kubernetes plugin allows.
{code:java}

io.fabric8.kubernetes.client.KubernetesClientTimeoutException: Timed out waiting for [100000] milliseconds for [Pod] with name:[api-build-4f60479c-c124-4d8b-a7e6-3f27f05e163d-570px-5n191] in namespace [jenkins].
at org.csanchez.jenkins.plugins.kubernetes.AllContainersRunningPodWatcher.await(AllContainersRunningPodWatcher.java:134)
at org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher.launch(KubernetesLauncher.java:128)
at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:294)
at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

May 10, 2019 8:57:17 AM FINER org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncherRemoving Jenkins node: api-build-4f60479c-c124-4d8b-a7e6-3f27f05e163d-570px-5n191
May 10, 2019 8:57:17 AM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesSlave _terminateTerminating Kubernetes instance for agent api-build-4f60479c-c124-4d8b-a7e6-3f27f05e163d-570px-5n191
May 10, 2019 8:57:17 AM FINE org.csanchez.jenkins.plugins.kubernetes.KubernetesCloudBuilding connection to Kubernetes k8s-houston URL https://api.eng. houston company . trinet-k8s. com: 7443 6443 / namespace jenkins
May 10, 2019 8:57:17 AM FINE org.csanchez.jenkins.plugins.kubernetes.KubernetesCloudConnected to Kubernetes k8s-houston URL https://api.eng.
houston company . trinet-k8s. com: 7443 6443 /

May 10, 2019 8:57:17 AM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesSlave deleteSlavePodTerminated Kubernetes instance for agent jenkins/api-build-4f60479c-c124-4d8b-a7e6-3f27f05e163d-570px-5n191
May 10, 2019 8:57:17 AM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesSlave _terminateDisconnected computer api-build-4f60479c-c124-4d8b-a7e6-3f27f05e163d-570px-5n191
{code}

I would like to be able to set this in the settings, or at least as an argument when I start Jenkins.

jenkins-ci@carlossanchez.eu (JIRA)

unread,
May 13, 2019, 2:21:02 PM5/13/19
to jenkinsc...@googlegroups.com
Carlos Sanchez commented on Bug JENKINS-57396
 
Re: Pods Terminate before container image can download

just set slaveConnectTimeout in the template

daniel.watrous@trinet.com (JIRA)

unread,
May 14, 2019, 9:52:02 AM5/14/19
to jenkinsc...@googlegroups.com
Daniel Watrous resolved as Not A Defect
 
Change By: Daniel Watrous
Status: Open Resolved
Resolution: Not A Defect

daniel.watrous@trinet.com (JIRA)

unread,
May 14, 2019, 9:52:02 AM5/14/19
to jenkinsc...@googlegroups.com
Daniel Watrous commented on Bug JENKINS-57396
 
Re: Pods Terminate before container image can download

Carlos Sanchez Thanks for the reply. Sorry I didn't notice that. I was looking for something in the settings, but it makes sense to put it in the podTemplate.

jglick@cloudbees.com (JIRA)

unread,
Jun 12, 2019, 3:34:08 PM6/12/19
to jenkinsc...@googlegroups.com
Jesse Glick updated an issue
 
Change By: Jesse Glick
Labels: jenkins kuberenetes-plugin
Reply all
Reply to author
Forward
0 new messages