Uploaded image for project: 'Qt Quality Assurance Infrastructure'
  1. Qt Quality Assurance Infrastructure
  2. QTQAINFRA-2801

Docker causes agent process to crash during provisioning

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: dev
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      macOS

      Description

      During running Coin production baseline tests:

      http://coin.intra.qt.io:8090/coin/integration/qt/qt5/tasks/run_builds_1550140153

      docker provisioning seems to get interrupted while trying to install docker images

       

      agent:2019/02/14 11:21:16 build.go:416: Running provisioning bash script: "/var/folders/4p/q2h__94n78z4ff9gw2wjgjkr0000gn/T/provisioning-745669689/coin/provisioning/qtci-macos-10.12-x86_64/80-docker.sh"
      ++ dirname /var/folders/4p/q2h__94n78z4ff9gw2wjgjkr0000gn/T/provisioning-745669689/coin/provisioning/qtci-macos-10.12-x86_64/80-docker.sh
      + BASEDIR=/var/folders/4p/q2h__94n78z4ff9gw2wjgjkr0000gn/T/provisioning-745669689/coin/provisioning/qtci-macos-10.12-x86_64
      + /var/folders/4p/q2h__94n78z4ff9gw2wjgjkr0000gn/T/provisioning-745669689/coin/provisioning/qtci-macos-10.12-x86_64/../common/macos/docker.sh
      + url=https://download.docker.com/mac/stable/DockerToolbox.pkg
      + target_file=DockerToolbox.pkg
      ++ command -v sha1sum
      + '[' -x /usr/local/bin/sha1sum ']'
      + case ${BASH_SOURCE[0]} in
      + UNIX_PATH=/var/folders/4p/q2h__94n78z4ff9gw2wjgjkr0000gn/T/provisioning-745669689/coin/provisioning/qtci-macos-10.12-x86_64/../common/unix
      + source /var/folders/4p/q2h__94n78z4ff9gw2wjgjkr0000gn/T/provisioning-745669689/coin/provisioning/qtci-macos-10.12-x86_64/../common/unix/DownloadURL.sh
      ++ set -ex
      + url_cached=http://ci-files01-hki.intra.qt.io/input/windows/DockerToolbox.pkg
      + sha1=7196d2d30648d486978d29adb5837ff7876517c1
      + DownloadURL http://ci-files01-hki.intra.qt.io/input/windows/DockerToolbox.pkg https://download.docker.com/mac/stable/DockerToolbox.pkg 7196d2d30648d486978d29adb5837ff7876517c1 DockerToolbox.pkg
      + url=http://ci-files01-hki.intra.qt.io/input/windows/DockerToolbox.pkg
      + url_alt=https://download.docker.com/mac/stable/DockerToolbox.pkg
      + expectedSha1=7196d2d30648d486978d29adb5837ff7876517c1
      + targetFile=DockerToolbox.pkg
      + echo 'Downloading from primary URL '\''http://ci-files01-hki.intra.qt.io/input/windows/DockerToolbox.pkg'\'''
      Downloading from primary URL 'http://ci-files01-hki.intra.qt.io/input/windows/DockerToolbox.pkg'
      + curl --fail -L --retry 5 --retry-delay 5 -o DockerToolbox.pkg http://ci-files01-hki.intra.qt.io/input/windows/DockerToolbox.pkg
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
      
        0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
       11  201M   11 23.4M    0     0  32.1M      0  0:00:06 --:--:--  0:00:06 32.1M
       40  201M   40 82.5M    0     0  48.0M      0  0:00:04  0:00:01  0:00:03 48.0M
       72  201M   72  146M    0     0  53.9M      0  0:00:03  0:00:02  0:00:01 53.9M
      100  201M  100  201M    0     0  56.0M      0  0:00:03  0:00:03 --:--:-- 56.0M
      + echo 'Checking SHA1 on PKG '\''DockerToolbox.pkg'\'''
      Checking SHA1 on PKG 'DockerToolbox.pkg'
      + echo '7196d2d30648d486978d29adb5837ff7876517c1 *DockerToolbox.pkg'
      + sha1sum --check DockerToolbox.pkg.sha1
      DockerToolbox.pkg: OK
      + rm -f DockerToolbox.pkg.sha1
      + sudo installer -pkg DockerToolbox.pkg -target /
      installer: Package name is Docker Toolbox
      installer: Installing at base path /
      installer: The install was successful.
      + docker --version
      Docker version 18.03.0-ce, build 0520e24
      + docker-compose --version
      docker-compose version 1.20.1, build 5d8c71b
      + case ${BASH_SOURCE[0]} in
      + SERVER_PATH=/var/folders/4p/q2h__94n78z4ff9gw2wjgjkr0000gn/T/provisioning-745669689/coin/provisioning/qtci-macos-10.12-x86_64/../common/shared/testserver
      + case $(sysctl machdep.cpu.features) in
      ++ sysctl machdep.cpu.features
      + /var/folders/4p/q2h__94n78z4ff9gw2wjgjkr0000gn/T/provisioning-745669689/coin/provisioning/qtci-macos-10.12-x86_64/../common/shared/testserver/docker_testserver.sh VMX
      ++ command -v realpath
      + '[' -x '' ']'
      + FILE=/var/folders/4p/q2h__94n78z4ff9gw2wjgjkr0000gn/T/provisioning-745669689/coin/provisioning/qtci-macos-10.12-x86_64/../common/shared/testserver/docker_testserver.sh
      + case $FILE in
      + SERVER_PATH=/var/folders/4p/q2h__94n78z4ff9gw2wjgjkr0000gn/T/provisioning-745669689/coin/provisioning/qtci-macos-10.12-x86_64/../common/shared/testserver
      + case $1 in
      + source /var/folders/4p/q2h__94n78z4ff9gw2wjgjkr0000gn/T/provisioning-745669689/coin/provisioning/qtci-macos-10.12-x86_64/../common/shared/testserver/docker_machine.sh '-d virtualbox'
      ++ set -ex
      ++ TestMachine=qt-test-server
      +++ docker-machine ls -q --filter name=qt-test-server
      ++ '[' -z ']'
      ++ docker-machine create -d virtualbox qt-test-server
      Creating CA: /Users/qt/.docker/machine/certs/ca.pem
      Creating client certificate: /Users/qt/.docker/machine/certs/cert.pem
      Running pre-create checks...
      (qt-test-server) Default Boot2Docker ISO is out-of-date, downloading the latest release...
      (qt-test-server) Latest release for github.com/boot2docker/boot2docker is v18.09.2
      (qt-test-server) Downloading /Users/qt/.docker/machine/cache/boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v18.09.2/boot2docker.iso...
      (qt-test-server) 0%....10%....20%....30%....40%....50%....60%....70%....80%....90%....100%
      Creating machine...
      (qt-test-server) Copying /Users/qt/.docker/machine/cache/boot2docker.iso to /Users/qt/.docker/machine/machines/qt-test-server/boot2docker.iso...
      (qt-test-server) Creating VirtualBox VM...
      (qt-test-server) Creating SSH key...
      (qt-test-server) Starting the VM...
      (qt-test-server) Check network to re-create if needed...
      (qt-test-server) Found a new host-only adapter: "vboxnet0"
      2019-02-14 11:22:48,117 WARNING: The same agent (1550140263-1, RpcServiceAddress(hostName='10.225.255.196', port=49161)), called agentLaunched twice, that should not happen, forcefully restarting this workitem (provisioning/qtci-macos-10.12-x86_64-9-0da7a7/Provision)
      

      The agent relaunch is likely caused by the agent process crashing and bootstrap agent re-launching it.

       

       

      macOS 10.13

      http://coin.intra.qt.io:8090/coin/api/results/provisioning/qtci-macos-10.13-x86_64-2-86dbbe/provision_1550140290/log.txt.gz

       

      macOS 10.12

      http://coin.intra.qt.io:8090/coin/api/results/provisioning/qtci-macos-10.12-x86_64-9-0da7a7/provision_1550140292/log.txt.gz 

       

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              hehalmet Heikki Halmet
              Reporter:
              aakeskimo Aapo Keskimölö
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes