Traceback instead of error message when output or resource body is empty or a string
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Undecided
|
Peter Razumovsky |
Bug Description
1) Empty output body.
1.
heat_template_
parameters:
image:
type: string
resources:
server:
type: OS::Nova::Server
properties:
image: { get_param: image }
flavor: m1.small
outputs:
output1:
2.
$ heat stack-create test -f test.yaml -P image=test
ERROR: 'NoneType' object has no attribute 'iteritems'
Traceback (most recent call last):
File "/usr/local/
incoming.
File "/usr/local/
return self._do_
File "/usr/local/
result = getattr(endpoint, method)(ctxt, **new_args)
File "/usr/local/
return f(*args, **kwargs)
File "/opt/stack/
return func(self, ctx, *args, **kwargs)
File "/opt/stack/
owner_id)
File "/opt/stack/
**common_
File "/opt/stack/
self.outputs = self.resolve_
File "/opt/stack/
return self._translate
File "/opt/stack/
for attr, attr_value in six.iteritems(
File "/usr/local/
return iter(d.
AttributeError: 'NoneType' object has no attribute 'iteritems'
2) Empty resource body
1.
heat_template_
parameters:
image:
type: string
resources:
server:
2.
$ heat stack-create test -f test.yaml -P image=test
ERROR: 'NoneType' object has no attribute 'iteritems'
Traceback (most recent call last):
File "/usr/local/
incoming.
File "/usr/local/
return self._do_
File "/usr/local/
result = getattr(endpoint, method)(ctxt, **new_args)
File "/usr/local/
return f(*args, **kwargs)
File "/opt/stack/
return func(self, ctx, *args, **kwargs)
File "/opt/stack/
if len(tmpl[
File "/opt/stack/
return self._translate
File "/opt/stack/
for attr, attr_value in six.iteritems(
File "/usr/local/
return iter(d.
AttributeError: 'NoneType' object has no attribute 'iteritems'
3) Output body is a string
1.
heat_template_
resources:
server:
type: OS::Nova::Server
properties:
flavor: m1.small
outputs:
output1:
This is not a string, this is error-raisable situation
2.
$ heat stack-create test -f test.yaml
ERROR: 'unicode' object has no attribute 'iteritems'
Traceback (most recent call last):
File "/usr/local/
incoming.
File "/usr/local/
return self._do_
File "/usr/local/
result = getattr(endpoint, method)(ctxt, **new_args)
File "/usr/local/
return f(*args, **kwargs)
File "/opt/stack/
return func(self, ctx, *args, **kwargs)
File "/opt/stack/
owner_id)
File "/opt/stack/
**common_
File "/opt/stack/
self.outputs = self.resolve_
File "/opt/stack/
return self._translate
File "/opt/stack/
for attr, attr_value in six.iteritems(
File "/usr/local/
return iter(d.
AttributeError: 'unicode' object has no attribute 'iteritems'
Changed in heat: | |
assignee: | nobody → Razumovsky Peter (prazumovsky) |
description: | updated |
description: | updated |
Changed in heat: | |
milestone: | none → kilo-1 |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | kilo-1 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/131169
Review: https:/