1. create a stack
2. make snapshot for stack
3. may be there is something wrong, the stack in SNAPSHOT_IN_PROGRESS for long time
4. to delete the stack
5. the stack in DELETE_IN_PROGRESS until timeout
6. the reason:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 457, in fire_timers
timer()
File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/timer.py", line 58, in __call__
cb(*args, **kw)
File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 214, in main
result = function(*args, **kwargs)
File "/opt/stack/heat/heat/engine/service.py", line 110, in _start_with_trace
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/osprofiler/profiler.py", line 105, in wrapper
return f(*args, **kwargs)
File "/opt/stack/heat/heat/engine/stack.py", line 1080, in delete
self.delete_snapshot(snapshot)
File "/usr/local/lib/python2.7/dist-packages/osprofiler/profiler.py", line 105, in wrapper
return f(*args, **kwargs)
File "/opt/stack/heat/heat/engine/stack.py", line 1184, in delete_snapshot
data = snapshot.data['resources'].get(name)
TypeError: 'NoneType' object has no attribute '__getitem__'
Fix proposed to branch: master /review. openstack. org/168568
Review: https:/