Activity log for bug #1468031

Date Who What changed Old value New value Message
2015-06-23 17:51:35 DWang bug added bug
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
2015-06-24 00:16:08 Steve Baker heat: status New Incomplete
2015-06-24 00:53:47 DWang tags heat
2015-06-29 07:43:17 Peter Razumovsky heat: assignee Razumovsky Peter (prazumovsky)
2015-07-09 09:10:21 Peter Razumovsky heat: assignee Peter Razumovsky (prazumovsky)
2015-07-15 13:17:00 Zoltan Arnold Nagy heat: status Incomplete Confirmed
2015-07-15 13:17:11 Zoltan Arnold Nagy bug added subscriber Zoltan Arnold Nagy
2015-07-16 18:49:51 Zoltan Arnold Nagy heat: assignee Zoltan Arnold Nagy (zoltan)
2017-02-24 16:36:45 Thomas Herve heat: status Confirmed Invalid