cfn-init hook requires cfn_helper to be in python path

Bug #1321513 reported by Steve Baker
12
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/heat-config/hooks/cfn-init
[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/heat-config/hooks/cfn-init", line 2, in <module>
    from heat_cfntools.cfntools import cfn_helper
ImportError: No module named heat_cfntools.cfntools

heat-cfntools is currently installed in a venv, so we probably need to switch to invoking cfn-init instead of heat_cfntools.cfntools.cfn_helper.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat-templates (master)

Reviewed: https://review.openstack.org/113770
Committed: https://git.openstack.org/cgit/openstack/heat-templates/commit/?id=d86eec6b73e02832294597facf95d77942515ad1
Submitter: Jenkins
Branch: master

commit d86eec6b73e02832294597facf95d77942515ad1
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
    /var/cache/heat-cfntools/last_metadata and invoking cfn-init.

    /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: I7252a6f12223613b55b4b6417383673faa0d52b3
    Closes-Bug: #1321513

Changed in heat-templates:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.