Ask Your Question
0

NoValidHost error when launching server via Compute API v2

asked 2013-08-29 04:51:27 -0500

dmayne gravatar image

updated 2013-08-29 04:56:13 -0500

I am trying to launch an Ubuntu server via the api. The request is accepted and the server enters the build state but after a few minutes it gets the above error. I have tried posting a request with and without network parameter but same result

without network

{"server":{"user_data":"","imageRef":"http://173.226.178.195:8774/v2/a8f965544eb347ac96590fb58f50a595/images/a09323ba-ebc7-4cce-81a4-f2ad2560ebd7","name":"dmubuntu1019","flavorRef":"http://173.226.178.195:8774/v2/a8f965544eb347ac96590fb58f50a595/flavors/1"}}

with network

{"server":{"user_data":"","imageRef":"http://173.226.178.195:8774/v2/a8f965544eb347ac96590fb58f50a595/images/a09323ba-ebc7-4cce-81a4-f2ad2560ebd7","name":"dmubuntu1019","flavorRef":"http://173.226.178.195:8774/v2/a8f965544eb347ac96590fb58f50a595/flavors/1", "networks": [{"uuid": "0596a2ca-b375-4506-8eb7-be7a537e15e8","fixed_ip": "192.168.123.55"}]}}

What am i missing from my request?

Thanks for your help

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-08-29 06:31:37 -0500

dmayne gravatar image

updated 2013-08-29 06:56:35 -0500

This issue was due to a network being created without a subsequent subnet.

Ensure that all networks have at least one subnet before attempting to launch servers

If you do not specify a network in the request, an attempt is made to link all available networks to the server. If you do specify a network, ensure it has a subnet as well

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

Stats

Asked: 2013-08-29 04:51:27 -0500

Seen: 70 times

Last updated: Aug 29 '13