[JIRA] (JENKINS-50207) Transient error "container [*] does not exist in pod"

2018-03-16 Thread mmalet...@shoprunner.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Michael Maletich updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-50207  
 
 
  Transient error "container [*] does not exist in pod"   
 

  
 
 
 
 

 
Change By: 
 Michael Maletich  
 

  
 
 
 
 

 
 About 1 in every 4 of our builds dies with the error "container [] does not exist in pod []".  Rerunning the build usually fixes the error. example strack trace:{noformat}java.io.IOException: container [docker] does not exist in pod [jenkins-slave-bn834-q2pw4] at org.csanchez.jenkins.plugins.kubernetes.pipeline.ContainerExecDecorator$1.waitUntilContainerIsReady(ContainerExecDecorator.java:307) at org.csanchez.jenkins.plugins.kubernetes.pipeline.ContainerExecDecorator$1.doLaunch(ContainerExecDecorator.java:136) at org.csanchez.jenkins.plugins.kubernetes.pipeline.ContainerExecDecorator$1.launch(ContainerExecDecorator.java:132) at hudson.Launcher$ProcStarter.start(Launcher.java:450) at org.jenkinsci.plugins.durabletask.BourneShellScript.launchWithCookie(BourneShellScript.java:186) at org.jenkinsci.plugins.durabletask.FileMonitoringTask.launch(FileMonitoringTask.java:66) at org.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep$Execution.start(DurableTaskStep.java:176) at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:229) at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:153) at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:108) at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:157) at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:23) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:133) at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:155) at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:159) at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:129) at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:129) at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:129) at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:129) at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17) at WorkflowScript.run(WorkflowScript:30) at ___cps.transform___(Native Method) at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(C

[JIRA] (JENKINS-50207) Transient error "container [*] does not exist in pod"

2018-03-15 Thread mmalet...@shoprunner.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Michael Maletich created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-50207  
 
 
  Transient error "container [*] does not exist in pod"   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Carlos Sanchez  
 
 
Components: 
 kubernetes-plugin  
 
 
Created: 
 2018-03-15 20:57  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Michael Maletich  
 

  
 
 
 
 

 
 About 1 in every 4 of our builds dies with the error "container [] does not exist in pod []".  Rerunning the build usually fixes the error.   

 
podTemplate(label: 'docker-node',
containers: [
containerTemplate(name: 'python2', image: 'python:2.7.14', ttyEnabled: true, command: 'cat')
]
) {
node('docker-node') {
container('python2') {
checkout scm
stage("Setup") {
sh("pip install -r dev-requirements.txt")
}
stage("Lint") {
sh("make pep8")
}
stage("Tests") {
sh("make tests")
}
switch (env.BRANCH_NAME) {
case "master":
stage('Publish Package') {
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'artifactory_jenkins',
usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']]) {
sh("printf '[distutils]\nindex-servers = local\n\n[local]\nusername: $USERNAME\npassword: %s' '$PASSWORD' > ~/.pypirc")
sh("python setup.py bdist_wheel upload -r local")
}
}
}
}
}
}

Running version 1.1.3 of the kubernetes plugin on Jenkins 2.89.4.

Happy to append any logs that might be necessary.