Skip to content

check_swarm.py returns "Node not in a swarm" for non-manager nodes in a swarm #96

@esabol

Description

@esabol

Running check_swarm.py --swarm works on manager nodes, but it fails on non-manager nodes with the incorrect message "Node not in a swarm". If you promote the non-manager node to a manager, it reports OK. If you demote some other node from being a manager, that node now fails with the aforementioned message.

I think this is due to a misunderstanding of the swarm API. It's looking for the wrong thing in the JSON, imho. (Not every node in a swarm should be a manager once you get more than 3 or 5 nodes.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions