** Changed in: cloud-init
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1603238

Title:
  BOM error updating hostname on centos6.x

Status in cloud-init:
  Fix Released

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1603238/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to