Docker Community Forums

Share and learn in the Docker community.

Docker compose: nable to find a node that satisfies provider=


(Hmaeck) #1

Hi have the following problem with my docker UCP installation:

Whenever I want to launch an application with Docker compose on my devstackdockerengine1, I get a message that the host with the given ‘label’ doesn’t exists.

So if I want to launch a container on the node with the tag provider==generic, I get the following error:

unable to find a node that satisfies provider==generic

However, my docker info shows that node:

docker info
Containers: 36
Running: 33
Paused: 0
Stopped: 3
Images: 53
Server Version: swarm/1.1.3
Role: primary
Strategy: spread
Filters: health, port, dependency, affinity, constraint
Nodes: 4
devstackdockerengine1: 192.168.123.1:12376
└ Status: Healthy
└ Containers: 3
└ Reserved CPUs: 0 / 4
└ Reserved Memory: 0 B / 8.11 GiB
└ Labels: executiondriver=, kernelversion=3.16.0-4-amd64, location=on_premise_BE, operatingsystem=Debian GNU/Linux 8 (jessie), provider=generic, storagedriver=aufs, target=apps, type=devstacker
└ Error: (none)
└ UpdatedAt: 2016-06-01T13:00:03Z
esxdockerengine1: 192.168.123.14:12376
└ Status: Healthy
└ Containers: 12
└ Reserved CPUs: 0 / 8
└ Reserved Memory: 0 B / 64.42 GiB
└ Labels: executiondriver=native-0.2, kernelversion=4.1.19-boot2docker, location=on_premise_BE, operatingsystem=Boot2Docker 1.10.3 (TCL 6.4.1); master : 625117e - Thu Mar 10 22:09:02 UTC 2016, provider=vmwarevsphere, storagedriver=aufs, target=apps, type=controllers
└ Error: (none)
└ UpdatedAt: 2016-06-01T13:00:13Z
esxdockerengine2: 192.168.123.15:12376
└ Status: Healthy
└ Containers: 16
└ Reserved CPUs: 0 / 8
└ Reserved Memory: 0 B / 64.42 GiB
└ Labels: executiondriver=native-0.2, kernelversion=4.1.19-boot2docker, location=on_premise_BE, operatingsystem=Boot2Docker 1.10.3 (TCL 6.4.1); master : 625117e - Thu Mar 10 22:09:02 UTC 2016, provider=vmwarevsphere, storagedriver=aufs, target=apps, type=secondary
└ Error: (none)
└ UpdatedAt: 2016-06-01T13:00:09Z
esxdockerengine3: 192.168.123.39:12376
└ Status: Healthy
└ Containers: 5
└ Reserved CPUs: 0 / 8
└ Reserved Memory: 0 B / 64.42 GiB
└ Labels: executiondriver=, kernelversion=4.1.19-boot2docker, location=on_premise_BE, operatingsystem=Boot2Docker 1.11.0 (TCL 7.0); HEAD : 32ee7e9 - Wed Apr 13 20:06:49 UTC 2016, provider=vmwarevsphere, storagedriver=aufs, target=loadbalancer, type=loadbalancing
└ Error: (none)
└ UpdatedAt: 2016-06-01T13:00:12Z
Cluster Managers: 1
192.168.123.14: Healthy
└ Orca Controller: https://192.168.123.14:443
└ Swarm Manager: tcp://192.168.123.14:3376
└ KV: etcd://192.168.123.14:12379
Plugins:
Volume:
Network:
Kernel Version: 4.1.19-boot2docker
Operating System: linux
Architecture: amd64
CPUs: 28
Total Memory: 201.4 GiB
Name: ucp-controller-esxdockerengine1
ID: 4DAZ:FR3E:32PA:N2IG:MHHC:AXO3:L4MH:C2WQ:NL7S:IFRK:JLLA:WONP
Labels:
com.docker.ucp.license_key=-0E7GBeiBeZAqdgJUYSzMDEy0xWX5ZOb0eng2_sJJRgw
com.docker.ucp.license_max_engines=10
com.docker.ucp.license_expires=2016-06-14 19:44:21 +0000 UTC
[root@localhost test]# sudo vi docker-compose.yml
[root@localhost test]# docker-compose up -d
Creating volume “test_db-data” with default driver
db-t is up-to-date
redis-t is up-to-date
Recreating test_worker-t_1
Recreating f90f8000de3b_f90f8000de3b_f90f8000de3b_test_voting-app-t_3

ERROR: for voting-app-t One of operator ==, != is expected
[root@localhost test]# sudo vi docker-compose.yml
[root@localhost test]# docker-compose up -d
Creating volume “test_db-data” with default driver
db-t is up-to-date
redis-t is up-to-date
test_worker-t_1 is up-to-date
Recreating f90f8000de3b_f90f8000de3b_f90f8000de3b_f90f8000de3b_test_voting-app-t_3

ERROR: for voting-app-t unable to find a node that satisfies provider==generic
[root@localhost test]# docker info
Containers: 36
Running: 34
Paused: 0
Stopped: 2
Images: 53
Server Version: swarm/1.1.3
Role: primary
Strategy: spread
Filters: health, port, dependency, affinity, constraint
Nodes: 4
devstackdockerengine1: 192.168.123.1:12376
└ Status: Healthy
└ Containers: 3
└ Reserved CPUs: 0 / 4
└ Reserved Memory: 0 B / 8.11 GiB
└ Labels: executiondriver=, kernelversion=3.16.0-4-amd64, location=on_premise_BE, operatingsystem=Debian GNU/Linux 8 (jessie), provider=generic, storagedriver=aufs, target=apps, type=devstacker
└ Error: (none)
└ UpdatedAt: 2016-06-01T13:09:02Z
esxdockerengine1: 192.168.123.14:12376
└ Status: Healthy
└ Containers: 12
└ Reserved CPUs: 0 / 8
└ Reserved Memory: 0 B / 64.42 GiB
└ Labels: executiondriver=native-0.2, kernelversion=4.1.19-boot2docker, location=on_premise_BE, operatingsystem=Boot2Docker 1.10.3 (TCL 6.4.1); master : 625117e - Thu Mar 10 22:09:02 UTC 2016, provider=vmwarevsphere, storagedriver=aufs, target=apps, type=controllers
└ Error: (none)
└ UpdatedAt: 2016-06-01T13:08:59Z
esxdockerengine2: 192.168.123.15:12376
└ Status: Healthy
└ Containers: 16
└ Reserved CPUs: 0 / 8
└ Reserved Memory: 0 B / 64.42 GiB
└ Labels: executiondriver=native-0.2, kernelversion=4.1.19-boot2docker, location=on_premise_BE, operatingsystem=Boot2Docker 1.10.3 (TCL 6.4.1); master : 625117e - Thu Mar 10 22:09:02 UTC 2016, provider=vmwarevsphere, storagedriver=aufs, target=apps, type=secondary
└ Error: (none)
└ UpdatedAt: 2016-06-01T13:08:28Z
esxdockerengine3: 192.168.123.39:12376
└ Status: Healthy
└ Containers: 5
└ Reserved CPUs: 0 / 8
└ Reserved Memory: 0 B / 64.42 GiB
└ Labels: executiondriver=, kernelversion=4.1.19-boot2docker, location=on_premise_BE, operatingsystem=Boot2Docker 1.11.0 (TCL 7.0); HEAD : 32ee7e9 - Wed Apr 13 20:06:49 UTC 2016, provider=vmwarevsphere, storagedriver=aufs, target=loadbalancer, type=loadbalancing
└ Error: (none)
└ UpdatedAt: 2016-06-01T13:09:02Z
Cluster Managers: 1
192.168.123.14: Healthy
└ Orca Controller: https://192.168.123.14:443
└ Swarm Manager: tcp://192.168.123.14:3376
└ KV: etcd://192.168.123.14:12379
Plugins:
Volume:
Network:
Kernel Version: 4.1.19-boot2docker
Operating System: linux
Architecture: amd64
CPUs: 28
Total Memory: 201.4 GiB
Name: ucp-controller-esxdockerengine1


(Vivek Saraswat) #2

Can you show the what the docker run/docker compose command you use looks like?