Open flipy opened 7 years ago
please post dockercloud config from global xml config
Cloud settings from config.xml:
<clouds>
<com.github.kostyasha.yad.DockerCloud plugin="yet-another-docker-plugin@0.1.0-rc36">
<name>tpabcp5psdocker01</name>
<provisionedImages/>
<templates>
<com.github.kostyasha.yad.DockerSlaveTemplate>
<id>13fac45b-a6fe-4415-8c63-a15459f81839</id>
<labelString>docker</labelString>
<launcher class="com.github.kostyasha.yad.launcher.DockerComputerJNLPLauncher">
<launchTimeout>120</launchTimeout>
<user>jenkins</user>
<jvmOpts></jvmOpts>
<slaveOpts></slaveOpts>
<jenkinsUrl>jenkins</jenkinsUrl>
<noCertificateCheck>false</noCertificateCheck>
</launcher>
<remoteFs>/home/jenkins</remoteFs>
<mode>EXCLUSIVE</mode>
<retentionStrategy class="com.github.kostyasha.yad.strategy.DockerOnceRetentionStrategy">
<idleMinutes>10</idleMinutes>
<idleMinutes defined-in="com.github.kostyasha.yad.strategy.DockerOnceRetentionStrategy">10</idleMinutes>
</retentionStrategy>
<numExecutors>1</numExecutors>
<dockerContainerLifecycle>
<image>evarga/jenkins-slave</image>
<pullImage>
<pullStrategy>PULL_LATEST</pullStrategy>
<credentialsId></credentialsId>
</pullImage>
<createContainer>
<command></command>
<hostname></hostname>
<dnsHosts class="java.util.Collections$UnmodifiableRandomAccessList" resolves-to="java.util.Collections$UnmodifiableList">
<c class="list"/>
<list reference="../c"/>
</dnsHosts>
<volumes class="java.util.Collections$UnmodifiableRandomAccessList" resolves-to="java.util.Collections$UnmodifiableList">
<c class="list"/>
<list reference="../c"/>
</volumes>
<volumesFrom class="java.util.Collections$UnmodifiableRandomAccessList" resolves-to="java.util.Collections$UnmodifiableList">
<c class="list"/>
<list reference="../c"/>
</volumesFrom>
<environment class="java.util.Collections$UnmodifiableRandomAccessList" resolves-to="java.util.Collections$UnmodifiableList">
<c class="list"/>
<list reference="../c"/>
</environment>
<bindPorts></bindPorts>
<bindAllPorts>false</bindAllPorts>
<memoryLimit>0</memoryLimit>
<privileged>false</privileged>
<tty>false</tty>
<extraHosts class="java.util.Collections$UnmodifiableRandomAccessList" resolves-to="java.util.Collections$UnmodifiableList">
<c class="list"/>
<list reference="../c"/>
</extraHosts>
<devices class="java.util.Collections$UnmodifiableRandomAccessList" resolves-to="java.util.Collections$UnmodifiableList">
<c class="list"/>
<list reference="../c"/>
</devices>
<cpusetCpus></cpusetCpus>
<cpusetMems></cpusetMems>
<links class="java.util.Collections$UnmodifiableRandomAccessList" resolves-to="java.util.Collections$UnmodifiableList">
<c class="list"/>
<list reference="../c"/>
</links>
</createContainer>
<stopContainer>
<timeout>10</timeout>
</stopContainer>
<removeContainer>
<removeVolumes>true</removeVolumes>
<force>false</force>
</removeContainer>
</dockerContainerLifecycle>
<nodeProperties/>
<maxCapacity>1</maxCapacity>
</com.github.kostyasha.yad.DockerSlaveTemplate>
</templates>
<containerCap>10</containerCap>
<connector>
<serverUrl>tcp://tpabcp5psdocker01.us.scytl.net:2375</serverUrl>
<apiVersion>1.24</apiVersion>
<credentialsId></credentialsId>
<connectorType>JERSEY</connectorType>
</connector>
</com.github.kostyasha.yad.DockerCloud>
</clouds>
I think it fixed already. Is it still reproducible with the latest version?
FWIW, I noticed the same behavior and needed to remove '--signature-verification=false' from my docker daemon service config, and then restart the docker daemon.
That may be the question to docker-java. Could you compare two text outputs from docker pull XXX
command with and without?
Seems like https://github.com/docker-java/docker-java/issues/845 is the relevant bug. Let me know if you want me to paste in this info in that bug as well.
Here's the output with the sig-verification disabled:
Trying to pull repository XXX:4567/devops/jenkins-deploy ...
ansible: Pulling from XXX:4567/devops/jenkins-deploy
Digest: sha256:68111dd0797e3ebcc4d97c732efd237f166b55c8f8548df48d1ef366dbcd10f9
And sig-verification enabled:
Trying to pull repository XXX:4567/devops/jenkins-deploy ...
sha256:68111dd0797e3ebcc4d97c732efd237f166b55c8f8548df48d1ef366dbcd10f9: Pulling from XXX:4567/devops/jenkins-deploy
Digest: sha256:68111dd0797e3ebcc4d97c732efd237f166b55c8f8548df48d1ef366dbcd10f9
Status: Image is up to date for XXX:4567/devops/jenkins-deploy:ansible
So instead of docker image it shows hash. Both looks the same. Could you rm image before pulling it? Second log looks like after download.
@bdspecht and what yad plugin version do you use?
Yad plugin version: 0.1.0-rc39 Docker version: 1.12.6-32.git88a4867 on RHEL 7.3
Docker pull with sig-verification disabled, and after removing the image:
Trying to pull repository XXX:4567/devops/jenkins-deploy ...
ansible: Pulling from XXX:4567/devops/jenkins-deploy
74f0853ba93b: Already exists
c034d2d1081b: Already exists
8967c1d93494: Already exists
4aab4c14ca30: Already exists
169f5cb0438b: Already exists
837f539612fb: Already exists
f71350e040a9: Already exists
a1f424df8793: Already exists
575b84182fee: Already exists
ac96946d4018: Already exists
91dc2c5291a4: Already exists
cd53e7dc2cfb: Already exists
0cf947f15c3b: Already exists
eee26762c468: Already exists
2dbe02ccb7c9: Pull complete
d3549ff20f25: Pull complete
Digest: sha256:68111dd0797e3ebcc4d97c732efd237f166b55c8f8548df48d1ef366dbcd10f9
Using docker:
And Jenkins 2.46.2 and YADP 0.1.0-rc36, running from the official docker container.
When invoking the creation of a new docker slave, it fails with the following error:
The docker container can be pulled and started from command line: