apt (Debian/Ubuntu) package install is broken in cfn-init

Bug #1492341 reported by Zane Bitter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
heat-cfntools
Fix Released
Critical
Unassigned

Bug Description

In heat-cfntools 1.4.0, the fix for bug 1312246 breaks apt package installation in cfn-init. The code runs:

        cmd_str = 'DEBIAN_FRONTEND=noninteractive apt-get -y install %s' % \
                  pkg_list
        CommandRunner(cmd_str).run()

However cmd_str is no longer interpreted by the shell but passed directly to execvp, so instead of setting the environment variable DEBIAN_FRONTEND to "noninteractive", it will attempt to run the command "DEBIAN_FRONTEND=noninteractive". Which will likely fail.

Revision history for this message
Anant Patil (ananta) wrote :

This should be fixed now after the offending patch was reverted.

Changed in heat-cfntools:
status: Triaged → Fix Committed
Changed in heat-cfntools:
milestone: none → v1.4.1
Changed in heat-cfntools:
status: Fix Committed → Fix Released
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.