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:
parent
c8b47d80ed
commit
dedb9475a9
|
@ -8,6 +8,7 @@ include openstack-common.conf
|
||||||
include babel.cfg
|
include babel.cfg
|
||||||
graft templates
|
graft templates
|
||||||
include heat/cloudinit/config
|
include heat/cloudinit/config
|
||||||
|
include heat/cloudinit/loguserdata.sh
|
||||||
include heat/cloudinit/part-handler.py
|
include heat/cloudinit/part-handler.py
|
||||||
include heat/db/sqlalchemy/migrate_repo/migrate.cfg
|
include heat/db/sqlalchemy/migrate_repo/migrate.cfg
|
||||||
graft etc
|
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'),
|
attachments = [(read_cloudinit_file('config'), 'cloud-config'),
|
||||||
(read_cloudinit_file('part-handler.py'),
|
(read_cloudinit_file('part-handler.py'),
|
||||||
'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:
|
if 'Metadata' in self.t:
|
||||||
attachments.append((json.dumps(self.metadata),
|
attachments.append((json.dumps(self.metadata),
|
||||||
|
|
Loading…
Reference in New Issue