]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Use python logging for loguserdata.py, log to console
authorSteve Baker <sbaker@redhat.com>
Tue, 14 May 2013 23:43:44 +0000 (11:43 +1200)
committerSteve Baker <sbaker@redhat.com>
Tue, 14 May 2013 23:57:05 +0000 (11:57 +1200)
commit05ca181e9e9eb864a96bdab8bc19734ec143304d
treea5dacd425dbf197726afbc934559306e21701667
parent61090f485e3c57792d237bacf63d07970923b0e9
Use python logging for loguserdata.py, log to console

Python logging is configured with a stream handler and should
also replicate the previous logging to 0600 /var/log/heat-provision.log

By logging to a stream handler cloud-init will write to its log,
which will show up in the server console log. This means that heat
provisioning can now be monitored without needing to log in with:

nova console-log <servername>

This change also touches the file /var/lib/heat-cfntools/provision-finished
instead of also writing a datestamp to it, which is redundant.

Change-Id: Id0312bd2216a83753df601b17ad16d5355cdb11d
heat/cloudinit/loguserdata.py
heat/tests/test_loguserdata.py