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

Change-Id: I0e7f415e7aee60c09d0b5b172742af7a5b313191
Signed-off-by: Steven Dake <sdake@redhat.com>
changes/10/10810/1
Steven Dake 11 years ago
parent c8b47d80ed
commit dedb9475a9

@ -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

@ -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

@ -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),

Loading…
Cancel
Save