cc-oci-runtime
cc-oci-runtime copied to clipboard
Swarm - Test that verifies replicas' names fails on Fedora with docker 17.05
Test check that the replicas' names are different fails on Fedora 25 with docker 17.05
On CL and Ubuntu, the tests passes correctly. Below the output from the test:
not ok 2 check that the replicas' names are different
# (in test file swarm.bats, line 93)
# `REPLICAS[$i]="$(curl $url 2> /dev/null)"' failed
# Error response from daemon: This node is not a swarm manager. Use "docker swarm init" or "docker swarm join" to connect this node to swarm and try again.
# Swarm initialized: current node (wxsynbmcbwqt5uiwi1o6lkot0) is now a manager.
#
# To add a worker to this swarm, run the following command:
#
# docker swarm join \
# --token SWMTKN-1-5vm4azrqaliu4sqnxdt1yz41w4zqfnehplh0o10lydvi71kbnm-2h68qegyksx9umdo0qy548mnp \
# 172.17.0.5:2377
#
# To add a manager to this swarm, run 'docker swarm join-token manager' and follow the instructions.
#
# us8mnv7shfx14gpch8dxp9fbe
# Since --detach=false was not specified, tasks will be created in the background.
# In a future release, --detach=false will become the default.
# ID NAME MODE REPLICAS IMAGE PORTS
# us8mnv7shfx1 testswarm replicated 0/4 nginx:latest *:8080->80/tcp
# INFO: wait for 120
# INFO: try 1
# ID NAME MODE REPLICAS IMAGE PORTS
# us8mnv7shfx1 testswarm replicated 0/4 nginx:latest *:8080->80/tcp
# ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
# 8zsfpywsoo9x testswarm.1 nginx:latest fedora-cc-ci-vm.localdomain Running Preparing less than a second ago
# j0p9cxp15y40 testswarm.2 nginx:latest fedora-cc-ci-vm.localdomain Running Preparing less than a second ago
# 4megrnnw155u testswarm.3 nginx:latest fedora-cc-ci-vm.localdomain Running Accepted less than a second ago
# fukvd534lhdl testswarm.4 nginx:latest fedora-cc-ci-vm.localdomain Running Preparing less than a second ago
# INFO: replicas running : 0/4
# INFO: try 2
# ID NAME MODE REPLICAS IMAGE PORTS
# us8mnv7shfx1 testswarm replicated 0/4 nginx:latest *:8080->80/tcp
# ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
# 8zsfpywsoo9x testswarm.1 nginx:latest fedora-cc-ci-vm.localdomain Running Starting 1 second ago
# j0p9cxp15y40 testswarm.2 nginx:latest fedora-cc-ci-vm.localdomain Running Starting 1 second ago
# 4megrnnw155u testswarm.3 nginx:latest fedora-cc-ci-vm.localdomain Running Starting 1 second ago
# fukvd534lhdl testswarm.4 nginx:latest fedora-cc-ci-vm.localdomain Running Starting 1 second ago
# INFO: replicas running : 0/4
# INFO: try 3
# ID NAME MODE REPLICAS IMAGE PORTS
# us8mnv7shfx1 testswarm replicated 1/4 nginx:latest *:8080->80/tcp
# ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
# 8zsfpywsoo9x testswarm.1 nginx:latest fedora-cc-ci-vm.localdomain Running Starting 2 seconds ago
# j0p9cxp15y40 testswarm.2 nginx:latest fedora-cc-ci-vm.localdomain Running Running less than a second ago
# 4megrnnw155u testswarm.3 nginx:latest fedora-cc-ci-vm.localdomain Running Starting 2 seconds ago
# fukvd534lhdl testswarm.4 nginx:latest fedora-cc-ci-vm.localdomain Running Starting 2 seconds ago
# INFO: replicas running : 0/4
# INFO: try 4
# ID NAME MODE REPLICAS IMAGE PORTS
# us8mnv7shfx1 testswarm replicated 2/4 nginx:latest *:8080->80/tcp
# ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
# 8zsfpywsoo9x testswarm.1 nginx:latest fedora-cc-ci-vm.localdomain Running Starting 3 seconds ago
# j0p9cxp15y40 testswarm.2 nginx:latest fedora-cc-ci-vm.localdomain Running Running 1 second ago
# 4megrnnw155u testswarm.3 nginx:latest fedora-cc-ci-vm.localdomain Running Running less than a second ago
# fukvd534lhdl testswarm.4 nginx:latest fedora-cc-ci-vm.localdomain Running Starting 3 seconds ago
# INFO: replicas running : 0/4
# INFO: try 5
# ID NAME MODE REPLICAS IMAGE PORTS
# us8mnv7shfx1 testswarm replicated 4/4 nginx:latest *:8080->80/tcp
# ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
# 8zsfpywsoo9x testswarm.1 nginx:latest fedora-cc-ci-vm.localdomain Running Running less than a second ago
# j0p9cxp15y40 testswarm.2 nginx:latest fedora-cc-ci-vm.localdomain Running Running 2 seconds ago
# 4megrnnw155u testswarm.3 nginx:latest fedora-cc-ci-vm.localdomain Running Running 1 second ago
# fukvd534lhdl testswarm.4 nginx:latest fedora-cc-ci-vm.localdomain Running Running less than a second ago
# INFO: replicas running : 1/4
# INFO: try 6
# ID NAME MODE REPLICAS IMAGE PORTS
# us8mnv7shfx1 testswarm replicated 4/4 nginx:latest *:8080->80/tcp
# ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
# 8zsfpywsoo9x testswarm.1 nginx:latest fedora-cc-ci-vm.localdomain Running Running 1 second ago
# j0p9cxp15y40 testswarm.2 nginx:latest fedora-cc-ci-vm.localdomain Running Running 3 seconds ago
# 4megrnnw155u testswarm.3 nginx:latest fedora-cc-ci-vm.localdomain Running Running 2 seconds ago
# fukvd534lhdl testswarm.4 nginx:latest fedora-cc-ci-vm.localdomain Running Running 1 second ago
# INFO: replicas running : 2/4
# INFO: try 7
# ID NAME MODE REPLICAS IMAGE PORTS
# us8mnv7shfx1 testswarm replicated 4/4 nginx:latest *:8080->80/tcp
# ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
# 8zsfpywsoo9x testswarm.1 nginx:latest fedora-cc-ci-vm.localdomain Running Running 2 seconds ago
# j0p9cxp15y40 testswarm.2 nginx:latest fedora-cc-ci-vm.localdomain Running Running 4 seconds ago
# 4megrnnw155u testswarm.3 nginx:latest fedora-cc-ci-vm.localdomain Running Running 3 seconds ago
# fukvd534lhdl testswarm.4 nginx:latest fedora-cc-ci-vm.localdomain Running Running 2 seconds ago
# INFO: replicas running : 4/4
# testswarm
# ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS
# wxsynbmcbwqt5uiwi1o6lkot0 * fedora-cc-ci-vm.localdomain Ready Active Leader
# Node left the swarm.
# Error response from daemon: This node is not a swarm manager. Use "docker swarm init" or "docker swarm join" to connect this node to swarm and try again.
ok 3 check that replicas has two interfaces
Another issue I see is that this failure caused the tests last around 15 minutes to finish, which is too long for the CI
@chavafg only that issue right ?