Ask Your Question
0

There are not enough hosts available Docker Swarm Creation Cluster error in Magnum

asked 2016-12-13 16:55:45 -0600

messeiry gravatar image

Hello I am recieving the following error in the magnum, when i try to create a cluster of docker swarm

2016-12-13 14:53:27.227 25775 ERROR magnum.conductor.handlers.cluster_conductor [req-5bcf5521-3ebd-40fd-ac71-225c407147b2 admin admin - - -] Cluster error, stack status: CREATE_FAILED, stack_id: 0524c8f4-bdb9-442b-8a82-64d662690a78, reason: Resource CREATE failed: ResourceInError: resources.swarm_masters.resources[0].resources.swarm_master: Went to status ERROR due to "Message: No valid host was found. There are not enough hosts available., Code: 500"

any clues

edit retag flag offensive close merge delete

Comments

Have enough resources for the cluster? More logs can be found at heat engine and nova services

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2017-02-17 04:57:33 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-02-17 04:42:00 -0600

Hi,

I had similar issues. Check the followings: how much vCPU, RAM, etc is defined in the flavor you chose (if you did not specify during the cluster-template-create then I think m1.small is the default), and make sure you have at least 1 compute node which has enough free resource for that.

Keep in mind that even if you chose to create only a single node cluster, magnum will actually create 2 VM (1 master and 1 'slave' node). So you have to have enough resource for both vm.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-12-13 16:55:45 -0600

Seen: 114 times

Last updated: Feb 17