#8494 Azure Pipelines are broken due to docker compose tool upgrade
Closed: fixed a year ago by rcritten. Opened a year ago by abbra.

Looks like Azure Pipelines CI has upgraded Docker compose code version which leads to additional errors in processing our docker-compose.yml file.

https://dev.azure.com/freeipa/freeipa/_build/results?buildId=6061&view=logs&j=c3b3beac-3142-545b-181b-8ae72407437a&t=4475fbc0-1119-5fa5-c1d0-2f0cb6cb4700

2020-09-14T06:50:00.5976537Z ##[section]Starting: Run tests
2020-09-14T06:50:00.5983116Z ==============================================================================
2020-09-14T06:50:00.5983532Z Task         : Command line
2020-09-14T06:50:00.5983911Z Description  : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
2020-09-14T06:50:00.5984257Z Version      : 2.164.2
2020-09-14T06:50:00.5984716Z Author       : Microsoft Corporation
2020-09-14T06:50:00.5985130Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
2020-09-14T06:50:00.5985573Z ==============================================================================
2020-09-14T06:50:00.7290515Z Generating script.
2020-09-14T06:50:00.7305130Z ========================== Starting Command Output ===========================
2020-09-14T06:50:00.7328178Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/81d35487-0ca2-4cd2-b939-1aa951f6f69d.sh
2020-09-14T06:50:00.7389041Z + workdir=/home/vsts/work/1/s/ipa_envs
2020-09-14T06:50:00.7390570Z + rm -rf /home/vsts/work/1/s/ipa_envs
2020-09-14T06:50:00.7401572Z + mkdir /home/vsts/work/1/s/ipa_envs
2020-09-14T06:50:00.7415487Z + ln -sfr /home/vsts/work/1/s/ipatests/azure/scripts/azure-run-tests.sh /home/vsts/work/1/s/ipatests/azure/scripts/setup_containers.py ./
2020-09-14T06:50:00.7430474Z + export -f runner
2020-09-14T06:50:00.7430844Z + result=1
2020-09-14T06:50:00.7431254Z + rm -f 'result_*'
2020-09-14T06:50:00.7445535Z ++ seq 2
2020-09-14T06:50:00.7457782Z + parallel --tag --jobs 5 --linebuffer 'runner {}' ::: '1
2020-09-14T06:50:00.7458366Z 2'
2020-09-14T06:50:01.0484466Z 1  [2020-09-14 06:50:00] + '[' 1 -ne 1 ']'
2020-09-14T06:50:01.0486133Z 1  [2020-09-14 06:50:00] + PROJECT_ID=1
2020-09-14T06:50:01.0487177Z 1  [2020-09-14 06:50:00] + BUILD_REPOSITORY_LOCALPATH=/home/vsts/work/1/s
2020-09-14T06:50:01.0488203Z 1  [2020-09-14 06:50:00] + IPA_TESTS_TO_RUN_VARNAME=IPA_TESTS_TO_RUN_1
2020-09-14T06:50:01.0489519Z 1  [2020-09-14 06:50:00] + IPA_TESTS_TO_RUN='test_cmdline test_install test_ipaclient test_ipalib test_ipaplatform test_ipapython test_ipaserver test_ipatests_plugins test_xmlrpc/test_dns_plugin.py'
2020-09-14T06:50:01.0491298Z 1  [2020-09-14 06:50:00] + '[' -z 'test_cmdline test_install test_ipaclient test_ipalib test_ipaplatform test_ipapython test_ipaserver test_ipatests_plugins test_xmlrpc/test_dns_plugin.py' ']'
2020-09-14T06:50:01.0492952Z 1  [2020-09-14 06:50:00] + IPA_TESTS_ENV_NAME_VARNAME=IPA_TESTS_ENV_NAME_1
2020-09-14T06:50:01.0494001Z 1  [2020-09-14 06:50:00] + IPA_TESTS_ENV_NAME=base
2020-09-14T06:50:01.0494781Z 1  [2020-09-14 06:50:00] + '[' -z base ']'
2020-09-14T06:50:01.0495628Z 1  [2020-09-14 06:50:00] + IPA_TESTS_TYPE_VARNAME=IPA_TESTS_TYPE_1
2020-09-14T06:50:01.0496452Z 1  [2020-09-14 06:50:00] + IPA_TESTS_TYPE=base
2020-09-14T06:50:01.0497337Z 1  [2020-09-14 06:50:00] ++ tr -d '{}'
2020-09-14T06:50:01.0498144Z 1  [2020-09-14 06:50:00] +++ sed -e 's/[ \t]+*/,/g'
2020-09-14T06:50:01.0500561Z 1  [2020-09-14 06:50:00] +++ echo test_cmdline test_install test_ipaclient test_ipalib test_ipaplatform test_ipapython test_ipaserver test_ipatests_plugins test_xmlrpc/test_dns_plugin.py
2020-09-14T06:50:01.0505571Z 1  [2020-09-14 06:50:00] ++ eval 'echo {test_cmdline,test_install,test_ipaclient,test_ipalib,test_ipaplatform,test_ipapython,test_ipaserver,test_ipatests_plugins,test_xmlrpc/test_dns_plugin.py}'
2020-09-14T06:50:01.0506745Z 1  [2020-09-14 06:50:00] +++ echo test_cmdline test_install test_ipaclient test_ipalib test_ipaplatform test_ipapython test_ipaserver test_ipatests_plugins test_xmlrpc/test_dns_plugin.py
2020-09-14T06:50:01.0507884Z 1  [2020-09-14 06:50:00] + IPA_TESTS_TO_RUN='test_cmdline test_install test_ipaclient test_ipalib test_ipaplatform test_ipapython test_ipaserver test_ipatests_plugins test_xmlrpc/test_dns_plugin.py'
2020-09-14T06:50:01.0508760Z 1  [2020-09-14 06:50:00] + IPA_TESTS_TO_IGNORE_VARNAME=IPA_TESTS_TO_IGNORE_1
2020-09-14T06:50:01.0509339Z 1  [2020-09-14 06:50:00] + IPA_TESTS_TO_IGNORE=
2020-09-14T06:50:01.0509909Z 1  [2020-09-14 06:50:00] + '[' -n '' ']'
2020-09-14T06:50:01.0510725Z 1  [2020-09-14 06:50:00] + IPA_TESTS_CLIENTS_VARNAME=IPA_TESTS_CLIENTS_1
2020-09-14T06:50:01.0511307Z 1  [2020-09-14 06:50:00] + IPA_TESTS_CLIENTS=0
2020-09-14T06:50:01.0511893Z 1  [2020-09-14 06:50:00] + IPA_TESTS_REPLICAS_VARNAME=IPA_TESTS_REPLICAS_1
2020-09-14T06:50:01.0512570Z 1  [2020-09-14 06:50:00] + IPA_TESTS_REPLICAS=0
2020-09-14T06:50:01.0514174Z 1  [2020-09-14 06:50:00] + IPA_TESTS_CONTROLLER=1_master_1
2020-09-14T06:50:01.0514860Z 1  [2020-09-14 06:50:00] + IPA_TESTS_LOGSDIR=/freeipa/ipa_envs/base/logs
2020-09-14T06:50:01.0515443Z 1  [2020-09-14 06:50:00] + IPA_TESTS_DOMAIN=ipa.test
2020-09-14T06:50:01.0516009Z 1  [2020-09-14 06:50:01] + IPA_TESTS_REALM=IPA.TEST
2020-09-14T06:50:01.0516536Z 1  [2020-09-14 06:50:01] + '[' base == base ']'
2020-09-14T06:50:01.0517205Z 1  [2020-09-14 06:50:01] + IPA_TESTS_CLIENTS=0
2020-09-14T06:50:01.0517724Z 1  [2020-09-14 06:50:01] + IPA_TESTS_REPLICAS=0
2020-09-14T06:50:01.0518326Z 1  [2020-09-14 06:50:01] + project_dir=/home/vsts/work/1/s/ipa_envs/base
2020-09-14T06:50:01.0519115Z 1  [2020-09-14 06:50:01] + ln -sfr /home/vsts/work/1/s/ipatests/azure/Dockerfiles/docker-compose.yml /home/vsts/work/1/s/ipa_envs/base/
2020-09-14T06:50:01.0519988Z 1  [2020-09-14 06:50:01] + ln -sfr /home/vsts/work/1/s/ipatests/azure/Dockerfiles/seccomp.json /home/vsts/work/1/s/ipa_envs/base/
2020-09-14T06:50:01.0520803Z 1  [2020-09-14 06:50:01] + touch /home/vsts/work/1/s/ipa_envs/base/ipa-test-config.yaml
2020-09-14T06:50:01.0521440Z 1  [2020-09-14 06:50:01] + pushd /home/vsts/work/1/s/ipa_envs/base
2020-09-14T06:50:01.0522081Z 1  [2020-09-14 06:50:01] ~/work/1/s/ipa_envs/base ~/work/1/s
2020-09-14T06:50:01.0522730Z 1  [2020-09-14 06:50:01] + BUILD_REPOSITORY_LOCALPATH=/home/vsts/work/1/s
2020-09-14T06:50:01.0523446Z 1  [2020-09-14 06:50:01] + IPA_DOCKER_IMAGE=freeipa-azure-builder
2020-09-14T06:50:01.0524070Z 1  [2020-09-14 06:50:01] + IPA_NETWORK=ipanet
2020-09-14T06:50:01.0524738Z 1  [2020-09-14 06:50:01] + IPA_IPV6_SUBNET=2001:db8:1:1::/64
2020-09-14T06:50:01.0525525Z 1  [2020-09-14 06:50:01] + docker-compose -p 1 up --scale replica=0 --scale client=0 --force-recreate --remove-orphans -d
2020-09-14T06:50:08.1790907Z 1  [2020-09-14 06:50:07] The Compose file './docker-compose.yml' is invalid because:
2020-09-14T06:50:08.1794048Z 1  [2020-09-14 06:50:07] services.client.mem_limit contains an invalid type, it should be a string
2020-09-14T06:50:08.1794718Z + result=2
2020-09-14T06:50:08.1795153Z + echo Results:
2020-09-14T06:50:08.1795529Z Results:
2020-09-14T06:50:08.1795740Z ++ eval echo result_1 result_2
2020-09-14T06:50:08.1795968Z +++ echo result_1 result_2
2020-09-14T06:50:08.1796242Z + cat result_1 result_2
2020-09-14T06:50:08.1796682Z Command exited with non-zero status 1
2020-09-14T06:50:08.1797132Z tests: base, result: 1, time: 0:06.43
2020-09-14T06:50:08.1797782Z Command exited with non-zero status 1
2020-09-14T06:50:08.1798094Z tests: xmlrpc, result: 1, time: 0:06.36
2020-09-14T06:50:08.1798547Z + exit 2
2020-09-14T06:50:08.1798687Z 
2020-09-14T06:50:08.1828953Z ##[error]Bash exited with code '2'.
2020-09-14T06:50:08.1842836Z ##[section]Finishing: Run tests

Metadata Update from @abbra:
- Issue assigned to abbra

a year ago

master:

  • 31bc0df Specify memory limits as strings for docker compose

Commit c81799fc relates to this ticket

ipa-4-8:

  • 93fff04 Specify memory limits as strings for docker compose

Metadata Update from @rcritten:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

a year ago

Login to comment on this ticket.

Metadata