Ask Your Question
1

Heat Error: image 'NoneType' object has no attribute 'replace'

asked 2015-06-23 12:34:31 -0500

darren-wang gravatar image

updated 2015-06-23 12:37:23 -0500

I followed the installation guide to verify my heat installation, however, I can't create a stack. My template is exactly the same as "installation guide for Ubuntu 14.04 LTS":

heat_template_version: 2014-10-16
description: A simple server.

parameters:
  ImageID:
    type: string
    description: Image use to boot a server
  NetID:
    type: string
    description: Network ID for the server

resources:
  server:
    type: OS::Nova::Server
    properties:
      image: { get_param: ImageID }
      flavor: m1.tiny
      networks:
      - network: { get_param: NetID }

outputs:
  private_ip:
    description: IP address of the server in the private network
    value: { get_attr: [ server, first_address ] }

The command I used to create a stack is:

# NET_ID=$(nova net-list | awk '/ darren-net / { print $2 }')
# heat stack-create -f test-stack.yml -P "ImageID=cirros-0.3.3-x86_64;NetID=$NET_ID" testStack

The imageID is a little different from installation guide because in our openstack, we are still using cirros-0.3.3 for testing.

This is the error I get:

    2015-06-24 01:21:41.435 8092 DEBUG heat.common.serializers [req-7d0fee69-93ef-4ad9-857d-c99acdd81ba6 admin admin] JSON response : {"explanation": "The server could not comply with the request since it is either malformed or otherwise incorrect.", "code": 400, "error": {"message": "Property error : server: image 'NoneType' object has no attribute 'replace'", 
"traceback": "Traceback (most recent call last):\n\n  
File \"/usr/lib/python2.7/dist-packages/heat/common/context.py\", line 300, in wrapped\n    return func(self, ctx, *args, **kwargs)\n\n  
File \"/usr/lib/python2.7/dist-packages/heat/engine/service.py\", line 669, in create_stack\n    parent_resource_name)\n\n  
File \"/usr/lib/python2.7/dist-packages/heat/engine/service.py\", line 577, in _parse_template_and_validate_stack\n    stack.validate()\n\n  
File \"/usr/lib/python2.7/dist-packages/osprofiler/profiler.py\", line 105, in wrapper\n    return f(*args, **kwargs)\n\n  
File \"/usr/lib/python2.7/dist-packages/heat/engine/stack.py\", line 613, in validate\n    raise ex\n\nStackValidationFailed: Property error : server: image 'NoneType' object has no attribute 'replace'\n", "type": "StackValidationFailed"}, "title": "Bad Request"} to_json /usr/lib/python2.7/dist-packages/heat/common/serializers.py:42

Our glance, nova and neutron are working well.

It seems like stack validation failed, can anyone tell me how to solve this problem? Thanks a lot!

edit retag flag offensive close merge delete

Comments

We're tracking this issue in the bug report https://bugs.launchpad.net/heat/+bug/...

Steve Baker gravatar imageSteve Baker ( 2015-07-05 17:52:03 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-08-05 19:33:48 -0500

asalkeld gravatar image

As @steve-baker said please go follow the bug instead: https://bugs.launchpad.net/heat/+bug/...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-06-23 12:34:31 -0500

Seen: 686 times

Last updated: Aug 05 '15