cfn-init hook requires cfn_helper to be in python path
Bug #1321513 reported by
Steve Baker
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Heat Templates |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
[2014-05-21 01:34:18,860] (heat-config) [DEBUG] Running /var/lib/
[2014-05-21 01:34:18,904] (heat-config) [INFO]
[2014-05-21 01:34:18,904] (heat-config) [DEBUG] Traceback (most recent call last):
File "/var/lib/
from heat_cfntools.
ImportError: No module named heat_cfntools.
heat-cfntools is currently installed in a venv, so we probably need to switch to invoking cfn-init instead of heat_cfntools.
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/113770 /git.openstack. org/cgit/ openstack/ heat-templates/ commit/ ?id=d86eec6b73e 02832294597facf 95d77942515ad1
Committed: https:/
Submitter: Jenkins
Branch: master
commit d86eec6b73e0283 2294597facf95d7 7942515ad1
Author: Steve Baker <email address hidden>
Date: Mon Oct 13 10:20:22 2014 +1300
Trigger cfn-init via script rather than lib
The current cfn-init software-config hook doesn't work at all
since cfn_helper is installed in a venv, not in site-packages.
This change switches to writing out metadata to cache/heat- cfntools/ last_metadata and invoking cfn-init.
/var/
/var/ lib/heat- cfntools/ cfn-init- data cannot be used since that is
already populated with all boot metadata, which may still be used
by os-collect-config bootstrapping.
Change-Id: I7252a6f1222361 3b55b4b64173836 73faa0d52b3
Closes-Bug: #1321513