]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Handle different cloud-init versions gracefully
authorJeff Peeler <jpeeler@redhat.com>
Mon, 7 Jan 2013 17:36:20 +0000 (12:36 -0500)
committerJeff Peeler <jpeeler@redhat.com>
Mon, 7 Jan 2013 19:08:07 +0000 (14:08 -0500)
commit93c3d93ec481d81e97d4b120384b5e1d93ca6532
tree48e99c13a57d3ed30e761533fd83308c560f8fde
parent0d683a1fff194f824af086d2b61a26a083eb2cf4
Handle different cloud-init versions gracefully

Change loguserdata script to python to allow easy detection of which
version of cloud-init installed. Some logging was added to
part-handler.

Took out injecting the command to touch provision-finished in the user
data. This is now handled in loguserdata.py.

Note that up until cloud-init version 0.6.0, the user data is not
passed to part-handler. This behavior is why it's not possible to log
the provisioning process with older versions. (Technically could rely
on the redirection support added post 0.6.0, but having a separate
file just for provisioning seems beneficial.)

fixes bug 1072921

Change-Id: I9005a21bfb74f27208f9195a6e10e1d2b474e91f
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
MANIFEST.in
heat/cloudinit/loguserdata.py [new file with mode: 0644]
heat/cloudinit/loguserdata.sh [deleted file]
heat/cloudinit/part-handler.py
heat/engine/resources/instance.py