BOM error updating hostname on centos6.x

Bug #1603238 reported by Joshua Harlow
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Fix Released
Medium
Joshua Harlow

Bug Description

Seeing the following:

Jul 14 15:42:38 cent6-example [CLOUDINIT] util.py[DEBUG]: Failed to update the hostname to cent6-example.cloud.phx3.gdg (cent6-example)#012Traceback (most recent call last):#012 File "/usr/lib/python2.6/site-packages/cloudinit/config/cc_update_hostname.py", line 39, in handle#012 cloud.distro.update_hostname(hostname, fqdn, prev_fn)#012 File "/usr/lib/python2.6/site-packages/cloudinit/distros/__init__.py", line 214, in update_hostname#012 prev_hostname = self._read_hostname(prev_hostname_fn)#012 File "/usr/lib/python2.6/site-packages/cloudinit/distros/rhel.py", line 172, in _read_hostname#012 (_exists, contents) = rhel_util.read_sysconfig_file(filename)#012 File "/usr/lib/python2.6/site-packages/cloudinit/distros/rhel_util.py", line 64, in read_sysconfig_file#012 return (exists, SysConf(contents))#012 File "/usr/lib/python2.6/site-packages/cloudinit/distros/parsers/sys_conf.py", line 61, in __init__#012 write_empty_values=True)#012 File "/usr/lib/python2.6/site-packages/configobj.py", line 1219, in __init__#012 self._load(infile, configspec)#012 File "/usr/lib/python2.6/site-packages/configobj.py", line 1272, in _load#012 infile = self._handle_bom(infile)#012 File "/usr/lib/python2.6/site-packages/configobj.py", line 1422, in _handle_bom#012 if not line.startswith(BOM):#012UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)

$ rpm -qa | grep configobj
python-configobj-4.6.0-3.el6.noarch

This might be fixed in a newer configobj (probably is) but just wanted to note this here.

Related branches

Joshua Harlow (harlowja)
Changed in cloud-init:
assignee: nobody → Joshua Harlow (harlowja)
milestone: none → 0.7.7
Scott Moser (smoser)
Changed in cloud-init:
milestone: 0.7.7 → 0.7.8
Scott Moser (smoser)
Changed in cloud-init:
status: New → Confirmed
status: Confirmed → Fix Committed
importance: Undecided → Medium
Scott Moser (smoser)
Changed in cloud-init:
status: Fix Committed → Fix Released
Revision history for this message
James Falcon (falcojr) wrote :
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.