fogify icon indicating copy to clipboard operation
fogify copied to clipboard

Container placement restrictions prevent successful deployment

Open Tmonster opened this issue 4 years ago • 0 comments

Hi,

I've been having trouble getting fogify to properly deploy docker containers. I keep getting a constraints error based on placement. If I run a basic deployment with 3 nodes, I observe the following after deployment

> sudo docker stack ps fogify
ID                          NAME              IMAGE            NODE      DESIRED STATE   CURRENT STATE            ERROR                                                                 PORTS
ythsey7iev4oaz2xjibsbta80   fogify_node-1.1   taxi-exp:0.0.1             Running         Pending 33 seconds ago   "no suitable node (scheduling constraints not satisfied on 1 node)"   
phz53b4hxunbn10g1kc5dwot7   fogify_node-2.1   taxi-exp:0.0.1             Running         Pending 34 seconds ago   "no suitable node (scheduling constraints not satisfied on 1 node)"   
um5iw455ixsfebs94wi8wf0nt   fogify_node-3.1   taxi-exp:0.0.1             Running         Pending 34 seconds ago   "no suitable node (scheduling constraints not satisfied on 1 node)"

In order to fix it I removed the contraints on placement specified in DockerBasedConnectors.node_representation. Specifically the ['placement'] constraints and the if statements about the main_cluster_node. I don't know if this is the proper fix, so happy to hear alternatives.

Thanks, Tom Ebergen

Tmonster avatar Jun 11 '21 11:06 Tmonster