Skip to content

State 'Pending' is too vague when a constraint condition is not meet #33807

@pascalandy

Description

@pascalandy

Hello folks!

I don't know if this is a bug per say but I consider we should improve this behaviour.

I run Swarm 17.05CE within only one node.

A week ago, I label my node like this:
docker node update --label-add DeployGRP="$THIS_NODE" "$THIS_NODE"

Today I changed my mind and labelled it like this:
docker node update --label-add deploy_grp="$THIS_NODE" "$THIS_NODE"

I re-deployed my containers using:
--constraint "node.labels.DeployGRP==$THIS_NODE"
and of course it didn't work.

Then I checked was going on via:
docker service ps --no-trunc webapp

The current state message was:
Pending 3 minutes ago

The issue here is that, it didn't help me to debug the problem. I think it would be fair to see a Constraint mismatch when a constraint is preventing the container to be deployed.

Make sense?
Pascal | @askpascalandy

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/cliClientarea/swarmkind/enhancementEnhancements are not bugs or new features but can improve usability or performance.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions