2015-06-23 17:53:09 |
DWang |
description |
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 ] } |
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 '/ demo-net / { print $2 }')
# heat stack-create -f test-stack.yml -P "ImageID=cirros-0.3.3-x86_64;NetID=$NET_ID" testStack
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 |
|
2015-06-23 17:58:14 |
DWang |
description |
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 '/ demo-net / { print $2 }')
# heat stack-create -f test-stack.yml -P "ImageID=cirros-0.3.3-x86_64;NetID=$NET_ID" testStack
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 |
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":('=''s are only used to separate different sections)
====
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 '/ demo-net / { print $2 }')
# heat stack-create -f test-stack.yml -P "ImageID=cirros-0.3.3-x86_64;NetID=$NET_ID" testStack
====
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 |
|