← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1621667] [NEW] cc_locale fails on CentOS 7

 

Public bug reported:

Sep 08 17:14:56 testing03.novalocal cloud-init[1465]: [CLOUDINIT] handlers.py[DEBUG]: finish: modules-config/config-locale: FAIL: running config-locale with frequency once-per-instance
Sep 08 17:14:56 testing03.novalocal cloud-init[1465]: [CLOUDINIT] util.py[WARNING]: Running module locale (<module 'cloudinit.config.cc_locale' from '/usr/lib/python2.7/site-packages/cloud_init-0.7.7-py2.7.egg/cloudinit/config/cc_locale.pyc'>) failed
Sep 08 17:14:56 testing03.novalocal cloud-init[1465]: 2016-09-08 17:14:56,954 - util.py[WARNING]: Running module locale (<module 'cloudinit.config.cc_locale' from '/usr/lib/python2.7/site-packages/cloud_init-0.7.7-py2.7.egg/cloudinit/config/cc_locale.pyc'>) failed
Sep 08 17:14:56 testing03.novalocal cloud-init[1465]: [CLOUDINIT] util.py[DEBUG]: Running module locale (<module 'cloudinit.config.cc_locale' from '/usr/lib/python2.7/site-packages/cloud_init-0.7.7-py2.7.egg/cloudinit/config/cc_locale.pyc'>) failed
                                                      Traceback (most recent call last):
                                                        File "/usr/lib/python2.7/site-packages/cloud_init-0.7.7-py2.7.egg/cloudinit/stages.py", line 785, in _run_modules
                                                          freq=freq)
                                                        File "/usr/lib/python2.7/site-packages/cloud_init-0.7.7-py2.7.egg/cloudinit/cloud.py", line 70, in run
                                                          return self._runners.run(name, functor, args, freq, clear_on_fail)
                                                        File "/usr/lib/python2.7/site-packages/cloud_init-0.7.7-py2.7.egg/cloudinit/helpers.py", line 199, in run
                                                          results = functor(*args)
                                                        File "/usr/lib/python2.7/site-packages/cloud_init-0.7.7-py2.7.egg/cloudinit/config/cc_locale.py", line 37, in handle
                                                          cloud.distro.apply_locale(locale, locale_cfgfile)
                                                        File "/usr/lib/python2.7/site-packages/cloud_init-0.7.7-py2.7.egg/cloudinit/distros/rhel.py", line 133, in apply_locale
                                                          rhel_util.update_sysconfig_file(out_fn, locale_cfg)
                                                        File "/usr/lib/python2.7/site-packages/cloud_init-0.7.7-py2.7.egg/cloudinit/distros/rhel_util.py", line 37, in update_sysconfig_file
                                                          (exists, contents) = read_sysconfig_file(fn)
                                                        File "/usr/lib/python2.7/site-packages/cloud_init-0.7.7-py2.7.egg/cloudinit/distros/rhel_util.py", line 64, in read_sysconfig_file
                                                          return (exists, SysConf(contents))
                                                        File "/usr/lib/python2.7/site-packages/cloud_init-0.7.7-py2.7.egg/cloudinit/distros/parsers/sys_conf.py", line 61, in __init__
                                                          write_empty_values=True)
                                                        File "/usr/lib/python2.7/site-packages/configobj.py", line 1242, in __init__
                                                          self._load(infile, configspec)
                                                        File "/usr/lib/python2.7/site-packages/configobj.py", line 1302, in _load
                                                          infile = self._handle_bom(infile)
                                                        File "/usr/lib/python2.7/site-packages/configobj.py", line 1457, in _handle_bom
                                                          if not line.startswith(BOM):
                                                      UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)

** Affects: cloud-init
     Importance: Undecided
         Status: New

-- 
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/1621667

Title:
  cc_locale fails on CentOS 7

Status in cloud-init:
  New

Bug description:
  Sep 08 17:14:56 testing03.novalocal cloud-init[1465]: [CLOUDINIT] handlers.py[DEBUG]: finish: modules-config/config-locale: FAIL: running config-locale with frequency once-per-instance
  Sep 08 17:14:56 testing03.novalocal cloud-init[1465]: [CLOUDINIT] util.py[WARNING]: Running module locale (<module 'cloudinit.config.cc_locale' from '/usr/lib/python2.7/site-packages/cloud_init-0.7.7-py2.7.egg/cloudinit/config/cc_locale.pyc'>) failed
  Sep 08 17:14:56 testing03.novalocal cloud-init[1465]: 2016-09-08 17:14:56,954 - util.py[WARNING]: Running module locale (<module 'cloudinit.config.cc_locale' from '/usr/lib/python2.7/site-packages/cloud_init-0.7.7-py2.7.egg/cloudinit/config/cc_locale.pyc'>) failed
  Sep 08 17:14:56 testing03.novalocal cloud-init[1465]: [CLOUDINIT] util.py[DEBUG]: Running module locale (<module 'cloudinit.config.cc_locale' from '/usr/lib/python2.7/site-packages/cloud_init-0.7.7-py2.7.egg/cloudinit/config/cc_locale.pyc'>) failed
                                                        Traceback (most recent call last):
                                                          File "/usr/lib/python2.7/site-packages/cloud_init-0.7.7-py2.7.egg/cloudinit/stages.py", line 785, in _run_modules
                                                            freq=freq)
                                                          File "/usr/lib/python2.7/site-packages/cloud_init-0.7.7-py2.7.egg/cloudinit/cloud.py", line 70, in run
                                                            return self._runners.run(name, functor, args, freq, clear_on_fail)
                                                          File "/usr/lib/python2.7/site-packages/cloud_init-0.7.7-py2.7.egg/cloudinit/helpers.py", line 199, in run
                                                            results = functor(*args)
                                                          File "/usr/lib/python2.7/site-packages/cloud_init-0.7.7-py2.7.egg/cloudinit/config/cc_locale.py", line 37, in handle
                                                            cloud.distro.apply_locale(locale, locale_cfgfile)
                                                          File "/usr/lib/python2.7/site-packages/cloud_init-0.7.7-py2.7.egg/cloudinit/distros/rhel.py", line 133, in apply_locale
                                                            rhel_util.update_sysconfig_file(out_fn, locale_cfg)
                                                          File "/usr/lib/python2.7/site-packages/cloud_init-0.7.7-py2.7.egg/cloudinit/distros/rhel_util.py", line 37, in update_sysconfig_file
                                                            (exists, contents) = read_sysconfig_file(fn)
                                                          File "/usr/lib/python2.7/site-packages/cloud_init-0.7.7-py2.7.egg/cloudinit/distros/rhel_util.py", line 64, in read_sysconfig_file
                                                            return (exists, SysConf(contents))
                                                          File "/usr/lib/python2.7/site-packages/cloud_init-0.7.7-py2.7.egg/cloudinit/distros/parsers/sys_conf.py", line 61, in __init__
                                                            write_empty_values=True)
                                                          File "/usr/lib/python2.7/site-packages/configobj.py", line 1242, in __init__
                                                            self._load(infile, configspec)
                                                          File "/usr/lib/python2.7/site-packages/configobj.py", line 1302, in _load
                                                            infile = self._handle_bom(infile)
                                                          File "/usr/lib/python2.7/site-packages/configobj.py", line 1457, in _handle_bom
                                                            if not line.startswith(BOM):
                                                        UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)

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


Follow ups