BadRequest: Bad network format: missing 'uuid' (HTTP 400) in heat havana

Bug #1337260 reported by usha veepuri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Incomplete
Undecided
carl

Bug Description

While launching a stack using heat template in havana, the following error is displayed. The problem is with network property.

+-------------------------+-----+------------------------------------------------------------------------------------------------------------------+--------------------+----------------------+
| resource_name | id | resource_status_reason | resource_status | event_time |
+-------------------------+-----+------------------------------------------------------------------------------------------------------------------+--------------------+----------------------+
| flavor_Payload_node1 | 725 | state changed | CREATE_IN_PROGRESS | 2014-07-03T00:21:36Z |
| flavor_Controller_node1 | 726 | state changed | CREATE_IN_PROGRESS | 2014-07-03T00:21:37Z |
| demo | 727 | state changed | CREATE_IN_PROGRESS | 2014-07-03T00:21:37Z |
| flavor_Controller_node1 | 728 | state changed | CREATE_COMPLETE | 2014-07-03T00:21:38Z |
| demo | 729 | state changed | CREATE_COMPLETE | 2014-07-03T00:21:38Z |
| flavor_Payload_node1 | 730 | state changed | CREATE_COMPLETE | 2014-07-03T00:21:38Z |
| Controller_node1 | 731 | state changed | CREATE_IN_PROGRESS | 2014-07-03T00:21:38Z |
| Controller_node1 | 732 | BadRequest: Bad network format: missing 'uuid' (HTTP 400) (Request-ID: req-02742a75-71d7-487e-9208-b416910d812e) | CREATE_FAILED | 2014-07-03T00:48:07Z |
+-------------------------+-----+----------------------------------------------------

Revision history for this message
vaibhav_kale (vaibhav-kale) wrote :

hi usha veepuri ,
Could you please provide more details for the bug and template you used to create?

Revision history for this message
carl (gsl0610) wrote :

It seems you are creating an instance, and the network is missing when create the instance.

The following is an example of Instance:
heat_template_version: 2015-04-30
...
resources:
  ...
  the_resource:
    type: OS::Nova::Server
    properties:
      admin_pass: String
      availability_zone: String
      block_device_mapping: [{"snapshot_id": String, "volume_id": String, "volume_size": Integer, "device_name": String, "delete_on_termination": Boolean}, {"snapshot_id": String, "volume_id": String, "volume_size": Integer, "device_name": String, "delete_on_termination": Boolean}, ...]
      block_device_mapping_v2: [{"device_name": String, "swap_size": Integer, "disk_bus": String, "boot_index": Integer, "snapshot_id": String, "image_id": String, "volume_size": Integer, "volume_id": String, "delete_on_termination": Boolean, "device_type": String}, {"device_name": String, "swap_size": Integer, "disk_bus": String, "boot_index": Integer, "snapshot_id": String, "image_id": String, "volume_size": Integer, "volume_id": String, "delete_on_termination": Boolean, "device_type": String}, ...]
      config_drive: Boolean
      diskConfig: String
      flavor: String
      flavor_update_policy: String
      image: String
      image_update_policy: String
      key_name: String
      metadata: {...}
      name: String
      networks: [{"subnet": String, "uuid": String, "network": String, "port": String, "port_extra_properties": {"allowed_address_pairs": [{"mac_address": String, "ip_address": String}, {"mac_address": String, "ip_address": String}, ...], "admin_state_up": Boolean, "qos_policy": String, "binding:vnic_type": String, "value_specs": {...}, "port_security_enabled": Boolean, "mac_address": String}, "fixed_ip": String}, {"subnet": String, "uuid": String, "network": String, "port": String, "port_extra_properties": {"allowed_address_pairs": [{"mac_address": String, "ip_address": String}, {"mac_address": String, "ip_address": String}, ...], "admin_state_up": Boolean, "qos_policy": String, "binding:vnic_type": String, "value_specs": {...}, "port_security_enabled": Boolean, "mac_address": String}, "fixed_ip": String}, ...]
      personality: {...}
      reservation_id: String
      scheduler_hints: {...}
      security_groups: [Value, Value, ...]
      software_config_transport: String
      user_data: String
      user_data_format: String

And the definition of network is as below, you need to set an available network name or uuid for the instance.

network

Name or ID of network to create a port on.

String value expected.

Can be updated without replacement.

Value must be of type neutron.network

Changed in heat-templates:
assignee: nobody → carl (gsl0610)
Zane Bitter (zaneb)
affects: heat-templates → heat
Changed in heat:
status: New → Incomplete
Rico Lin (rico-lin)
Changed in heat:
milestone: none → no-priority-tag-bugs
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.