In heat-config-chef script, Non-ASCII character in command out will cause deploy failure.

Bug #1709026 reported by Chao Guo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
heat-agents
Confirmed
Medium
Chao Guo

Bug Description

In this script, if the chef command outputs any Non-ASCII character, the script it will throw a error which cause deployment failure.
https://github.com/openstack/heat-agents/blob/master/heat-config-chef/install.d/hook-chef.py#L142-L157

Chao Guo (jimmygc)
Changed in heat-agents:
assignee: nobody → Chao Guo (jimmygc)
Rico Lin (rico-lin)
Changed in heat-agents:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → 1.4.0
Rico Lin (rico-lin)
Changed in heat-agents:
milestone: 1.4.0 → 1.6.0
Revision history for this message
Zane Bitter (zaneb) wrote :

As far as I can tell it's not any non-ASCII character, it's any sequence of bytes that are not valid UTF-8. That's the only way I've been able to reproduce the UnicodeDecodeError reported in the commit message of the patch (https://review.openstack.org/491395).

Also this hook is broken when run under Python 3.

Rico Lin (rico-lin)
Changed in heat-agents:
milestone: 1.6.0 → 1.7.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/heat-agents 1.7.0

This issue was fixed in the openstack/heat-agents 1.7.0 release.

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.