Skip to content

Container placement restrictions prevent successful deployment #10

@Tmonster

Description

@Tmonster

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions