settingsLogin | Registersettings

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

0 votes

I am using following template to create a Heat Stack.

heattemplateversion: 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.

P.S : I checked and double checked the Network ID and Image ID but error remains. heat logs shows same error heat.engine.resource BadRequest: Bad network format: missing 'uuid' (HTTP 400).

I had also asked at ask.openstack.org but still have no answers._______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


asked Sep 3, 2014 in openstack by Khayam_Gondal (580 points)   4
retagged Feb 25, 2015 by admin

4 Responses

0 votes

On Wed, Sep 03, 2014 at 06:54:14AM +0000, khayam.gondal@gmail.com wrote:
I am using following template to create a Heat Stack.

heattemplateversion: 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

responded Sep 3, 2014 by Steven_Hardy (16,900 points)   2 7 13
0 votes

Try with the network name rather than its ID.
On 09/03/2014 02:54 PM, khayam.gondal@gmail.com wrote:

I am using following template to create a Heat Stack.

|heattemplateversion: 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.
P.S : I checked and double checked the Network ID and Image ID but
error remains. heat logs shows same errorheat.engine.resource
BadRequest: Bad network format: missing 'uuid' (HTTP 400).

I had also asked
https://ask.openstack.org/en/question/46486/heat-create-failed-bad-network-format-missing-uuid-http-400/https://ask.openstack.org/en/question/46486/heat-create-failed-bad-network-format-missing-uuid-http-400/at
ask.openstack.org but still have no answers.


Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
responded Sep 3, 2014 by ZHOU_TAO_A (640 points)   3
0 votes

I already tried with Network Name but still no luck

On Wed, Sep 3, 2014 at 1:32 PM, ZHOU TAO A tao.a.zhou@alcatel-lucent.com
wrote:

Try with the network name rather than its ID.

On 09/03/2014 02:54 PM, khayam.gondal@gmail.com wrote:

I am using following template to create a Heat Stack.

heattemplateversion: 2013<
/span>-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.

P.S : I checked and double checked the Network ID and Image ID but error
remains. heat logs shows same error heat.engine.resource BadRequest: Bad
network format: missing 'uuid' (HTTP 400).

I had also asked
https://ask.openstack.org/en/question/46486/heat-create-failed-bad-network-format-missing-uuid-http-400/https://ask.openstack.org/en/question/46486/heat-create-failed-bad-network-format-missing-uuid-http-400/at
ask.openstack.org but still have no answers.


Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Mailing list:
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe :
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
responded Sep 3, 2014 by Khayam_Gondal (580 points)   4
0 votes

I was able to solve the problem and I had posted answer here

.

On Wed, Sep 3, 2014 at 3:25 PM, Khayam Gondal khayam.gondal@gmail.com
wrote:

I already tried with Network Name but still no luck

On Wed, Sep 3, 2014 at 1:32 PM, ZHOU TAO A tao.a.zhou@alcatel-lucent.com
wrote:

Try with the network name rather than its ID.

On 09/03/2014 02:54 PM, khayam.gondal@gmail.com wrote:

I am using following template to create a Heat Stack.

heattemplateversion: 2013<
/span>-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.

P.S : I checked and double checked the Network ID and Image ID but
error remains. heat logs shows same error heat.engine.resource
BadRequest: Bad network format: missing 'uuid' (HTTP 400).

I had also asked
https://ask.openstack.org/en/question/46486/heat-create-failed-bad-network-format-missing-uuid-http-400/https://ask.openstack.org/en/question/46486/heat-create-failed-bad-network-format-missing-uuid-http-400/at
ask.openstack.org but still have no answers.


Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Mailing list:
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe :
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
responded Sep 3, 2014 by Khayam_Gondal (580 points)   4
...