NoValidHost error when launching server via Compute API v2

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

dmayne gravatar image

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

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


with network

{"server":{"user_data":"","imageRef":"","name":"dmubuntu1019","flavorRef":"", "networks": [{"uuid": "0596a2ca-b375-4506-8eb7-be7a537e15e8","fixed_ip": ""}]}}

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

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

dmayne gravatar image

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

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

Get to know Ask OpenStack

Resources for moderators

Question Tools


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

Seen: 89 times

Last updated: Aug 29 '13