Search the VMware Knowledge Base (KB)
View by Article ID

VIO Creating/launching Heat Stack fails with the error: ERROR: … is not a list (2151151)

  • 0 Ratings

Symptoms

  • Launching heat stack from horizon dashboard fails with this error:

    Error: ERROR: "u'AutoHeatBuildsNet'" is not a list
    Message from python-heatclient CLI output is similar to the following.
    # openstack stack create -t heatTest.yml HeatStackName
    ERROR: "u'AutoHeatBuildsNet'" is not a list


  • In the /var/log/heat/heat-api.log file, on one or more VIO controllers, you see entries similar to:

    2017-08-04 04:45:22.625 2590 ERROR heat.common.wsgi [req-067b3912-5666-4585-ae5a-8f5bb3237e1d - Project Default - default default] Unexpected error occurred serving API: "u'AutoHeatBuildsNet'" is not a list
    ### lines omitted for brevity ###
    2017-08-04 04:45:22.625 2590 ERROR heat.common.wsgi File "/usr/lib/python2.7/dist-packages/heat/engine/properties.py", line 438, in get_user_value
    2017-08-04 04:45:22.625 2590 ERROR heat.common.wsgi raise ValueError(six.text_type(e))
    2017-08-04 04:45:22.625 2590 ERROR heat.common.wsgi
    2017-08-04 04:45:22.625 2590 ERROR heat.common.wsgi ValueError: "u'AutoHeatBuildsNet'" is not a list
    2017-08-04 04:45:22.625 2590 ERROR heat.common.wsgi
    2017-08-04 04:45:22.625 2590 ERROR heat.common.wsgi
    2017-08-04 04:45:22.629 2590 DEBUG heat.common.serializers [req-067b3912-5666-4585-ae5a-8f5bb3237e1d - Project Default - default default] JSON response : {"explanation": "The server could not comply with the request since it is either malformed or otherwise incorrect.", "code": 400, "error": {"message": "\"u'AutoHeatBuildsNet'\" is not a list",


  • In the /var/log/heat/heat-engine.log file, on one or more VIO controllers, you see entries similar to:

    2017-08-04 04:45:22.614 2767 DEBUG heat.engine.parameter_groups [req-067b3912-5666-4585-ae5a-8f5bb3237e1d - Project Default - default default] Validating Parameter Groups: OS::project_id, image_id_input, OS::stack_id, volume_size, subnet_input, network_input, flavor_type_input validate /usr/lib/python2.7/dist-packages/heat/engine/parameter_groups.py:42
    2017-08-04 04:45:22.618 2767 ERROR oslo_messaging.rpc.dispatcher [req-067b3912-5666-4585-ae5a-8f5bb3237e1d - Project Default - default default] Exception during message handling: "u'AutoHeatBuildsNet'" is not a list

Note: This log excerpt is an example. Date, time, and environmental variables may vary depending on your environment.

Cause

This issue occurs because the network parameter should be a list type data. However, the YAML format used passed the network name as a string.

Resolution

Format the Networks:data in the Resources: section as a nested series but using "- " (Note the white space is needed.)

In this example, the networks key value is being set as string of a json_map type format. The output is error due to wrong data type as the data is not being converted into a list type array. The ": " is the indicator of a key:
 
### lines omitted for brevity ###
parameters:
network_id:
type: string
label: Network For The Stack
default: "HeatStackNetwork,"
### lines omitted for brevity ###
resources:
nova_instance_core:
type: OS::Nova::Server
properties:
name: Instance VM Name
networks: { get_param: network_id }
### lines omitted for brevity ###
 
By using the YAML nested series format "- ", the json_map is then passed to the networks key as a list type array:
 
### lines omitted for brevity ###
parameters:
network_id:
type: string
label: Network For The Stack
default: "HeatStackNetwork"
### lines omitted for brevity ###
resources:
nova_instance_core:
type: OS::Nova::Server
properties:
name: Instance VM Name
networks:
- network: { get_param: network_id }
### lines omitted for brevity ###

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 0 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.

What can we do to improve this information? (4000 or fewer characters)




Please enter the Captcha code before clicking Submit.
  • 0 Ratings
Actions
KB: