Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container placement restrictions prevent successful deployment #10

Open
Tmonster opened this issue Jun 11, 2021 · 0 comments
Open

Container placement restrictions prevent successful deployment #10

Tmonster opened this issue Jun 11, 2021 · 0 comments

Comments

@Tmonster
Copy link

Tmonster commented Jun 11, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant