Log all startup operations to /var/log/heat-startup.log

Change-Id: I0e7f415e7aee60c09d0b5b172742af7a5b313191
Signed-off-by: Steven Dake <sdake@redhat.com>
This commit is contained in:
Steven Dake 2012-08-03 16:42:46 -07:00
parent c8b47d80ed
commit dedb9475a9
3 changed files with 7 additions and 1 deletions

View File

@ -8,6 +8,7 @@ include openstack-common.conf
include babel.cfg
graft templates
include heat/cloudinit/config
include heat/cloudinit/loguserdata.sh
include heat/cloudinit/part-handler.py
include heat/db/sqlalchemy/migrate_repo/migrate.cfg
graft etc

View File

@ -0,0 +1,3 @@
#!/bin/bash
chmod +x /var/lib/cloud/data/cfn-userdata
script -f -c /var/lib/cloud/data/cfn-userdata /var/log/heat-provision.log

View File

@ -168,7 +168,9 @@ class Instance(resources.Resource):
attachments = [(read_cloudinit_file('config'), 'cloud-config'),
(read_cloudinit_file('part-handler.py'),
'part-handler.py'),
(userdata, 'startup', 'x-shellscript')]
(userdata, 'cfn-userdata', 'x-cfninitdata'),
(read_cloudinit_file('loguserdata.sh'),
'loguserdata.sh', 'x-shellscript')]
if 'Metadata' in self.t:
attachments.append((json.dumps(self.metadata),