上次出现了 jenkins/inbound 问题后 , 我改了改 Pipeline 。
新增了一个inbound的容器 从阿里云仓库拉取 :
还是出现了下面问题 :
Started by user adminObtained test/Jenkinsfile3 from git https://gitee.com/catluv/jenkins-test.git[Pipeline] Start of Pipeline[Pipeline] podTemplate[Pipeline] {[Pipeline] retry[Pipeline] {[Pipeline] node[PodInfo] devops/k8s-build-12-gd8vj-9w976-bdq4q Container [golang] waiting [ContainerCreating] No message Container [inbound-agent] waiting [ContainerCreating] No message Container [jnlp] waiting [ContainerCreating] No message Container [maven] waiting [ContainerCreating] No message Pod [Pending][ContainersNotReady] containers with unready status: [inbound-agent maven golang jnlp] Created Pod: k8s devops/k8s-build-12-gd8vj-9w976-bdq4q [PodInfo] devops/k8s-build-12-gd8vj-9w976-bdq4q Container [golang] waiting [ContainerCreating] No message Container [inbound-agent] waiting [ContainerCreating] No message Container [jnlp] waiting [ContainerCreating] No message Container [maven] waiting [ContainerCreating] No message Pod [Pending][ContainersNotReady] containers with unready status: [inbound-agent maven golang jnlp] [PodInfo] devops/k8s-build-12-gd8vj-9w976-bdq4q Container [golang] waiting [ContainerCreating] No message Container [inbound-agent] waiting [ContainerCreating] No message Container [jnlp] waiting [ContainerCreating] No message Container [maven] waiting [ContainerCreating] No message Pod [Pending][ContainersNotReady] containers with unready status: [inbound-agent maven golang jnlp]Still waiting to schedule task ‘k8s-build-12-gd8vj-9w976-bdq4q’ is offline[PodInfo] devops/k8s-build-12-gd8vj-9w976-bdq4q Container [inbound-agent] terminated [Error] No message Container [jnlp] waiting [ErrImagePull] rpc error: code = Unknown desc = Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) Pod [Pending][ContainersNotReady] containers with unready status: [inbound-agent jnlp] devops/k8s-build-12-gd8vj-9w976-bdq4q Container inbound-agent was terminated. [PodInfo] devops/k8s-build-12-gd8vj-9w976-bdq4q Container [inbound-agent] terminated [Error] No message Container [jnlp] waiting [ImagePullBackOff] Back-off pulling image "jenkins/inbound-agent:3283.v92c105e0f819-4" Pod [Pending][ContainersNotReady] containers with unready status: [inbound-agent jnlp] - golang -- running -----Logs------------- - inbound-agent -- terminated (1) -----Logs------------- Exception in thread "main" java.io.EOFException: unexpected stream termination at hudson.remoting.ChannelBuilder.negotiate(ChannelBuilder.java:478) at hudson.remoting.ChannelBuilder.build(ChannelBuilder.java:422) at hudson.remoting.Launcher.main(Launcher.java:1018) at hudson.remoting.Launcher.runWithStdinStdout(Launcher.java:963) at hudson.remoting.Launcher.run(Launcher.java:493) at hudson.remoting.Launcher.main(Launcher.java:455) <===[JENKINS REMOTING CAPACITY]===>rO0ABXNyABpodWRzb24ucmVtb3RpbmcuQ2FwYWJpbGl0eQAAAAAAAAABAgABSgAEbWFza3hwAAAAAAAAAf4= - jnlp -- waiting - maven -- running -----Logs-------------[Pipeline] // node[Pipeline] }Could not find a node block associated with node (source of error) but inside podTemplate Queue task was cancelled org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: d0d9c919-a088-45ad-84c6-8d2b7f01708a Retrying[Pipeline] {[Pipeline] nodeCreated Pod: k8s devops/k8s-build-12-gd8vj-9w976-tp22m [PodInfo] devops/k8s-build-12-gd8vj-9w976-tp22m Container [golang] waiting [ContainerCreating] No message Container [inbound-agent] waiting [ContainerCreating] No message Container [jnlp] waiting [ContainerCreating] No message Container [maven] waiting [ContainerCreating] No message Pod [Pending][ContainersNotReady] containers with unready status: [inbound-agent maven golang jnlp] [PodInfo] devops/k8s-build-12-gd8vj-9w976-tp22m Container [golang] waiting [ContainerCreating] No message Container [inbound-agent] waiting [ContainerCreating] No message Container [jnlp] waiting [ContainerCreating] No message Container [maven] waiting [ContainerCreating] No message Pod [Pending][ContainersNotReady] containers with unready status: [inbound-agent maven golang jnlp]Still waiting to schedule task ‘k8s-build-12-gd8vj-9w976-tp22m’ is offline[PodInfo] devops/k8s-build-12-gd8vj-9w976-tp22m Container [inbound-agent] terminated [Error] No message Container [jnlp] waiting [ErrImagePull] rpc error: code = Unknown desc = Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) Pod [Pending][ContainersNotReady] containers with unready status: [inbound-agent jnlp] devops/k8s-build-12-gd8vj-9w976-tp22m Container inbound-agent was terminated. [PodInfo] devops/k8s-build-12-gd8vj-9w976-tp22m Container [inbound-agent] terminated [Error] No message Container [jnlp] waiting [ImagePullBackOff] Back-off pulling image "jenkins/inbound-agent:3283.v92c105e0f819-4" Pod [Pending][ContainersNotReady] containers with unready status: [inbound-agent jnlp] - golang -- running -----Logs------------- - inbound-agent -- terminated (1) -----Logs------------- Exception in thread "main" java.io.EOFException: unexpected stream termination at hudson.remoting.ChannelBuilder.negotiate(ChannelBuilder.java:478) at hudson.remoting.ChannelBuilder.build(ChannelBuilder.java:422) at hudson.remoting.Launcher.main(Launcher.java:1018) at hudson.remoting.Launcher.runWithStdinStdout(Launcher.java:963) at hudson.remoting.Launcher.run(Launcher.java:493) at hudson.remoting.Launcher.main(Launcher.java:455) <===[JENKINS REMOTING CAPACITY]===>rO0ABXNyABpodWRzb24ucmVtb3RpbmcuQ2FwYWJpbGl0eQAAAAAAAAABAgABSgAEbWFza3hwAAAAAAAAAf4= - jnlp -- waiting - maven -- running -----Logs------------- [PodInfo] devops/k8s-build-12-gd8vj-9w976-tp22m Container [inbound-agent] terminated [Error] No message Container [jnlp] waiting [ImagePullBackOff] Back-off pulling image "jenkins/inbound-agent:3283.v92c105e0f819-4" Pod [Pending][ContainersNotReady] containers with unready status: [inbound-agent jnlp][Pipeline] // node[Pipeline] }[Pipeline] // retry[Pipeline] }[Pipeline] // podTemplate[Pipeline] End of PipelineQueue task was cancelled org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 95cde665-4c22-4ba5-a4d1-910b864d04ab Finished: ABORTED