/var/lib/cloud belongs to cloud-init, heat should not write files there

Bug #1105806 reported by Clint Byrum
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Medium
Steven Dake
heat-cfntools
Fix Released
High
Steve Baker

Bug Description

 By writing files directly into /var/lib/cloud/data, heat risks colliding with cloud-init.

Heat should write files to /var/lib/heat instead , which it can claim as its own.

Revision history for this message
Steven Hardy (shardy) wrote :

If we aim to use a fork of the aws cfnbootstrap tools (ref Zane's mail to the list), then we probably want to align with their default paths and filenames

e.g /var/lib/cloud/data/cfn-init-data needs to become /var/lib/cfn-init/data/metadata.json

A similar problem exists for our cfn-hup, but that's an issue to be raised for heat-jeos

Changed in heat:
status: New → Triaged
importance: Undecided → Medium
Steven Dake (sdake)
Changed in heat:
milestone: none → grizzly-rc1
Steven Dake (sdake)
Changed in heat:
assignee: nobody → Steven Dake (sdake)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

Fix proposed to branch: master
Review: https://review.openstack.org/23050

Changed in heat:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/23052

Changed in heat-cfntools:
assignee: nobody → Steve Baker (steve-stevebaker)
milestone: none → v1.3
importance: Undecided → High
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/23052
Committed: http://github.com/openstack/heat/commit/737cc26570e194f691de71a7372f33a75a32e8c2
Submitter: Jenkins
Branch: master

commit 737cc26570e194f691de71a7372f33a75a32e8c2
Author: Steven Dake <email address hidden>
Date: Tue Feb 26 17:38:30 2013 -0700

    Put heat data files in /var/lib/heat-cfntools

    The /var/lib/heat-cfntools directory should be owned by the
    heat-cfntools package for whichever distro it is included.

    This avoids the problem of heat writing to directories owned
    by cloud-init.

    For the moment, the part handler will continue to write to
    /var/lib/cloud/data to be removed at a later date.

    Change-Id: I70b714c70ed146d4f6807850d6e7264c6a4624cd
    Fixes: Bug #1105806

Changed in heat:
status: In Progress → Fix Committed
Revision history for this message
Steve Baker (steve-stevebaker) wrote :
Changed in heat-cfntools:
status: In Progress → Fix Committed
Changed in heat-cfntools:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: grizzly-rc1 → 2013.1
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.