Can't use docker'command in Jenkins: client is newer than server

Hello, We recently added a Jenkins job to build the 'ovirt-containers' project. That job uses the 'docker' command to build images, but it looks like there is a mismatch between the version of the docker client and the version of the docker server: Error response from daemon: client is newer than server (client API version: 1.24, server API version: 1.22) See the complete log here: http://jenkins.ovirt.org/job/ovirt-containers_master_check-patch-el7-/4 /console How can we solve that? Thanks in advance, Juan Hernandez

On 3 May 2017 at 14:07, Juan Hernández <jhernand@redhat.com> wrote:
Error response from daemon: client is newer than server (client API version: 1.24, server API version: 1.22)
See the complete log here:
http://jenkins.ovirt.org/job/ovirt-containers_master_check-patch-el7-/4 /console
How can we solve that?
Yeah, we saw that before. please use 'node-filter' in the project YAML to limit the system to match underlying hosts distros with the distro used for testing. See YAML for the 'jenkins' project for an example: https://gerrit.ovirt.org/gitweb?p=jenkins.git;a=blob;f=jobs/confs/projects/j... But I see you were trying to build from el7 mock running on FC24. This probably should work, as we are keeping Docker up to date all the time (Updates are pulled to the slave by the very same job). Where are you getting the client from? -- Barak Korren RHV DevOps team , RHCE, RHCi Red Hat EMEA redhat.com | TRIED. TESTED. TRUSTED. | redhat.com/trusted

On 05/03/2017 01:21 PM, Barak Korren wrote:
On 3 May 2017 at 14:07, Juan Hernández <jhernand@redhat.com> wrote:
Error response from daemon: client is newer than server (client API version: 1.24, server API version: 1.22)
See the complete log here:
http://jenkins.ovirt.org/job/ovirt-containers_master_check-patch-el7-/4 /console
How can we solve that?
Yeah, we saw that before. please use 'node-filter' in the project YAML to limit the system to match underlying hosts distros with the distro used for testing.
See YAML for the 'jenkins' project for an example: https://gerrit.ovirt.org/gitweb?p=jenkins.git;a=blob;f=jobs/confs/projects/j...
I will do that, thanks.
But I see you were trying to build from el7 mock running on FC24. This probably should work, as we are keeping Docker up to date all the time (Updates are pulled to the slave by the very same job). Where are you getting the client from?
The client comes from the 'docker' RPM, installed using the 'check-patch.packages' file.

On 3 May 2017 at 14:21, Barak Korren <bkorren@redhat.com> wrote:
On 3 May 2017 at 14:07, Juan Hernández <jhernand@redhat.com> wrote:
But I see you were trying to build from el7 mock running on FC24. This probably should work, as we are keeping Docker up to date all the time (Updates are pulled to the slave by the very same job). Where are you getting the client from?
Gonna answer myself. This is from the mock setup logs: docker x86_64 2:1.12.6-16.el7.centos centos-extras-el7 14 M So its coming from centos-extras. I guess with FC24 being EOLed soon, it is no longer being updated, so I guess the node-filter must be used. -- Barak Korren RHV DevOps team , RHCE, RHCi Red Hat EMEA redhat.com | TRIED. TESTED. TRUSTED. | redhat.com/trusted
participants (2)
-
Barak Korren
-
Juan Hernández