[Openstack] [Openstack Heat] create failed, Bad network format: missing 'uuid' (HTTP 400)

Steven Hardy shardy at redhat.com
Wed Sep 3 08:32:21 UTC 2014


On Wed, Sep 03, 2014 at 06:54:14AM +0000, khayam.gondal at gmail.com wrote:
>    I am using following template to create a Heat Stack.
> 
>  heat_template_version: 2013-05-23
> 
>      description: Hot Template to deploy a single server
> 
>      parameters:
>        ImageID:
>          type: string
>          description: Image ID
>        NetID:
>          type: string
>          description: External Network ID
> 
>      resources:
>        server_0:
>          type: OS::Nova::Server
>          properties:
>            name: "server0"
>            image: { get_param: ImageID }
>            flavor: "m1.small"
>            networks:
>            - network: { get_param: NetID }
> 
>      outputs:
>        server0_ip:
>          description: IP of the server
>          value: { get_attr: [ server_0, first_address ] }
> 
>  When I create stack. It shows create failed status. BadRequest: Bad network format: missing 'uuid' (HTTP 400) (Request-ID: req-c8360423-e597-495e-9b36-0158177ccd1a). I also attached the snapshot of error.
> 

I believe you either need to use NetID to create a port, then pass that to
the OS::Nova::Server resource, or pass a fully qualified network definition
in via networks (e.g a map, containing the port):

http://docs.openstack.org/developer/heat/template_guide/openstack.html#OS::Nova::Server

https://github.com/openstack/heat-templates/blob/master/hot/servers_in_existing_neutron_net.yaml#L38

Steve




More information about the Openstack mailing list