On restart of heat-engine I got the following crash. Its because its trying to parse a vim lockfile. It should probably ignore anything that starts with a '.'
2014-01-23 15:30:16.941 6855 INFO heat.engine.environment [-] Registering AWS::CloudFormation::WaitConditionHandle -> <class 'heat.engine.resources.wait_condition.WaitConditionHandle'>
2014-01-23 15:30:16.941 6855 INFO heat.engine.environment [-] Registering AWS::CloudFormation::WaitCondition -> <class 'heat.engine.resources.wait_condition.WaitCondition'>
2014-01-23 15:30:16.942 6855 INFO heat.engine.resources [-] Loading /etc/heat/environment.d/.default.yaml.swp
2014-01-23 15:30:16.942 6855 CRITICAL heat [-] 'utf8' codec can't decode byte #xe4: invalid continuation byte
in "<string>", position 16
2014-01-23 15:30:16.942 6855 TRACE heat Traceback (most recent call last):
2014-01-23 15:30:16.942 6855 TRACE heat File "/usr/bin/heat-engine", line 66, in <module>
2014-01-23 15:30:16.942 6855 TRACE heat srv = engine.EngineService(cfg.CONF.host, rpc_api.ENGINE_TOPIC)
2014-01-23 15:30:16.942 6855 TRACE heat File "/usr/lib/python2.6/site-packages/heat/engine/service.py", line 78, in __init__
2014-01-23 15:30:16.942 6855 TRACE heat resources.initialise()
2014-01-23 15:30:16.942 6855 TRACE heat File "/usr/lib/python2.6/site-packages/heat/engine/resources/__init__.py", line 104, in initialise
2014-01-23 15:30:16.942 6855 TRACE heat _load_all(_environment)
2014-01-23 15:30:16.942 6855 TRACE heat File "/usr/lib/python2.6/site-packages/heat/engine/resources/__init__.py", line 74, in _load_all
2014-01-23 15:30:16.942 6855 TRACE heat _load_global_environment(env)
2014-01-23 15:30:16.942 6855 TRACE heat File "/usr/lib/python2.6/site-packages/heat/engine/resources/__init__.py", line 87, in _load_global_environment
2014-01-23 15:30:16.942 6855 TRACE heat env_body = environment_format.parse(env_fd.read())
2014-01-23 15:30:16.942 6855 TRACE heat File "/usr/lib/python2.6/site-packages/heat/common/environment_format.py", line 30, in parse
2014-01-23 15:30:16.942 6855 TRACE heat env = yaml.safe_load(env_str)
2014-01-23 15:30:16.942 6855 TRACE heat File "/usr/lib64/python2.6/site-packages/yaml/__init__.py", line 93, in safe_load
2014-01-23 15:30:16.942 6855 TRACE heat return load(stream, SafeLoader)
2014-01-23 15:30:16.942 6855 TRACE heat File "/usr/lib64/python2.6/site-packages/yaml/__init__.py", line 69, in load
2014-01-23 15:30:16.942 6855 TRACE heat loader = Loader(stream)
2014-01-23 15:30:16.942 6855 TRACE heat File "/usr/lib64/python2.6/site-packages/yaml/loader.py", line 24, in __init__
2014-01-23 15:30:16.942 6855 TRACE heat Reader.__init__(self, stream)
2014-01-23 15:30:16.942 6855 TRACE heat File "/usr/lib64/python2.6/site-packages/yaml/reader.py", line 79, in __init__
2014-01-23 15:30:16.942 6855 TRACE heat self.determine_encoding()
2014-01-23 15:30:16.942 6855 TRACE heat File "/usr/lib64/python2.6/site-packages/yaml/reader.py", line 135, in determine_encoding
2014-01-23 15:30:16.942 6855 TRACE heat self.update(1)
2014-01-23 15:30:16.942 6855 TRACE heat File "/usr/lib64/python2.6/site-packages/yaml/reader.py", line 165, in update
2014-01-23 15:30:16.942 6855 TRACE heat exc.encoding, exc.reason)
2014-01-23 15:30:16.942 6855 TRACE heat ReaderError: 'utf8' codec can't decode byte #xe4: invalid continuation byte
2014-01-23 15:30:16.942 6855 TRACE heat in "<string>", position 16
2014-01-23 15:30:16.942 6855 TRACE heat
Fix proposed to branch: master /review. openstack. org/68971
Review: https:/