Comment 6 for bug 1474030

Revision history for this message
Ryan Beisner (1chb1n) wrote :

Similar race, nearby place, will propose something more resilient in the form of an update to contrib/amulet/utils.py. This is happening when the conf file mtime is pinged, and the file is apparently in the middle of a write.

13:29:22 Traceback (most recent call last):
13:29:22 File "tests/014-basic-precise-icehouse", line 12, in <module>
13:29:22 deployment.run_tests()
13:29:22 File "/var/lib/jenkins/checkout/nova-cloud-controller/tests/charmhelpers/contrib/amulet/deployment.py", line 93, in run_tests
13:29:22 getattr(self, test)()
13:29:22 File "/var/lib/jenkins/checkout/nova-cloud-controller/tests/basic_deployment.py", line 459, in test_z_restart_on_config_change
13:29:22 pgrep_full=True, sleep_time=time):
13:29:22 File "/var/lib/jenkins/checkout/nova-cloud-controller/tests/charmhelpers/contrib/amulet/utils.py", line 301, in service_restarted
13:29:22 self._get_file_mtime(sentry_unit, filename)):
13:29:22 File "/var/lib/jenkins/checkout/nova-cloud-controller/tests/charmhelpers/contrib/amulet/utils.py", line 266, in _get_file_mtime
13:29:22 return sentry_unit.file_stat(filename)['mtime']
13:29:22 File "/usr/lib/python2.7/dist-packages/amulet/sentry.py", line 77, in file_stat
13:29:22 return self._fs_data(filename)
13:29:22 File "/usr/lib/python2.7/dist-packages/amulet/sentry.py", line 74, in _fs_data
13:29:22 return self._run_unit_script("filesystem_data.py {}".format(path))
13:29:22 File "/usr/lib/python2.7/dist-packages/amulet/sentry.py", line 146, in _run_unit_script
13:29:22 raise IOError(output)
13:29:22 IOError: Warning: Permanently added '172.17.105.93' (ECDSA) to the list of known hosts.